From 45e9d0597a3d2d928bf349c84f0a880bf88592da Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Mon, 27 Nov 2023 11:36:47 -0800 Subject: [PATCH 1/2] makes user total asset cost appear conditionally --- resources/views/users/view.blade.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/views/users/view.blade.php b/resources/views/users/view.blade.php index ea5e8d80dfd7..4e9376f09249 100755 --- a/resources/views/users/view.blade.php +++ b/resources/views/users/view.blade.php @@ -645,6 +645,7 @@
{{Helper::formatCurrencyOutput($user->getUserTotalCost()->total_user_cost)}} + @if($user->getUserTotalCost()->total_user_cost > 0) {{ trans('admin/hardware/form.optional_infos') }} @@ -657,6 +658,7 @@ {{trans('general.licenses').': '. Helper::formatCurrencyOutput($user->getUserTotalCost()->license_cost)}}
{{trans('general.accessories').': '.Helper::formatCurrencyOutput($user->getUserTotalCost()->accessory_cost)}}
+ @endif From 9e59550b7915adf5d64a790d1d3b103ccc8740bb Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Tue, 28 Nov 2023 10:08:32 -0800 Subject: [PATCH 2/2] removes the row instead of just the optional values --- resources/views/users/view.blade.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/resources/views/users/view.blade.php b/resources/views/users/view.blade.php index 4e9376f09249..0ed5c93b80e2 100755 --- a/resources/views/users/view.blade.php +++ b/resources/views/users/view.blade.php @@ -638,14 +638,14 @@ @endif + @if($user->getUserTotalCost()->total_user_cost > 0)
-
{{ trans('admin/users/table.total_assets_cost') }}
- @endif
- - + + @endif - - -