@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('admin/hardware/general.checkin') }} @parent @stop {{-- Page content --}} @section('content')

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

@if ($backto == 'user')
@else @endif {{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

{!! $errors->first('name', '') !!}
{{ Form::select('status_id', $statusLabel_list, '', array('class'=>'select2', 'style'=>'width:100%','id' =>'modal-statuslabel_types', 'aria-label'=>'status_id')) }} {!! $errors->first('status_id', '') !!}
@include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'location_id', 'help_text' => ($asset->defaultLoc) ? trans('general.checkin_to_diff_location', ['default_location' => $asset->defaultLoc->name]) : null, 'hide_location_radio' => true])
{!! $errors->first('checkin_at', '') !!}
{!! $errors->first('note', '') !!}
@include ('partials.forms.redirect_submit_options', [ 'route' => 'hardware.index', 'table_name' => $table_name, 'type'=> ($asset->model ? $asset->model->name : trans('general.asset_model')), 'checkin' => true ])
@stop