@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('general.name') }}
@if ($asset->physical=='1') {{ $asset->model->name }} @endif {{ $asset->asset_tag }} {{ $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)
@foreach ($userlog as $log) @php $result = $log->present()->forDataTable(); @endphp @endforeach
{{ trans('table.action') }} {{ trans('general.asset') }} {{ trans('table.by') }} {{ trans('general.date') }}
{!! $result['icon'] !!} {{ $result['action_type'] }} {!! $result['item'] !!} {!! $result['admin'] !!} {{ $result['created_at'] }}
@else
{{ trans('general.no_results') }}
@endif
@stop