@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('admin/maintenances/general.view') }} {{ $maintenance->name }} @parent @stop @section('header_right') @endsection {{-- Page content --}} @section('content')
{!! $maintenance->asset?->present()->nameUrl !!} {{ trans('admin/maintenances/form.asset_maintenance_type') }} {{ $maintenance->asset_maintenance_type }}
{!! $maintenance->asset?->present()->formattedTagLink !!} {!! $maintenance->asset?->model?->present()->nameUrl !!} {{ $maintenance->asset?->model?->model_number }} {{ Helper::getFormattedDateObject($maintenance->start_date, 'datetime', false) }} @if ($maintenance->expected_completion_date) {{ Helper::getFormattedDateObject($maintenance->expected_completion_date, 'datetime', false) }} @else {{ trans('admin/maintenances/message.asset_maintenance_incomplete') }} @endif @if ($maintenance->duration_in_days !== null) {{ $maintenance->duration_in_days }} {{ trans('general.days') }} @endif {{ $snipeSettings->default_currency .' '. Helper::formatCurrencyOutput($maintenance->cost) }} @if ($maintenance->is_warranty=='1') {{ trans('general.yes') }} @else {{ trans('general.no') }} @endif @if ($maintenance->responsibleParty) {!! $maintenance->responsibleParty->present()->nameUrl() !!} @endif @if ($maintenance->checkedOutTo) {!! $maintenance->checkedOutTo->present()->formattedNameLink() !!}

{{ trans('admin/maintenances/general.checked_out_to_help') }}

@endif @if ($maintenance->completed_at) {{ Helper::getFormattedDateObject($maintenance->completed_at, 'datetime', false) }} @if ($maintenance->completedByUser) {!! $maintenance->completedByUser->present()->nameUrl() !!} @endif @endif
@if (! $maintenance->completed_at) @can('update', $maintenance->asset) @endcan @else {{ trans('admin/maintenances/form.already_complete') }} @endif
@endsection @section('moar_scripts') @can('files', $maintenance) @endcan @can('journal', $maintenance) @endcan @include ('partials.bootstrap-table') @endsection