@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('admin/maintenances/general.view') }} {{ $maintenance->name }} @parent @stop @section('header_right') @endsection {{-- Page content --}} @section('content') @can('update', $maintenance) @endcan
{{ trans('admin/maintenances/form.asset_maintenance_type') }}
{{ $maintenance->asset_maintenance_type }}
@if ($maintenance->asset->model)
{{ trans('general.asset_model') }}
@endif @if ($maintenance->asset->company)
{{ trans('general.company') }}
@endif
{{ trans('admin/maintenances/form.start_date') }}
{{ Helper::getFormattedDateObject($maintenance->start_date, 'date', false) }}
{{ trans('admin/maintenances/form.completion_date') }}
@if ($maintenance->completion_date) {{ Helper::getFormattedDateObject($maintenance->completion_date, 'date', false) }} @else {{ trans('admin/maintenances/message.asset_maintenance_incomplete') }} @endif
@if ($maintenance->url)
{{ trans('general.url') }}
@endif
{{ trans('admin/maintenances/form.asset_maintenance_time') }}
{{ $maintenance->asset_maintenance_time }}
@if ($maintenance->cost > 0)
{{ trans('admin/maintenances/form.cost') }}
{{ \App\Models\Setting::getSettings()->default_currency .' '. Helper::formatCurrencyOutput($maintenance->cost) }}
@endif
{{ trans('admin/maintenances/form.is_warranty') }}
{{ $maintenance->is_warranty ? trans('admin/maintenances/message.warranty') : trans('admin/maintenances/message.not_warranty') }}
@if ($maintenance->notes)
{{ trans('admin/maintenances/form.notes') }}
{!! nl2br(Helper::parseEscapedMarkedownInline($maintenance->notes)) !!}
@endif
{{ trans('general.files') }}
@can('assets.files', Asset::class) @include ('modals.upload-file', ['item_type' => 'maintenance', 'item_id' => $maintenance->id]) @endcan @stop @section('moar_scripts') @include ('partials.bootstrap-table') @stop