@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('admin/hardware/general.view') }} {{ $asset->asset_tag }} @parent @stop {{-- Page content --}} @section('content')
@if (!$asset->model)

{{ trans('admin/models/message.no_association') }} {{ trans('admin/models/message.no_association_fix') }}

@endif @if ($asset->checkInvalidNextAuditDate())

{{ trans('general.warning', [ 'warning' => trans('admin/hardware/message.warning_audit_date_mismatch', [ 'last_audit_date' => Helper::getFormattedDateObject($asset->last_audit_date, 'date', false), 'next_audit_date' => Helper::getFormattedDateObject($asset->next_audit_date, 'date', false) ] ) ] ) }}

@endif @if ($asset->deleted_at!='')
{{ trans('general.notification_warning') }} {{ trans('general.asset_deleted_warning') }}
@endif
@can('update', \App\Models\Asset::class) @include ('modals.upload-file', ['item_type' => 'asset', 'item_id' => $asset->id]) @endcan @stop @section('moar_scripts') @include ('partials.bootstrap-table') @stop