Wastage Analysis

Track and reduce food waste to improve profitability

Total Wastage Cost

{{ currency($totalWastageCost) }}

{{ $totalIncidents }} incidents recorded

Avg Daily Wastage

@php $daysDiff = max(1, \Carbon\Carbon::parse($dateFrom)->diffInDays(\Carbon\Carbon::parse($dateTo)) + 1); $avgDaily = $totalWastageCost / $daysDiff; @endphp

{{ currency($avgDaily) }}

over {{ $daysDiff }} days

Wastage by Item

@forelse($wastageByItem as $item)

{{ $item['item_name'] }}

{{ number_format($item['total_quantity'], 2) }} {{ $item['unit'] }} • {{ $item['incidents'] }} incidents

{{ currency($item['total_cost']) }}
@empty
No wastage recorded
@endforelse

Wastage by Reason

@forelse($wastageByReason as $reason)

{{ $reason->reason ?? 'Unspecified' }}

{{ $reason->incidents }} incidents

{{ currency($reason->total_cost) }}
@empty
No wastage recorded
@endforelse
@if($dailyTrend->count() > 0)

Daily Wastage Trend

@php $maxCost = max($dailyTrend->max('total_cost'), 1); @endphp @foreach($dailyTrend as $day)
{{ \Carbon\Carbon::parse($day->date)->format('M d') }}
@endforeach
@endif