@can('update', \App\Models\Asset::class)
@else
{{ trans('general.asset_maintenances') }} [ {{ trans('button.add') }} ]
@endcan @if (count($asset->assetmaintenances) > 0){{ trans('general.supplier') }} | {{ trans('admin/asset_maintenances/form.title') }} | {{ trans('admin/asset_maintenances/form.asset_maintenance_type') }} | {{ trans('admin/asset_maintenances/form.start_date') }} | {{ trans('admin/asset_maintenances/form.completion_date') }} | {{ trans('admin/asset_maintenances/form.notes') }} | {{ trans('admin/asset_maintenances/table.is_warranty') }} | {{ trans('admin/asset_maintenances/form.cost') }} | {{ trans('general.admin') }} | @can('update', \App\Models\Asset::class){{ trans('table.actions') }} | @endcan
---|---|---|---|---|---|---|---|---|---|
@if ($assetMaintenance->supplier) {{ $assetMaintenance->supplier->name }} @else (deleted supplier) @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') }} | @if ($assetMaintenance->admin) {{ $assetMaintenance->admin->present()->fullName() }} @endif | cost; ?> @can('update', \App\Models\Asset::class)@endcan | |
{{ is_numeric($totalCost) ? $use_currency.number_format($totalCost, 2) : $totalCost }} |
{{ trans('general.no_results') }}
@endif