@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()}}
{{ Form::label('model', 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')}} @endif

{{ Form::label('name', trans('admin/hardware/form.name'), array('class' => 'col-md-3 control-label')) }}
{!! $errors->first('name', '') !!}
{{ Form::label('status_id', trans('admin/hardware/form.status'), array('class' => 'col-md-3 control-label')) }}
{{ 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])
{{ Form::label('checkin_at', trans('admin/hardware/form.checkin_date'), array('class' => 'col-md-3 control-label')) }}
{!! $errors->first('checkin_at', '') !!}
{{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }}
{!! $errors->first('note', '') !!}
@stop