{{ trans('inventory::modules.stock.daily_summary_title') }}
{{ $restaurant->name ?? '' }} @if(!empty($restaurant->name)) • @endif {{ $date->format('M d, Y') }}
{{ trans('inventory::modules.stock.daily_summary_badge', ['days' => $summary['warning_days'] ?? 3]) }}
{{ trans('inventory::modules.stock.lowStockItems') }}
{{ $summary['totals']['low_stock'] ?? 0 }}
{{ trans('inventory::modules.stock.outOfStock') }}
{{ $summary['totals']['out_of_stock'] ?? 0 }}
{{ trans('inventory::modules.stock.expiringBatchesLabel') }}
{{ $summary['totals']['expiring_batches'] ?? 0 }}
@php $branchesSummary = $summary['branches'] ?? []; @endphp @forelse($branchesSummary as $branchSummary) @php $branch = $branchSummary['branch'] ?? null; $lowStock = collect($branchSummary['low_stock'] ?? []); $outOfStock = collect($branchSummary['out_of_stock'] ?? []); $expiringBatches = collect($branchSummary['expiring_batches'] ?? []); $hasAny = $lowStock->isNotEmpty() || $outOfStock->isNotEmpty() || $expiringBatches->isNotEmpty(); @endphp @if($hasAny)
{{ $branch?->name ?? trans('inventory::modules.stock.selectBranch') }}
{{ trans('inventory::modules.stock.branch_summary_subtitle') }}
@if($lowStock->isNotEmpty())
{{ trans('inventory::modules.stock.lowStockItems') }}
@foreach($lowStock as $item) @endforeach
{{ trans('inventory::modules.inventoryItem.name') }} {{ trans('inventory::modules.stock.currentStock') }} {{ trans('inventory::modules.stock.minStock') }} {{ trans('inventory::modules.itemCategory.itemCategoryName') }}
{{ $item->name }} {{ (float) $item->current_stock }} {{ $item->unit?->name }} {{ (float) $item->threshold_quantity }} {{ $item->category?->name ?? '-' }}
@endif @if($outOfStock->isNotEmpty())
{{ trans('inventory::modules.stock.outOfStock') }}
@foreach($outOfStock as $item) @endforeach
{{ trans('inventory::modules.inventoryItem.name') }} {{ trans('inventory::modules.inventoryItem.category') }}
{{ $item->name }} {{ $item->category?->name ?? '-' }}
@endif @if($expiringBatches->isNotEmpty())
{{ trans('inventory::modules.stock.expiringBatchesLabel') }}
@foreach($expiringBatches as $batch) @endforeach
{{ trans('inventory::modules.batchRecipe.batchInventory') }} {{ trans('inventory::modules.batchRecipe.quantity') }} {{ trans('inventory::modules.stock.expirationDate') }} {{ trans('inventory::modules.stock.stockStatus') }}
{{ $batch->batchRecipe?->name ?? '-' }} {{ (float) $batch->remaining_quantity }} {{ optional($batch->expiry_date)->format('M d, Y') }} {{ trans('inventory::modules.stock.expiringSoonBadge') }}
@endif
@endif @empty

{{ trans('inventory::modules.stock.noStockItemsFound') }}

@endforelse