@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
@if (count($user->assets) > 0)
@foreach ($user->assets as $asset) @endforeach
{{ trans('admin/hardware/table.asset_model') }} {{ trans('admin/hardware/table.asset_tag') }} {{ trans('admin/hardware/table.serial') }} {{ trans('general.name') }}
@if ($asset->physical=='1') {{ $asset->model->name }} @endif {{ $asset->asset_tag }} {{ $asset->serial }} {{ $asset->name }} @if (($asset->image) && ($asset->image!='')) @elseif (($asset->model) && ($asset->model->image!='')) @endif
@else
{{ trans('general.no_results') }}
@endif
@if ($user->id)

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

@endif
@if (count($user->licenses) > 0)
@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
@else
{{ trans('general.no_results') }}
@endif
@if ($user->id)

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

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

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

@endif
@if (count($user->accessories) > 0)
@foreach ($user->accessories as $accessory) @endforeach
Name
{{ $accessory->name }}
@else
{{ trans('general.no_results') }}
@endif
@if ($user->id)

History

@endif
@if (count($userlog) > 0)
{{ trans('general.date') }} {{ trans('general.admin') }} {{ trans('general.action') }} {{ trans('general.item') }}
@else
{{ trans('general.no_results') }}
@endif
@stop @section('moar_scripts') @include ('partials.bootstrap-table') @stop