2017-08-25 10:04:19 -07:00
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
|
|
|
{{ trans('general.audit') }}
|
|
|
|
@parent
|
|
|
|
@stop
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
.input-group {
|
|
|
|
padding-left: 0px !important;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<!-- left column -->
|
|
|
|
<div class="col-md-7">
|
|
|
|
<div class="box box-default">
|
2018-04-24 02:54:54 -07:00
|
|
|
|
|
|
|
{{ Form::open([
|
|
|
|
'method' => 'POST',
|
|
|
|
'route' => ['asset.audit.store', $asset->id],
|
|
|
|
'files' => true,
|
|
|
|
'class' => 'form-horizontal' ]) }}
|
|
|
|
|
2017-08-25 10:04:19 -07:00
|
|
|
<div class="box-header with-border">
|
2020-03-31 23:36:56 -07:00
|
|
|
<h2 class="box-title"> {{ trans('admin/hardware/form.tag') }} {{ $asset->asset_tag }}</h2>
|
2017-08-25 10:04:19 -07:00
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
{{csrf_field()}}
|
|
|
|
@if ($asset->model->name)
|
|
|
|
<!-- Asset name -->
|
|
|
|
<div class="form-group {{ $errors->has('name') ? 'error' : '' }}">
|
|
|
|
{{ Form::label('name', trans('admin/hardware/form.model'), array('class' => 'col-md-3 control-label')) }}
|
|
|
|
<div class="col-md-8">
|
|
|
|
<p class="form-control-static">{{ $asset->model->name }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<!-- Asset Name -->
|
|
|
|
<div class="form-group {{ $errors->has('name') ? 'error' : '' }}">
|
|
|
|
{{ Form::label('name', trans('admin/hardware/form.name'), array('class' => 'col-md-3 control-label')) }}
|
|
|
|
<div class="col-md-8">
|
|
|
|
<p class="form-control-static">{{ $asset->name }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-08-25 18:40:20 -07:00
|
|
|
<!-- Locations -->
|
2017-10-28 11:17:52 -07:00
|
|
|
@include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'location_id'])
|
2017-08-25 10:04:19 -07:00
|
|
|
|
2018-09-07 05:39:41 -07:00
|
|
|
<!-- Update location -->
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-offset-3 col-md-9">
|
|
|
|
<label>
|
2021-11-02 06:02:48 -07:00
|
|
|
<input type="checkbox" value="1" name="update_location" class="minimal" {{ Request::old('update_location') == '1' ? ' checked="checked"' : '' }}> {{ trans('admin/hardware/form.asset_location') }}
|
2018-09-07 05:39:41 -07:00
|
|
|
</label>
|
2018-09-07 18:08:18 -07:00
|
|
|
|
2018-10-04 20:51:50 -07:00
|
|
|
@include ('partials.more-info', ['helpText' => trans('help.audit_help'), 'helpPosition' => 'right'])
|
2018-09-07 18:08:18 -07:00
|
|
|
|
|
|
|
|
2018-09-07 05:39:41 -07:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-08-25 10:04:19 -07:00
|
|
|
|
|
|
|
<!-- Next Audit -->
|
|
|
|
<div class="form-group {{ $errors->has('next_audit_date') ? 'error' : '' }}">
|
2017-08-25 18:40:20 -07:00
|
|
|
{{ Form::label('name', trans('general.next_audit_date'), array('class' => 'col-md-3 control-label')) }}
|
2017-08-25 10:04:19 -07:00
|
|
|
<div class="col-md-9">
|
|
|
|
<div class="input-group date col-md-5" data-provide="datepicker" data-date-format="yyyy-mm-dd">
|
2020-04-21 03:58:31 -07:00
|
|
|
<input type="text" class="form-control" placeholder="{{ trans('general.next_audit_date') }}" name="next_audit_date" id="next_audit_date" value="{{ old('next_audit_date', $next_audit_date) }}">
|
2021-09-26 01:11:08 -07:00
|
|
|
<span class="input-group-addon"><i class="fas fa-calendar" aria-hidden="true"></i></span>
|
2017-08-25 10:04:19 -07:00
|
|
|
</div>
|
2021-09-26 01:11:08 -07:00
|
|
|
{!! $errors->first('next_audit_date', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
2017-08-25 10:04:19 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Note -->
|
|
|
|
<div class="form-group {{ $errors->has('note') ? 'error' : '' }}">
|
|
|
|
{{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }}
|
|
|
|
<div class="col-md-8">
|
2020-04-21 03:58:31 -07:00
|
|
|
<textarea class="col-md-6 form-control" id="note" name="note">{{ old('note', $asset->note) }}</textarea>
|
2021-09-26 01:11:08 -07:00
|
|
|
{!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
2017-08-25 10:04:19 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2018-04-24 02:54:54 -07:00
|
|
|
<!-- Images -->
|
|
|
|
@include ('partials.forms.edit.image-upload')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-08-25 10:04:19 -07:00
|
|
|
|
|
|
|
</div> <!--/.box-body-->
|
|
|
|
<div class="box-footer">
|
|
|
|
<a class="btn btn-link" href="{{ URL::previous() }}"> {{ trans('button.cancel') }}</a>
|
2021-09-26 01:11:08 -07:00
|
|
|
<button type="submit" class="btn btn-success pull-right"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('general.audit') }}</button>
|
2017-08-25 10:04:19 -07:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div> <!--/.col-md-7-->
|
|
|
|
</div>
|
|
|
|
@stop
|