@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()}}
{{ Form::label('name', trans('admin/hardware/form.model'), array('class' => 'col-md-3 control-label')) }}

@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

{{ Form::label('name', trans('admin/hardware/form.name'), array('class' => 'col-md-3 control-label')) }}

{{ $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

{{ Form::label('name', trans('general.next_audit_date'), array('class' => 'col-md-3 control-label')) }}
{!! $errors->first('next_audit_date', '') !!}

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

{{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }}
{!! $errors->first('note', '') !!}
@include ('partials.forms.edit.image-upload', ['help_text' => trans('general.audit_images_help')])
@stop