{{ __('inventory::modules.reports.batch_consumption.title') }}

{{-- Filters --}}
@lang('inventory::modules.reports.batch_consumption.description')
{{-- Summary --}}
@lang('inventory::modules.batchRecipe.batchInventory')
{{ number_format($summary['total_consumptions'] ?? 0) }}
@lang('inventory::modules.batchRecipe.quantity')
{{ number_format($summary['total_quantity'] ?? 0, 2) }}
@lang('inventory::modules.reports.cogs.total_cost')
{{ currency_format($summary['total_cost'] ?? 0, restaurant()->currency_id) }}
{{-- Table --}}
@forelse($consumptions as $consumption) @empty @endforelse
@lang('inventory::modules.batchRecipe.batchName') @lang('inventory::modules.batchRecipe.quantity') @lang('inventory::modules.batchRecipe.createdOn') @lang('inventory::modules.reports.cogs.total_cost')
{{ $consumption->batchStock->batchRecipe->name ?? '-' }}
{{ $consumption->batchStock->batchRecipe->yieldUnit->name ?? '' }}
{{ number_format($consumption->quantity, 2) }} {{ $consumption->batchStock->batchRecipe->yieldUnit->symbol ?? '' }}
{{ $consumption->created_at->timezone(timezone())->format('Y-m-d H:i') }}
{{ optional($consumption->order)->show_formatted_order_number ?? '-' }}
{{ currency_format($consumption->cost, restaurant()->currency_id) }}
@lang('inventory::modules.batchRecipe.noBatchStockFound')
{{ $consumptions->links() }}