{{ Helper::formatCurrencyOutput($user->getUserTotalCost()->asset_cost) }}
{{ Helper::formatCurrencyOutput($user->getUserTotalCost()->license_cost)}}
{{ Helper::formatCurrencyOutput($user->getUserTotalCost()->accessory_cost)}}
{{ Helper::formatCurrencyOutput($user->getUserTotalCost()->consumable_cost) }}
{{-- Sum across complete + active maintenances tied
to this user — used to surface "which users
cost the most maintenance over time" as a glance.
The current-active count lives on the tab badge
above so we don't duplicate it here. --}}
{{ Helper::formatCurrencyOutput($user->getUserTotalCost()->maintenance_cost) }}
{{ Helper::formatCurrencyOutput($user->getUserTotalCost()->total_user_cost) }}
@endif
{{ trans('general.licenses') }}
@can('checkin', \App\Models\License::class)
@endcan
@can('view', \App\Models\License::class)
@endcan
{{ trans('general.accessories_assigned') }}
@can('view', \App\Models\Accessory::class)
@endcan
@can('view', \App\Models\Consumable::class)
@endcan
{{-- Maintenances tab: every maintenance whose underlying
asset was checked out to this user. Shows open and
closed; the tab badge only counts the open ones
(see assignedMaintenances()->active() above). --}}
@include('partials.users-bulk-actions')