removes the row instead of just the optional values

This commit is contained in:
Godfrey M 2023-11-28 10:08:32 -08:00
parent 45e9d0597a
commit 9e59550b79

View file

@ -638,14 +638,14 @@
</div> </div>
@endif @endif
@if($user->getUserTotalCost()->total_user_cost > 0)
<div class="row"> <div class="row">
<div class="col-md-3"> <div class="col-md-3">
{{ trans('admin/users/table.total_assets_cost') }} {{ trans('admin/users/table.total_assets_cost') }}
</div> </div>
<div class="col-md-9"> <div class="col-md-9">
{{Helper::formatCurrencyOutput($user->getUserTotalCost()->total_user_cost)}} {{Helper::formatCurrencyOutput($user->getUserTotalCost()->total_user_cost)}}
@if($user->getUserTotalCost()->total_user_cost > 0)
<a id="optional_info" class="text-primary"> <a id="optional_info" class="text-primary">
<i class="fa fa-caret-right fa-2x" id="optional_info_icon"></i> <i class="fa fa-caret-right fa-2x" id="optional_info_icon"></i>
<strong>{{ trans('admin/hardware/form.optional_infos') }}</strong> <strong>{{ trans('admin/hardware/form.optional_infos') }}</strong>
@ -658,15 +658,11 @@
{{trans('general.licenses').': '. Helper::formatCurrencyOutput($user->getUserTotalCost()->license_cost)}}<br> {{trans('general.licenses').': '. Helper::formatCurrencyOutput($user->getUserTotalCost()->license_cost)}}<br>
{{trans('general.accessories').': '.Helper::formatCurrencyOutput($user->getUserTotalCost()->accessory_cost)}}<br> {{trans('general.accessories').': '.Helper::formatCurrencyOutput($user->getUserTotalCost()->accessory_cost)}}<br>
</div> </div>
</div>
</div><!--/.row-->
@endif @endif
</div>
</div>
</div> <!--/end striped container--> </div> <!--/end striped container-->
</div> <!-- end col-md-9 --> </div> <!-- end col-md-9 -->
</div> <!--/.row--> </div> <!--/.row-->
</div><!-- /.tab-pane --> </div><!-- /.tab-pane -->