@can('update', \App\Models\Asset::class)
@endcan
@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('admin/hardware/general.view') }} {{ $asset->asset_tag }} @parent @stop {{-- Right header --}} @section('header_right') @can('manage', \App\Models\Asset::class)
This will break things in weird and horrible ways. Edit this asset now to assign it a model.
{{ 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 |
{{ trans('general.company') }} | {{ $asset->company->name }} |
{{ trans('admin/hardware/form.name') }} | {{ $asset->name }} |
{{ trans('admin/hardware/form.serial') }} | {{ $asset->serial }} |
{{ trans('general.last_audit') }} | {{ \App\Helpers\Helper::getFormattedDateObject($audit_log->created_at, 'date', false) }} (by {{ link_to_route('users.show', $audit_log->user->present()->fullname(), [$audit_log->user->id]) }}) |
{{ trans('general.next_audit_date') }} | {{ \App\Helpers\Helper::getFormattedDateObject($asset->next_audit_date, 'date', false) }} |
{{ trans('admin/hardware/form.manufacturer') }} |
|
{{ 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 |
{{ trans('admin/hardware/form.model') }} | @if ($asset->model) @can('view', \App\Models\AssetModel::class) {{ $asset->model->name }} @else {{ $asset->model->name }} @endcan @endif |
{{ trans('admin/models/table.modelnumber') }} | {{ ($asset->model) ? $asset->model->model_number : ''}} |
{{ $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 |
{{ trans('admin/hardware/form.date') }} | {{ \App\Helpers\Helper::getFormattedDateObject($asset->purchase_date, 'date', false) }} |
{{ 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 {{ \App\Helpers\Helper::formatCurrencyOutput($asset->purchase_cost)}} |
{{ trans('general.order_number') }} | #{{ $asset->order_number }} |
{{ trans('general.supplier') }} | @can ('superuser') {{ $asset->supplier->name }} @else {{ $asset->supplier->name }} @endcan |
{{ trans('admin/hardware/form.warranty') }} | {{ $asset->warranty_months }} {{ trans('admin/hardware/form.months') }} ({{ trans('admin/hardware/form.expires') }} {{ $asset->present()->warrantee_expires() }}) |
{{ trans('general.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') }}) |
{{ 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 |
{{ trans('admin/hardware/form.expected_checkin') }} | {{ \App\Helpers\Helper::getFormattedDateObject($asset->expected_checkin, 'date', false) }} |
{{ trans('admin/hardware/form.notes') }} | {!! nl2br(e($asset->notes)) !!} |
{{ trans('general.location') }} | @can('superuser') {{ $asset->location->name }} @else {{ $asset->location->name }} @endcan |
{{ trans('admin/hardware/form.default_location') }} | @can('superuser') {{ $asset->defaultLoc->name }} @else {{ $asset->defaultLoc->name }} @endcan |
{{ trans('general.created_at') }} | {{ \App\Helpers\Helper::getFormattedDateObject($asset->created_at, 'datetime', false) }} |
{{ trans('general.updated_at') }} | {{ \App\Helpers\Helper::getFormattedDateObject($asset->updated_at, 'datetime', false) }} |
{{ 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' }} |
@if($asset->checkedOutToUser()) @endif {!! $asset->assignedTo->present()->glyph() . ' ' .$asset->assignedTo->present()->nameUrl() !!}
{{ trans('general.name') }} | {{ trans('admin/licenses/form.license_key') }} | {{ trans('table.actions') }} |
---|---|---|
{{ $seat->license->name }} | @can('viewKeys', $seat->license) {!! nl2br(e($seat->license->serial)) !!} @else ------------ @endcan | {{ trans('general.checkin') }} |
{{ trans('general.name') }} | {{ trans('general.qty') }} | {{ trans('general.purchase_cost') }} | @foreach ($asset->components as $component) @if (is_null($component->deleted_at))||||
---|---|---|---|---|---|---|
{{ $component->name }} | {{ $component->pivot->assigned_qty }} | {{ $component->purchase_cost }} | ||||
{{ $use_currency.$totalCost }} |
{{ trans('general.date') }} | {{ trans('general.admin') }} | {{ trans('general.action') }} | {{ trans('general.item') }} | {{ trans('general.target') }} | {{ trans('general.notes') }} | @if ($snipeSettings->require_accept_signature=='1'){{ trans('general.signature') }} | @endif{{ trans('general.download') }} | Changed |
---|
{{ trans('general.upload_filetypes_help', ['size' => \App\Helpers\Helper::file_upload_max_size_readable()]) }}