@extends('layouts/default') {{-- Page title --}} @section('title') View Assets for {{ $user->present()->fullName() }} @parent @stop {{-- Account page content --}} @section('content')
@if ($user->id)

{{ trans('admin/users/general.assets_user', array('name' => $user->first_name)) }}

@endif
@foreach ($user->assets as $asset) @endforeach
{{ trans('general.category') }} {{ trans('admin/hardware/table.asset_tag') }} {{ trans('general.name') }} {{ trans('admin/hardware/table.asset_model') }} {{ trans('admin/hardware/table.serial') }} {{ trans('general.image') }}
{{ $asset->model->category->name }} {{ $asset->asset_tag }} {{ $asset->name }} @if ($asset->physical=='1') {{ $asset->model->name }} @endif {{ $asset->serial }} @if (($asset->image) && ($asset->image!='')) @elseif (($asset->model) && ($asset->model->image!='')) @endif
@if ($user->id)

{{ trans('admin/users/general.software_user', array('name' => $user->first_name)) }}

@endif
@foreach ($user->licenses as $license) @endforeach
{{ trans('general.name') }} {{ trans('admin/hardware/form.serial') }}
{{ $license->name }} @can('viewKeys', $license) {{ mb_strimwidth($license->serial, 0, 50, "...") }} @else ------------ @endcan
@if ($user->id)

{{ trans('general.consumables') }}

@endif
@foreach ($user->consumables as $consumable) @endforeach
{{ trans('general.name') }}
{{ $consumable->name }}
@if ($user->id)

{{ trans('general.accessories') }}

@endif
@foreach ($user->accessories as $accessory) @endforeach
Name
{{ $accessory->name }}
@if ($user->id)

History

@endif
{{ trans('general.date') }} {{ trans('general.admin') }} {{ trans('general.action') }} {{ trans('general.item') }}
@stop @section('moar_scripts') @include ('partials.bootstrap-table') @stop