@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 : ''}}
@if (($asset->model) && ($asset->model->fieldset))
@foreach($asset->model->fieldset->fields as $field)
{{ $field->name }}
@if ($field->field_encrypted=='1')
@endif
@if ($field->isFieldDecryptable($asset->{$field->db_column_name()} ))
@can('superuser')
@if (($field->format=='URL') && ($asset->{$field->db_column_name()}!=''))
{{ Helper::gracefulDecrypt($field, $asset->{$field->db_column_name()}) }}
@elseif (($field->format=='DATE') && ($asset->{$field->db_column_name()}!=''))
{{ \App\Helpers\Helper::gracefulDecrypt($field, \App\Helpers\Helper::getFormattedDateObject($asset->{$field->db_column_name()}, 'date', false)) }}
@else
{{ Helper::gracefulDecrypt($field, $asset->{$field->db_column_name()}) }}
@endif
@else
{{ strtoupper(trans('admin/custom_fields/general.encrypted')) }}
@endcan
@else
@if (($field->format=='BOOLEAN') && ($asset->{$field->db_column_name()}!=''))
{!! ($asset->{$field->db_column_name()} == 1) ? "
" : "
" !!}
@elseif (($field->format=='URL') && ($asset->{$field->db_column_name()}!=''))
{{ $asset->{$field->db_column_name()} }}
@elseif (($field->format=='DATE') && ($asset->{$field->db_column_name()}!=''))
{{ \App\Helpers\Helper::getFormattedDateObject($asset->{$field->db_column_name()}, 'date', false) }}
@else
{!! nl2br(e($asset->{$field->db_column_name()})) !!}
@endif
@endif
@if ($asset->{$field->db_column_name()}=='')
@endif
@endforeach
@endif
@if ($asset->purchase_date)
{{ trans('admin/hardware/form.date') }}
{{ Helper::getFormattedDateObject($asset->purchase_date, 'date', false) }}
@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))
{{ 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') }}
{{ trans('admin/hardware/form.warranty_expires') }}
{!! $asset->present()->warranty_expires() < date("Y-m-d") ? '' : '' !!}
{{ Helper::getFormattedDateObject($asset->present()->warranty_expires(), 'date', false) }}
-
{{ Carbon::parse($asset->present()->warranty_expires())->diffForHumans() }}
@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') }}
{{ Helper::getFormattedDateObject($asset->depreciated_date()->format('Y-m-d'), 'date', false) }}
-
{{ Carbon::parse($asset->depreciated_date())->diffForHumans() }}
@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') }}
{{ Helper::getFormattedDateObject($asset->present()->eol_date(), 'date', false) }}
-
{{ Carbon::parse($asset->present()->eol_date())->diffForHumans() }}
@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() }}