@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('general.asset_maintenance_report') }} @parent @stop {{-- Page content --}} @section('content')
@foreach ($assetMaintenances as $assetMaintenance) asset_maintenance_time); ?> @if ($assetMaintenance->asset) asset_maintenance_time)) { $assetMaintenanceTime = intval(Carbon::now()->diffInDays(Carbon::parse($assetMaintenance->start_date))); } ?> @endif cost); ?> @endforeach
{{ trans('admin/companies/table.title') }} {{ trans('admin/hardware/table.asset_tag') }} {{ trans('admin/asset_maintenances/table.asset_name') }} {{ trans('general.supplier') }} {{ 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') }}
{{ ($assetMaintenance->asset->company) ? $assetMaintenance->asset->company->name : '' }} {{ $assetMaintenance->asset->asset_tag }} {{ $assetMaintenance->asset->name }} @if ($assetMaintenance->supplier) {{ $assetMaintenance->supplier->name }} @else (deleted supplier) @endif {{ $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 }} {{ $snipeSettings->default_currency }} {{ number_format($assetMaintenance->cost,2) }}
Totals: {{number_format($totalDays)}} {{ $snipeSettings->default_currency }} {{ number_format($totalCost,2) }}
@stop @section('moar_scripts') @stop