@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') }} |
{{ $asset->model->manufacturer->name }}
|
{{ trans('admin/hardware/form.model') }} |
{{ $asset->model->name }}
|
{{ trans('admin/models/table.modelnumber') }} |
{{ $asset->model->modelno }}
|
@endif
@if ($asset->model->fieldset)
@foreach($asset->model->fieldset->fields as $field)
{{ $field->name }} |
{{ $asset->{$field->db_column_name()} }}
|
@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
{{ \App\Models\Setting::first()->default_currency }}
@endif
{{ number_format($asset->purchase_cost,2) }}
@if ($asset->order_number)
(Order #{{ $asset->order_number }})
@endif
|
@endif
@if ($asset->supplier_id)
{{ trans('admin/hardware/form.supplier') }} |
{{ $asset->supplier->name }}
|
@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') }} |
{{ $asset->notes }} |