@if ($asset->model->deleted_at!='')
{{ trans('admin/hardware/general.model_deleted', array('model_id' => $asset->model->id)) }}
@elseif ($asset->deleted_at!='')
{{ trans('admin/hardware/general.deleted', array('asset_id' => $asset->id)) }}
@endif
@if ($asset->serial)
{{ trans('admin/hardware/form.serial') }}:
{{ $asset->serial }}
@endif
@if ($asset->mac_address!='')
{{ trans('admin/hardware/form.mac_address') }}:
{{ $asset->mac_address }}
@endif
@if ($asset->model->manufacturer)
@endif
@if ($asset->purchase_date)
{{ trans('admin/hardware/form.date') }}:
{{ $asset->purchase_date }}
@endif
@if ($asset->purchase_cost)
{{ trans('admin/hardware/form.cost') }}:
{{ \App\Models\Setting::first()->default_currency }}
{{ number_format($asset->purchase_cost,2) }}
@endif
@if ($asset->order_number)
{{ trans('admin/hardware/form.order') }}:
{{ $asset->order_number }}
@endif
@if ($asset->supplier_id)
@endif
@if ($asset->warranty_months)
{{ 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
Software Assigned
@if (count($asset->licenses) > 0)
@else
{{ trans('general.no_results') }}
@endif
{{ trans('general.notes') }} |
{{ trans('general.file_name') }} |
|
|
@if (count($asset->uploads) > 0)
@foreach ($asset->uploads as $file)
@if ($file->note) {{ $file->note }}
@endif
|
{{ $file->filename }}
|
@if ($file->filename)
{{ trans('general.download') }}
@endif
|
|
@endforeach
@else
{{ trans('general.no_results') }}
|
@endif
{{ trans('general.date') }} |
{{ trans('general.admin') }} |
{{ trans('table.actions') }} |
{{ trans('general.user') }} |
{{ trans('general.notes') }} |
@if (count($asset->assetlog) > 0)
@foreach ($asset->assetlog as $log)
{{ $log->created_at }} |
@if (isset($log->user_id))
{{ $log->adminlog->fullName() }}
@endif
|
{{ $log->action_type }} |
@if ((isset($log->checkedout_to)) && ($log->checkedout_to!=0) && ($log->checkedout_to!=''))
@if ($log->userlog->deleted_at=='')
{{ $log->userlog->fullName() }}
@else
{{ $log->userlog->fullName() }}
@endif
@endif
|
@if ($log->note) {{ $log->note }}
@endif
|
@endforeach
@endif
{{ $asset->created_at }} |
@if (isset($asset->adminuser->id)) {{ $asset->adminuser->fullName() }}
@else
{{ trans('general.unknown_admin') }}
@endif
|
{{ trans('general.created_asset') }} |
|
|