Skip to content

Commit

Permalink
makes user total asset cost appear conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
Godmartinz committed Nov 27, 2023
1 parent 8c7edcb commit 45e9d05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/views/users/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@
</div>
<div class="col-md-9">
{{Helper::formatCurrencyOutput($user->getUserTotalCost()->total_user_cost)}}
@if($user->getUserTotalCost()->total_user_cost > 0)
<a id="optional_info" class="text-primary">
<i class="fa fa-caret-right fa-2x" id="optional_info_icon"></i>
<strong>{{ trans('admin/hardware/form.optional_infos') }}</strong>
Expand All @@ -657,6 +658,7 @@
{{trans('general.licenses').': '. Helper::formatCurrencyOutput($user->getUserTotalCost()->license_cost)}}<br>
{{trans('general.accessories').': '.Helper::formatCurrencyOutput($user->getUserTotalCost()->accessory_cost)}}<br>
</div>
@endif
</div>
</div>

Expand Down

0 comments on commit 45e9d05

Please sign in to comment.