@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('general.asset_maintenance_report') }} @parent @stop {{-- Page content --}} @section('content')
@foreach ($assetMaintenances as $assetMaintenance) @if (is_null($assetMaintenance->asset_maintenance_time)) diffInDays(Carbon::parse($assetMaintenance->start_date))); ?> @else asset_maintenance_time); ?> @endif cost); ?> @endforeach
{{ trans('admin/companies/table.title') }} {{ trans('admin/hardware/table.asset_tag') }} {{ trans('admin/asset_maintenances/table.asset_name') }} {{ trans('admin/asset_maintenances/table.supplier_name') }} {{ trans('admin/asset_maintenances/form.asset_maintenance_type') }} {{ trans('admin/asset_maintenances/form.title') }} {{ trans('admin/asset_maintenances/form.start_date') }} {{ trans('admin/asset_maintenances/form.completion_date') }} {{ trans('admin/asset_maintenances/form.asset_maintenance_time') }} {{ trans('admin/asset_maintenances/form.cost') }}
{{ is_null($assetMaintenance->asset->company) ? '' : $assetMaintenance->asset->company->name }} {{ $assetMaintenance->asset->asset_tag }} {{ $assetMaintenance->asset->name }} {{ $assetMaintenance->supplier->name }} {{ $assetMaintenance->asset_maintenance_type }} {{ $assetMaintenance->title }} {{ $assetMaintenance->start_date }} {{ is_null($assetMaintenance->completion_date) ? trans('admin/asset_maintenances/message.asset_maintenance_incomplete') : $assetMaintenance->completion_date }}{{ $assetMaintenanceTime }} {{ \App\Models\Setting::first()->default_currency }} {{ number_format($assetMaintenance->cost,2) }}
Totals: {{number_format($totalDays)}} {{ \App\Models\Setting::first()->default_currency }} {{ number_format($totalCost,2) }}
@section('moar_scripts') @stop @stop