diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php index ec9cea61be..fcf2c85529 100755 --- a/resources/views/hardware/view.blade.php +++ b/resources/views/hardware/view.blade.php @@ -541,26 +541,22 @@ - @foreach ($asset->assetmaintenances as $assetMaintenance) - @if (is_null($assetMaintenance->deleted_at)) - - - @if ($assetMaintenance->supplier) - {{ $assetMaintenance->supplier->name }} - @endif - - {{ $assetMaintenance->title }} - {{ $assetMaintenance->asset_maintenance_type }} - {{ $assetMaintenance->start_date }} - {{ $assetMaintenance->completion_date }} - {{ $assetMaintenance->notes }} - {{ $assetMaintenance->is_warranty ? trans('admin/asset_maintenances/message.warranty') : trans('admin/asset_maintenances/message.not_warranty') }} - {{ $use_currency.$assetMaintenance->cost }} - - @if ($assetMaintenance->admin) - {{ $assetMaintenance->admin->fullName() }} - @endif - + @foreach ($asset->assetmaintenances as $assetMaintenance) + @if (is_null($assetMaintenance->deleted_at)) + + {{ $assetMaintenance->supplier->name }} + {{ $assetMaintenance->title }} + {{ $assetMaintenance->asset_maintenance_type }} + {{ $assetMaintenance->start_date }} + {{ $assetMaintenance->completion_date }} + {{ $assetMaintenance->notes }} + {{ $assetMaintenance->is_warranty ? trans('admin/asset_maintenances/message.warranty') : trans('admin/asset_maintenances/message.not_warranty') }} + {{ $use_currency.$assetMaintenance->cost }} + + @if ($assetMaintenance->admin) + {{ $assetMaintenance->admin->present()->fullName() }} + @endif + cost; ?> @can('update', \App\Models\Asset::class)