@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('admin/hardware/general.view') }} {{ $asset->asset_tag }} @parent @stop {{-- Page content --}} @section('content')

{{ trans('admin/hardware/general.view') }} {{ $asset->asset_tag }} @if ($asset->name) ({{ $asset->name }}) @endif

@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)
{{ trans('admin/hardware/form.manufacturer') }}: {{ $asset->model->manufacturer->name }}
{{ trans('admin/hardware/form.model') }}: {{ $asset->model->name }} / {{ $asset->model->model_number }}
@endif @if ($asset->purchase_date)
{{ trans('admin/hardware/form.date') }}: {{ $asset->purchase_date }}
@endif @if ($asset->purchase_cost)
{{ trans('admin/hardware/form.cost') }}: {{ $snipeSettings->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)
{{ trans('admin/hardware/form.supplier') }}: {{ $asset->supplier->name }}
@endif @if ($asset->warranty_months)
{{ trans('admin/hardware/form.warranty') }}: {{ $asset->warranty_months }} {{ trans('admin/hardware/form.months') }}
{{ trans('admin/hardware/form.expires') }}: {{ $asset->present()->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->present()->eol_date() }} @if ($asset->present()->months_until_eol()) ( @if ($asset->present()->months_until_eol()->y > 0) {{ $asset->present()->months_until_eol()->y }} {{ trans('general.years') }}, @endif {{ $asset->present()->months_until_eol()->m }} {{ trans('general.months') }} ) @endif
@endif
Software Assigned

@if (count($asset->licenses) > 0) @foreach ($asset->licenseseats as $seat) @endforeach
{{ trans('general.name') }} {{ trans('admin/licenses/form.license_key') }} {{ trans('table.actions') }}
{{ $seat->license->name }} {{ $seat->license->serial }} {{ trans('general.checkin') }}
@else
{{ trans('general.no_results') }}
@endif
{{ trans('general.file_uploads') }} [ {{trans('button.add')}} ]
@if (count($asset->uploads) > 0) @foreach ($asset->uploads as $file) @endforeach @else @endif
{{ trans('general.notes') }} {{ trans('general.file_name') }}
@if ($file->note) {{ $file->note }} @endif {{ $file->filename }} @if ($file->filename) {{ trans('general.download') }} @endif
{{ trans('general.no_results') }}
@if (count($asset->assetlog) > 0) @foreach ($asset->assetlog as $log) @endforeach @endif
{{ trans('general.date') }} {{ trans('general.admin') }} {{ trans('table.actions') }} {{ trans('general.user') }} {{ trans('general.notes') }}
{{ $log->created_at }} @if (isset($log->user_id)) {{ $log->user->present()->fullName() }} @endif {{ $log->action_type }} @if ((isset($log->target_id)) && ($log->target_id!=0) && ($log->target_id!='')) @if ($log->target->deleted_at=='') {{ $log->user->present()->fullName() }} @else {{ $log->user->present()->fullName() }} @endif @endif @if ($log->note) {{ $log->note }} @endif
{{ $asset->created_at }} @if (isset($asset->adminuser->id)) {{ $asset->adminuser->present()->fullName() }} @else {{ trans('general.unknown_admin') }} @endif {{ trans('general.created_asset') }}
@if ($asset->notes)
{{ trans('admin/hardware/form.notes') }}:
{{ nl2br(e($asset->notes)) }}
@endif @if ($qr_code->display)
{{ trans('admin/hardware/form.qr') }}
@endif @if (($asset->assigneduser) && ($asset->assigned_to > 0) && ($asset->deleted_at=='')) {{-- @TODO This should be extnded for details about non users --}}

{{ trans('admin/hardware/form.checkedout_to') }}


  • {{ $asset->assignedTo->present()->nameUrl() }}
  • @if (isset($asset->assetloc->address))
  • {{ $asset->assetloc->address }} @if (isset($asset->assetloc->address2)) {{ $asset->assetloc->address2 }} @endif
  • @if (isset($asset->assetloc->city))
  • {{ $asset->assetloc->city }}, {{ $asset->assetloc->state }} {{ $asset->assetloc->zip }}
  • @endif @endif @if (isset($asset->assigneduser->email))

  • {{ $asset->assigneduser->email }}
  • @endif @if ((isset($asset->assigneduser->phone)) && ($asset->assigneduser->phone!=''))
  • {{ $asset->assigneduser->phone }}
  • @endif
@endif @if (($asset->status_id ) && ($asset->status_id > 0)) @if ($asset->assetstatus)

@if (($asset->assetstatus->deployable=='1') && ($asset->assigned_to > 0)) {{ trans('admin/hardware/general.asset') }} {{ trans('general.deployed') }} @else {{ $asset->assetstatus->name }} {{ trans('admin/hardware/general.asset') }} @endif @if (($asset->assetstatus->notes) && ($asset->assigned_to==''))
{{ $asset->assetstatus->notes }}
@endif @endif @endif
@stop