{{-- bs-table backed by /api/v1/low-stock which delegates to Helper::checkLowInventory so this widget and the top-nav alert bell can't drift. polymorphicItemFormatter handles the per-type icon + drilldown link. The shared adjust-quantity button hangs off each row's available_actions.adjust_quantity via the generic actions column. LowStockController filters rows by per-type view permission server-side, so a viewer only sees rows for the types they can view. --}} @if (Gate::allows('view', \App\Models\Consumable::class) || Gate::allows('view', \App\Models\Accessory::class) || Gate::allows('view', \App\Models\Component::class) || Gate::allows('view', \App\Models\AssetModel::class) || Gate::allows('view', \App\Models\License::class))

{{ trans('general.dashboard_low_stock') }} {{-- Info icon: explains the formula the alert uses (remaining < min + alert_threshold) so the widget doesn't look arbitrary to someone who hasn't set a min_amt or threshold. No link on the icon since non-superuser admins see the dashboard but can't reach the alert- threshold setting. --}} {{ trans('general.dashboard_low_stock_help', ['threshold' => (int) $snipeSettings->alert_threshold]) }}

{{ trans('general.name') }} {{ trans('general.remaining') }} {{ trans('general.min_amt') }} {{ trans('table.actions') }}
@endif