@extends('layouts/default')
{{-- Page title --}}
@section('title')
{{ trans('admin/hardware/general.checkout') }}
@parent
@stop
{{-- Page content --}}
@section('content')
@if ($asset->company)
{!! $asset->company->present()->formattedNameLink !!}
@endif
@if ($asset->model->category)
{!! $asset->model->category->present()->formattedNameLink !!}
@endif
@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
@include ('partials.forms.checkout-selector', ['user_select' => 'true', 'asset_select' => 'true', 'location_select' => 'true'])
@include ('partials.forms.edit.asset-select', ['translated_name' => trans('general.select_asset'), 'fieldname' => 'assigned_asset', 'company_id' => $asset->company_id, 'unselect' => 'true', 'exclude_id' => $asset->id, 'style' => session('checkout_to_type') == 'asset' ? '' : 'display: none;'])
@include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'assigned_location', 'company_id' => $asset->company_id, 'style' => session('checkout_to_type') == 'location' ? '' : 'display: none;'])
@include('models/custom_fields_form', [
'model' => $asset->model,
'show_custom_fields_type' => 'checkout',
])
@stop