@if ($asset->assetstatus)
{{ trans('general.status') }} |
@if ($asset->assetstatus->color)
@endif
{{ $asset->assetstatus->name }}
({{ $asset->assetstatus->getStatuslabelType() }})
|
@endif
@if ($asset->company)
{{ trans('general.company') }} |
{{ $asset->company->name }} |
@endif
@if ($asset->name)
{{ trans('admin/hardware/form.name') }} |
{{ $asset->name }} |
@endif
@if ($asset->serial)
{{ trans('admin/hardware/form.serial') }} |
{{ $asset->serial }} |
@endif
@if ($asset->model->manufacturer)
{{ trans('admin/hardware/form.manufacturer') }} |
@can('superuser')
{{ $asset->model->manufacturer->name }}
@else
{{ $asset->model->manufacturer->name }}
@endcan
|
{{ trans('admin/hardware/form.model') }} |
@can('superuser')
{{ $asset->model->name }}
@else
{{ $asset->model->name }}
@endcan
|
{{ trans('admin/models/table.modelnumber') }} |
{{ $asset->model->model_number }}
|
@endif
@if ($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()}!=''))
{{ \App\Helpers\Helper::gracefulDecrypt($field, $asset->{$field->db_column_name()}) }}
@else
{{ \App\Helpers\Helper::gracefulDecrypt($field, $asset->{$field->db_column_name()}) }}
@endif
@else
{{ strtoupper(trans('admin/custom_fields/general.encrypted')) }}
@endcan
@else
@if (($field->format=='URL') && ($asset->{$field->db_column_name()}!=''))
{{ $asset->{$field->db_column_name()} }}
@else
{{ $asset->{$field->db_column_name()} }}
@endif
@endif
|
@endforeach
@endif
@if ($asset->purchase_date)
{{ trans('admin/hardware/form.date') }} |
{{ date('M d, Y',strtotime($asset->purchase_date)) }}
|
@endif
@if ($asset->purchase_cost)
{{ trans('admin/hardware/form.cost') }} |
@if (($asset->id) && ($asset->userloc))
{{ $asset->userloc->currency }}
@elseif (($asset->id) && ($asset->assetloc))
{{ $asset->assetloc->currency }}
@else
{{ $snipeSettings->default_currency }}
@endif
{{ \App\Helpers\Helper::formatCurrencyOutput($asset->purchase_cost)}}
@if ($asset->order_number)
(Order #{{ $asset->order_number }})
@endif
|
@endif
@if ($asset->supplier_id)
{{ trans('admin/hardware/form.supplier') }} |
@can ('superuser')
{{ $asset->supplier->name }}
@else
{{ $asset->supplier->name }}
@endcan
|
@endif
@if ($asset->warranty_months)
warrantee_expires() < date("Y-m-d") ? ' class="warning"' : '' !!}>
{{ trans('admin/hardware/form.warranty') }} |
{{ $asset->warranty_months }}
{{ trans('admin/hardware/form.months') }}
({{ trans('admin/hardware/form.expires') }}
{{ $asset->warrantee_expires() }})
|
@endif
@if ($asset->depreciation)
{{ trans('admin/hardware/form.depreciation') }} |
{{ $asset->depreciation->name }}
({{ $asset->depreciation->months }}
{{ trans('admin/hardware/form.months') }}
)
|
{{ trans('admin/hardware/form.fully_depreciated') }}
|
@if ($asset->time_until_depreciated()->y > 0)
{{ $asset->time_until_depreciated()->y }}
{{ trans('admin/hardware/form.years') }},
@endif
{{ $asset->time_until_depreciated()->m }}
{{ trans('admin/hardware/form.months') }}
({{ $asset->depreciated_date()->format('Y-m-d') }})
|
@endif
@if ($asset->model->eol)
{{ trans('admin/hardware/form.eol_rate') }} |
{{ $asset->model->eol }}
{{ trans('admin/hardware/form.months') }}
(
{{ trans('admin/hardware/form.eol_date') }}:
{{ $asset->eol_date() }}
@if ($asset->months_until_eol())
(
@if ($asset->months_until_eol()->y > 0) {{ $asset->months_until_eol()->y }}
{{ trans('general.years') }},
@endif
{{ $asset->months_until_eol()->m }}
{{ trans('general.months') }}
)
@endif
|
@endif
@if ($asset->expected_checkin!='')
{{ trans('admin/hardware/form.expected_checkin') }} |
{{ $asset->expected_checkin }}
|
@endif
{{ trans('admin/hardware/form.notes') }} |
{!! nl2br(e($asset->notes)) !!} |
@if ($asset->created_at!='')
{{ trans('general.created_at') }} |
{{ $asset->created_at->format('F j, Y h:iA') }}
|
@endif
@if ($asset->assetloc)
{{ trans('general.location') }} |
@can('superuser')
{{ $asset->assetloc->name }}
@else
{{ $asset->assetloc->name }}
@endcan
|
@endif
@if ($asset->defaultLoc)
{{ trans('admin/hardware/form.default_location') }} |
@can('superuser')
{{ $asset->defaultLoc->name }}
@else
{{ $asset->defaultLoc->name }}
@endcan
|
@endif