{{-- Two-column layout inside each row: label flexes to fill,
badge column has a fixed min-width so "1" and "1,247" line
up in the same vertical spine instead of the label text
bouncing around with the badge width. See
.dashboard-attention-list in overrides.less. --}}
@can('audit', \App\Models\Asset::class)
-
{{ trans('general.dashboard_overdue_audits') }}
{{ number_format($overdueAudits) }}
@endcan
@can('checkin', \App\Models\Asset::class)
-
{{ trans('general.dashboard_overdue_checkins') }}
{{ number_format($overdueCheckins) }}
@endcan
@if (Gate::allows('view', \App\Models\Asset::class)
|| Gate::allows('view', \App\Models\Accessory::class)
|| Gate::allows('view', \App\Models\Consumable::class)
|| Gate::allows('view', \App\Models\Component::class)
|| Gate::allows('view', \App\Models\License::class))
{{-- Unaccepted acceptances span every checkoutable
type. Hide the row entirely when the caller
can't view any of them, since NeedsAttention's
mount() already zeros the count for them
anyway. Prevents an "Unaccepted acceptances 0"
line showing to a users-only viewer. --}}
-
{{ trans('general.dashboard_unaccepted_assets') }}
{{ number_format($pendingAcceptancesCount) }}
@endif
@can('canCheckoutAtLeastOneItemType')
-
{{ trans('general.pending_requests') }}
{{ number_format($pendingRequestsCount) }}
@endcan
@can('view', \App\Models\Asset::class)
-
{{ trans('general.dashboard_assets_past_eol') }}
{{ number_format($assetsPastEol) }}
-
{{ trans('general.dashboard_overdue_maintenances') }}
{{ number_format($overdueMaintenances) }}
@endcan
@can('view', \App\Models\License::class)
-
{{ trans('general.dashboard_licenses_expiring_soon') }}
{{ number_format($licensesExpiringSoon) }}
@endcan
@can('view', \App\Models\User::class)
-
{{ trans('general.dashboard_users_offboarding_soon') }}
{{ number_format($usersOffboardingSoon) }}
@endcan