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

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

{{csrf_field()}} @if ($asset->company && $asset->company->name)
{{ Form::label('model', trans('general.company'), array('class' => 'col-md-3 control-label')) }}

{{ $asset->company->name }}

@endif
{{ 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, $asset->status_id, array('class'=>'select2', 'style'=>'width:100%','', 'aria-label'=>'status_id')) }} {!! $errors->first('status_id', '') !!}
@include ('partials.forms.checkout-selector', ['user_select' => 'true','asset_select' => 'true', 'location_select' => 'true']) @include ('partials.forms.edit.user-select', ['translated_name' => trans('general.user'), 'fieldname' => 'assigned_user', 'required'=>'true']) @include ('partials.forms.edit.asset-select', ['translated_name' => trans('general.asset'), 'fieldname' => 'assigned_asset', 'unselect' => 'true', 'style' => 'display:none;', 'required'=>'true']) @include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'assigned_location', 'style' => 'display:none;', 'required'=>'true'])
{{ Form::label('checkout_at', trans('admin/hardware/form.checkout_date'), array('class' => 'col-md-3 control-label')) }}
{!! $errors->first('checkout_at', '') !!}
{{ Form::label('expected_checkin', trans('admin/hardware/form.expected_checkin'), array('class' => 'col-md-3 control-label')) }}
{!! $errors->first('expected_checkin', '') !!}
{{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }}
{!! $errors->first('note', '') !!}
@if ($asset->requireAcceptance() || $asset->getEula() || ($snipeSettings->webhook_endpoint!=''))
@if ($asset->requireAcceptance()) {{ trans('admin/categories/general.required_acceptance') }}
@endif @if ($asset->getEula()) {{ trans('admin/categories/general.required_eula') }}
@endif @if ($snipeSettings->webhook_endpoint!='') {{ trans('general.webhook_msg_note') }} @endif
@endif
@include ('partials.forms.redirect_submit_options', ['route' => 'hardware.index', 'table_name' => $table_name, 'type'=> $asset->model->name, 'checkin' => false])
@stop @section('moar_scripts') @include('partials/assets-assigned') @stop