@if ($asset->deleted_at!='')
{{ trans('general.deleted') }}
{{ \App\Helpers\Helper::getFormattedDateObject($asset->deleted_at, 'date', false) }}
@endif
@if ($asset->assetstatus)
{{ trans('general.status') }}
@if (($asset->assignedTo) && ($asset->deleted_at==''))
{{ $asset->assetstatus->name }}
{!! $asset->assignedTo->present()->glyph() !!}
{!! $asset->assignedTo->present()->nameUrl() !!}
@else
@if (($asset->assetstatus) && ($asset->assetstatus->deployable=='1'))
@elseif (($asset->assetstatus) && ($asset->assetstatus->pending=='1'))
@elseif (($asset->assetstatus) && ($asset->assetstatus->archived=='1'))
@endif
{{ $asset->assetstatus->name }}
@endif
@endif
@if ($asset->company)
{{ trans('general.company') }}
@endif
@if ($asset->name)
{{ trans('admin/hardware/form.name') }}
{{ $asset->name }}
@endif
@if ($asset->serial)
{{ trans('admin/hardware/form.serial') }}
{{ $asset->serial }}
@endif
@if ((isset($audit_log)) && ($audit_log->created_at))
{{ trans('general.last_audit') }}
{{ \App\Helpers\Helper::getFormattedDateObject($audit_log->created_at, 'date', false) }}
@if ($audit_log->user)
(by {{ link_to_route('users.show', $audit_log->user->present()->fullname(), [$audit_log->user->id]) }})
@endif
@endif
@if ($asset->next_audit_date)
{{ trans('general.next_audit_date') }}
{{ Helper::getFormattedDateObject($asset->next_audit_date, 'date', false) }}
@endif
@if (($asset->model) && ($asset->model->manufacturer))
{{ trans('admin/hardware/form.manufacturer') }}
@endif
{{ trans('general.category') }}
@if (($asset->model) && ($asset->model->category))
@can('view', \App\Models\Category::class)
{{ $asset->model->category->name }}
@else
{{ $asset->model->category->name }}
@endcan
@else
Invalid category
@endif
@if ($asset->model)
{{ trans('admin/hardware/form.model') }}
@if ($asset->model)
@can('view', \App\Models\AssetModel::class)
{{ $asset->model->name }}
@else
{{ $asset->model->name }}
@endcan
@endif
@endif
{{ trans('admin/models/table.modelnumber') }}
{{ ($asset->model) ? $asset->model->model_number : ''}}
{{ trans('general.byod') }}
{!! ($asset->byod=='1') ? ' '.trans('general.yes') : ' '.trans('general.no') !!}
@if (($asset->model) && ($asset->model->fieldset))
@foreach($asset->model->fieldset->fields as $field)
@endforeach
@endif
@if ($asset->purchase_date)
{{ trans('admin/hardware/form.date') }}
{{ Helper::getFormattedDateObject($asset->purchase_date, 'date', false) }}
-
{{ Carbon::parse($asset->purchase_date)->diff(Carbon::now())->format('%y years, %m months and %d days')}}
@endif
@if ($asset->purchase_cost)
{{ trans('admin/hardware/form.cost') }}
@if (($asset->id) && ($asset->location))
{{ $asset->location->currency }}
@elseif (($asset->id) && ($asset->location))
{{ $asset->location->currency }}
@else
{{ $snipeSettings->default_currency }}
@endif
{{ Helper::formatCurrencyOutput($asset->purchase_cost)}}
@endif
@if (($asset->model) && ($asset->depreciation) && ($asset->purchase_date))
{{ trans('admin/hardware/table.current_value') }}
@if (($asset->id) && ($asset->location))
{{ $asset->location->currency }}
@elseif (($asset->id) && ($asset->location))
{{ $asset->location->currency }}
@else
{{ $snipeSettings->default_currency }}
@endif
{{ Helper::formatCurrencyOutput($asset->getDepreciatedValue() )}}
@endif
@if ($asset->order_number)
{{ trans('general.order_number') }}
@endif
@if ($asset->supplier)
{{ trans('general.supplier') }}
@endif
@if ($asset->warranty_months)
{{ trans('admin/hardware/form.warranty') }}
{{ $asset->warranty_months }}
{{ trans('admin/hardware/form.months') }}
@if (($asset->serial && $asset->model->manufacturer) && $asset->model->manufacturer->name == 'Apple')
Applecare Status Lookup
@endif
{{ trans('admin/hardware/form.warranty_expires') }}
@if ($asset->purchase_date)
{!! $asset->present()->warranty_expires() < date("Y-m-d") ? '' : '' !!}
@endif
@if ($asset->purchase_date)
{{ Helper::getFormattedDateObject($asset->present()->warranty_expires(), 'date', false) }}
-
{{ Carbon::parse($asset->present()->warranty_expires())->diffForHumans(['parts' => 2]) }}
@else
{{ trans('general.na_no_purchase_date') }}
@endif
@endif
@if (($asset->model) && ($asset->depreciation))
{{ trans('general.depreciation') }}
{{ $asset->depreciation->name }}
({{ $asset->depreciation->months }}
{{ trans('admin/hardware/form.months') }})
{{ trans('admin/hardware/form.fully_depreciated') }}
@if ($asset->purchase_date)
{{ Helper::getFormattedDateObject($asset->depreciated_date()->format('Y-m-d'), 'date', false) }}
-
{{ Carbon::parse($asset->depreciated_date())->diffForHumans(['parts' => 2]) }}
@else
{{ trans('general.na_no_purchase_date') }}
@endif
@endif
@if (($asset->model) && ($asset->model->eol))
{{ trans('admin/hardware/form.eol_rate') }}
{{ $asset->model->eol }}
{{ trans('admin/hardware/form.months') }}
{{ trans('admin/hardware/form.eol_date') }}
@if ($asset->purchase_date)
{{ Helper::getFormattedDateObject($asset->present()->eol_date(), 'date', false) }}
-
{{ Carbon::parse($asset->present()->eol_date())->diffForHumans(['parts' => 2]) }}
@else
{{ trans('general.na_no_purchase_date') }}
@endif
@endif
@if ($asset->expected_checkin!='')
{{ trans('admin/hardware/form.expected_checkin') }}
{{ Helper::getFormattedDateObject($asset->expected_checkin, 'date', false) }}
@endif
{{ trans('admin/hardware/form.notes') }}
{!! nl2br(e($asset->notes)) !!}
@if ($asset->location)
{{ trans('general.location') }}
@endif
@if ($asset->defaultLoc)
{{ trans('admin/hardware/form.default_location') }}
@endif
@if ($asset->created_at!='')
{{ trans('general.created_at') }}
{{ Helper::getFormattedDateObject($asset->created_at, 'datetime', false) }}
@endif
@if ($asset->updated_at!='')
{{ trans('general.updated_at') }}
{{ Helper::getFormattedDateObject($asset->updated_at, 'datetime', false) }}
@endif
@if ($asset->last_checkout!='')
{{ trans('admin/hardware/table.checkout_date') }}
{{ Helper::getFormattedDateObject($asset->last_checkout, 'datetime', false) }}
@endif
{{ trans('general.checkouts_count') }}
{{ ($asset->checkouts) ? (int) $asset->checkouts->count() : '0' }}
{{ trans('general.checkins_count') }}
{{ ($asset->checkins) ? (int) $asset->checkins->count() : '0' }}
{{ trans('general.user_requests_count') }}
{{ ($asset->userRequests) ? (int) $asset->userRequests->count() : '0' }}
Labels
{{ Form::open([
'method' => 'POST',
'route' => ['hardware/bulkedit'],
'class' => 'form-inline',
'id' => 'bulkForm']) }}
{{ Form::close() }}