@extends('layouts/default')
{{-- Page title --}}
@section('title')
{{ trans('admin/accessories/general.checkout') }}
@parent
@stop
@section('header_right')
{{ trans('general.back') }}
@stop
{{-- Page content --}}
@section('content')
@if ($accessory->name)
{{ $accessory->name }}
@endif
@if ($accessory->company)
{!! $accessory->company->present()->formattedNameLink !!}
@endif
@if ($accessory->category)
{!! $accessory->category->present()->formattedNameLink !!}
@endif
{{ $accessory->qty }}
{{ $accessory->numRemaining() }}
@include ('partials.forms.checkout-selector', ['user_select' => 'true', 'asset_select' => 'true', 'location_select' => 'true'])
@include ('partials.forms.edit.asset-select', ['translated_name' => trans('general.asset'), 'asset_selector_div_id' => 'assigned_asset', 'company_id' => $accessory->company_id, 'fieldname' => 'assigned_asset', 'unselect' => 'true', 'style' => session('checkout_to_type') == 'asset' ? '' : 'display: none;'])
@include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'assigned_location', 'company_id' => $accessory->company_id, 'style' => session('checkout_to_type') == 'location' ? '' : 'display: none;'])
@stop