@if ($asset->company)
{{-- Company (read-only) --}}
{!! $asset->company->present()->formattedNameLink !!}
@endif
@if ($asset->model->category)
{{-- Category (read-only) --}}
{!! $asset->model->category->present()->formattedNameLink !!}
@endif
{{-- Model (read-only with fallback UI when the model
reference is broken — asset points at a deleted or
invalid model). --}}
@if ($asset->model)
{!! $asset->model->present()->formattedNameLink !!}
@else
{{ trans('admin/hardware/general.model_invalid') }}
{{ trans('admin/hardware/general.model_invalid_fix') }}
{{ trans('admin/hardware/general.edit') }}
@endif
@if ($asset->defaultLoc)
{{-- Default Location (read-only) --}}
{!! $asset->defaultLoc->present()->formattedNameLink() !!}
@endif
{{-- Asset name --}}
{{-- Status. The select gets id=modal-statuslabel_types
because the JS at the bottom of the page keys the
requestable-wrapper visibility toggle on that id. --}}
{{-- Requestable toggle. The outer form-group carries
id=requestable-wrapper — the snipeit.js handler
shows/hides it based on whether the selected
status is deployable (list of deployable status
ids handed off via data attribute), and
x-form.checkbox-row doesn't forward attributes to
its wrapper, so this stays hand-rolled. The
checkbox itself carries two data attributes that
drive its localStorage-preference behavior. --}}
{{-- Location and default-location pickers. Both are
pre-populated with the asset's rtd_location_id so
the common case (submit without touching either
field) resets `location` to rtd and leaves the
default unchanged, matching the codebase-wide
checkin convention. Fixes #19401, where a blank
submission used to wipe `location` to null.
Users can override either field by picking a
different location or clearing via the select2 X
button. --}}
{{-- Checkout/Checkin date. The nested input-group carries
responsive col-* classes for the datetimepicker
layout at different breakpoints; kept as slot:input
since x-form.row doesn't nest an input-group inside
its input column. --}}
{{-- Note --}}
{{-- Custom fields --}}
@include('models/custom_fields_form', [
'model' => $asset->model,
'show_custom_fields_type' => 'checkin',
])