@props([
'infoPanelObj' => null,
'img_path' => null,
'snipeSettings' => \App\Models\Setting::getSettings()
])
@if (($infoPanelObj->image) && ($img_path))
@endif
@if ($infoPanelObj->present()->displayAddress)
{!! nl2br($infoPanelObj->present()->displayAddress) !!}
@endif
@if (isset($before_list))
{{ $before_list }}
@endif
{{ $slot }}
{!! nl2br(Helper::parseEscapedMarkedownInline($infoPanelObj->notes)) !!}
@if ($infoPanelObj->serial)
@can('viewKeys', $infoPanelObj)
{{ $infoPanelObj->serial }}
@endcan
@endif
@if ($infoPanelObj->license_name)
{{ trans('admin/licenses/form.to_name') }}
{{ $infoPanelObj->license_name }}
@endif
@if ($infoPanelObj->license_email)
{{ trans('admin/licenses/form.to_email') }}
{{ $infoPanelObj->license_email }}
@endif
@if ($infoPanelObj->termination_date)
{{ Helper::getFormattedDateObject($infoPanelObj->termination_date, 'date', false) }}
@endif
@if ($infoPanelObj->expiration_date)
{{ Helper::getFormattedDateObject($infoPanelObj->expiration_date, 'date', false) }}
@endif
@if ($infoPanelObj->model_number)
{{ trans('general.model_no') }}
{{ $infoPanelObj->model_number }}
@endif
@if ($infoPanelObj->item_no)
{{ trans('admin/consumables/general.item_no') }}
{{ $infoPanelObj->item_no }}
@endif
@if ($infoPanelObj->min_amt)
{{ trans('general.min_amt') }} {{ $infoPanelObj->min_amt }}
@endif
@if (method_exists($infoPanelObj, 'numCheckedOut'))
{{ (int) $infoPanelObj->numCheckedOut() }}
{{ trans('general.checked_out') }}
@endif
@if (method_exists($infoPanelObj, 'numRemaining'))
{{ $infoPanelObj->numRemaining() }}
{{ trans('general.remaining') }}
@endif
@if ($infoPanelObj->purchase_cost)
{{ trans('general.unit_cost') }}
@if ((isset($infoPanelObj->location)) && ($infoPanelObj->location->currency!=''))
{{ $infoPanelObj->location->currency }}
@else
{{ $snipeSettings->default_currency }}
@endif
{{ Helper::formatCurrencyOutput($infoPanelObj->purchase_cost) }}
@if (isset($infoPanelObj->qty))
{{ trans('general.total_cost') }}
@if ((isset($infoPanelObj->location)) && ($infoPanelObj->location->currency!=''))
{{ $infoPanelObj->location->currency }}
@else
{{ $snipeSettings->default_currency }}
@endif
{{ Helper::formatCurrencyOutput($infoPanelObj->totalCostSum()) }}
@endif
@endif
@if ($infoPanelObj->order_number)
{{ $infoPanelObj->order_number }}
@endif
@if ($infoPanelObj->purchase_order)
{{ $infoPanelObj->purchase_order }}
@endif
@if ($infoPanelObj->company)
{!! $infoPanelObj->company->present()->nameUrl !!}
@endif
@if ($infoPanelObj->category)
{!! $infoPanelObj->category->present()->formattedNameLink !!}
@endif
@if ($infoPanelObj->category_type)
{{ $infoPanelObj->category_type }}
@endif
@if ($infoPanelObj->location)
{!! $infoPanelObj->location->present()->nameUrl !!}
@endif
@if ($infoPanelObj->manager)
{!! $infoPanelObj->manager->present()->nameUrl !!}
@endif
@if ($infoPanelObj->fieldset)
{!! $infoPanelObj->fieldset->present()->nameUrl !!}
@endif
@if ($infoPanelObj->manufacturer)
{{ trans('general.manufacturer') }}
{!! $infoPanelObj->manufacturer->present()->formattedNameLink !!}
{{ $infoPanelObj->manufacturer->support_phone }}
{{ $infoPanelObj->manufacturer->support_email }}
{{ $infoPanelObj->manufacturer->url }}
{{ $infoPanelObj->manufacturer->support_url }}
@endif
@if ($infoPanelObj->supplier)
{{ trans('general.supplier') }}
{!! $infoPanelObj->supplier->present()->formattedNameLink !!}
{{ $infoPanelObj->supplier->contact }}
@if ($infoPanelObj->supplier->present()->displayAddress)
{!! nl2br($infoPanelObj->supplier->present()->displayAddress) !!}
@endif
{{ $infoPanelObj->supplier->phone }}
{{ $infoPanelObj->supplier->email }}
{{ $infoPanelObj->supplier->url }}
@endif
@if ((isset($infoPanelObj->parent)) && ($infoPanelObj->parent))
{{ $infoPanelObj->parent->display_name }}
@endif
@if ($infoPanelObj->depreciation && $infoPanelObj->purchase_date)
{!! $infoPanelObj->depreciation->present()->nameUrl !!}
({{ $infoPanelObj->depreciation->months.' '.trans('general.months')}})
{{ Helper::getFormattedDateObject($infoPanelObj->depreciated_date(), 'date', false) }}
@endif
@if ($infoPanelObj->eol)
{{ $infoPanelObj->eol .' '.trans('general.months') }}
@endif
{{ $infoPanelObj->email }}
@if ($infoPanelObj->phone)
{{ $infoPanelObj->phone }}
@endif
@if ($infoPanelObj->fax)
{{ $infoPanelObj->fax }}
@endif
{{ $infoPanelObj->url }}
{{ $infoPanelObj->support_url }}
@if (($infoPanelObj->present()->displayAddress) && (config('services.google.maps_api_key')))
@endif
@if ((($infoPanelObj->address!='') && ($infoPanelObj->city!='')) || ($infoPanelObj->state!='') || ($infoPanelObj->country!=''))
{!! trans('admin/locations/message.open_map', ['map_provider_icon' => '']) !!}
{!! trans('admin/locations/message.open_map', ['map_provider_icon' => '']) !!}
@endif
@if ($infoPanelObj->months)
{{ $infoPanelObj->months }}
{{ trans('general.months') }}
@endif
@if ($infoPanelObj->depreciation_type)
@if ($infoPanelObj->depreciation_type == 'amount')
{{ trans('general.depreciation_options.amount') }}
@elseif ($infoPanelObj->depreciation_type == 'percent')
{{ trans('general.depreciation_options.amount') }}
@endif
@endif
@if ($infoPanelObj->purchase_date)
{{ trans('general.purchased_plain') }}
{{ Helper::getFormattedDateObject($infoPanelObj->purchase_date, 'datetime', false) }}
@endif
@if (isset($infoPanelObj->maintained))
@if ($infoPanelObj->maintained == 1)
{{ trans('admin/licenses/form.maintained') }}
@else
{{ trans('admin/licenses/form.maintained') }}
@endif
@endif
@if (isset($infoPanelObj->reassignable))
@if ($infoPanelObj->reassignable == 1)
{{ trans('admin/licenses/form.reassignable') }}
@else
{{ trans('admin/licenses/form.reassignable') }}
@endif
@endif
@if (isset($infoPanelObj->requestable))
@if ($infoPanelObj->requestable == 1)
{{ trans('admin/hardware/general.requestable') }}
@else
{{ trans('admin/hardware/general.requestable') }}
@endif
@endif
@if (isset($infoPanelObj->use_default_eula))
@if ($infoPanelObj->eula_text=='')
{{ trans('admin/settings/general.default_eula_text') }}
@else
{{ trans('admin/categories/general.eula_text') }}
@endif
@endif
@if (isset($infoPanelObj->require_acceptance))
@if ($infoPanelObj->require_acceptance == 1)
@else
@endif
{{ trans('admin/categories/general.require_acceptance') }}
@endif
@if (isset($infoPanelObj->alert_on_response))
@if ($infoPanelObj->require_acceptance == 1)
@else
@endif
{{ trans('admin/categories/general.email_to_initiator') }}
@endif
@if ($infoPanelObj->tag_color)
{{ $infoPanelObj->tag_color }}
@endif
@if ($infoPanelObj->adminuser)
{{ trans('general.created_by') }}
{!! $infoPanelObj->adminuser->present()->formattedNameLink !!}
@endif
@if ($infoPanelObj->created_at)
{{ trans('general.created_plain') }}
{{ Helper::getFormattedDateObject($infoPanelObj->created_at, 'datetime', false) }}
@endif
@if ($infoPanelObj->updated_at)
{{ trans('general.updated_plain') }}
{{ Helper::getFormattedDateObject($infoPanelObj->updated_at, 'datetime', false) }}
@endif
@if ($infoPanelObj->deleted_at)
{{ trans('general.deleted_plain') }}
{{ Helper::getFormattedDateObject($infoPanelObj->deleted_at, 'datetime', false) }}
@endif
@if (isset($after_list))
{{ $after_list }}
@endif