@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('general.audit') }} @parent @stop {{-- Page content --}} @section('content') {{ trans('admin/hardware/form.tag') }} {{ $asset->asset_tag }} {{-- Model (read-only with fallback UI when the model reference is broken). --}}

@if (($asset->model) && ($asset->model->name)) {{ $asset->model->name }} @else {{ trans('admin/hardware/general.model_invalid') }} {{ trans('admin/hardware/general.model_invalid_fix') }} {{ trans('admin/hardware/general.edit') }} @endif

{{-- Asset name (read-only; only shown when set). --}} @if ($asset->name)

{{ $asset->name }}

@endif {{-- Update location + help block (kept hand-rolled so the help text sits inside the input column alongside the checkbox, matching pre-existing layout). --}}

{!! trans('help.audit_help') !!}

{{-- Last audit (read-only). --}}

@if ($asset->last_audit_date) {{ Helper::getFormattedDateObject($asset->last_audit_date, 'datetime', false) }} @else {{ trans('admin/settings/general.none') }} @endif

{{-- Next audit date --}}

{!! trans('general.next_audit_date_help') !!}

{{-- Audit image --}} {{-- Custom fields --}} @include('models/custom_fields_form', [ 'model' => $asset->model, 'show_custom_fields_type' => 'audit', ])
@stop