From 3469e49470aa711a7d4cc706819a8b591fe9ae49 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 3 Oct 2022 21:28:22 -0700 Subject: [PATCH] First UI overhaul Signed-off-by: snipe --- resources/views/account/view-assets.blade.php | 876 ++++++++++++------ 1 file changed, 572 insertions(+), 304 deletions(-) diff --git a/resources/views/account/view-assets.blade.php b/resources/views/account/view-assets.blade.php index f5dc07eb84..d3e7047e9d 100755 --- a/resources/views/account/view-assets.blade.php +++ b/resources/views/account/view-assets.blade.php @@ -9,331 +9,599 @@ {{-- Account page content --}} @section('content') -
-
-
- @if ($user->id) -
-
-

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

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

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

+ + +
-
- @endif -
- +
+
+ + + + + + + + + + @foreach ($user->accessories as $accessory) + + + + + + @endforeach + +
{{ trans('general.name') }}{{ trans('general.purchase_cost') }}{{ trans('general.action') }}
{!! $accessory->name !!} + {!! Helper::formatCurrencyOutput($accessory->purchase_cost) !!} + + @can('checkin', $accessory) + {{ trans('general.checkin') }} + @endcan +
+
+
-
- - - - - - - - - - @foreach ($user->licenses as $license) - - - - - - @endforeach - -
{{ trans('general.name') }}{{ trans('admin/hardware/form.serial') }}{{ trans('general.category') }}
{{ $license->name }} - @can('viewKeys', $license) - {{ $license->serial }} - @else - ------------ - @endcan - {{ $license->category->name }}
-
-
-
-
-
+
+
+ + + + + + + + + + + @foreach ($user->consumables as $consumable) + + + + + + + @endforeach + +
{{ trans('general.name') }}{{ trans('general.purchase_cost') }}{{ trans('general.date') }}{{ trans('general.notes') }}
{!! $consumable->name !!} + {!! Helper::formatCurrencyOutput($consumable->purchase_cost) !!} + {{ Helper::getFormattedDateObject($consumable->pivot->created_at, 'datetime', false) }}{{ $consumable->pivot->note }}
+
+
-
-
-
- @if ($user->id) -
-
-

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

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

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

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

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

-
-
- @endif - -
-
- - - - - - - - - - -
{{ trans('general.date') }}{{ trans('general.admin') }}{{ trans('general.action') }}{{ trans('general.item') }}
-
- -
-
-
-
@stop