@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
@php $counter = 1 @endphp @foreach ($user->assets as $asset) @if($settings->show_assigned_assets) @php $assignedCounter = 1 @endphp @foreach ($asset->assignedAssets as $asset) @php $assignedCounter++ @endphp @endforeach @endif @php $counter++ @endphp @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') }}
{{ $counter }} {{ $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
{{ $counter }}.{{ $assignedCounter }} {{ $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) {{ $license->serial }} @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