@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('general.audit') }} @parent @stop {{-- Page content --}} @section('content')
{{ Form::open([ 'method' => 'POST', 'route' => ['asset.audit.store', $asset->id], 'files' => true, 'class' => 'form-horizontal' ]) }}

{{ trans('admin/hardware/form.tag') }} {{ $asset->asset_tag }}

{{csrf_field()}}

@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 }}

@include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'location_id'])

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

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

{!! $errors->first('next_audit_date', '') !!}

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

{!! $errors->first('note', '') !!}
@include ('partials.forms.edit.image-upload', ['help_text' => trans('general.audit_images_help')])
@stop