{{ restaurant()->name }}
@lang('cashregister::app.zReport')
@lang('cashregister::app.generatedOn') {{ $reportData['generated_at']->timezone(timezone())->format('Y-m-d H:i') }}
@lang('cashregister::app.branch') {{ $reportData['session']->branch->name ?? 'N/A' }}
@lang('cashregister::app.register') {{ $reportData['session']->register->name ?? 'N/A' }}
@lang('cashregister::app.cashier') {{ $reportData['session']->cashier->name ?? 'N/A' }}
@if($reportData['session']->closed_at)
@lang('cashregister::app.closed') {{ $reportData['session']->closed_at->format('Y-m-d H:i:s') }}
@endif
@lang('cashregister::app.openingFloat') {{ currency_format($reportData['opening_float'], restaurant()->currency_id) }}
@lang('cashregister::app.cashSales') {{ currency_format($reportData['cash_sales'], restaurant()->currency_id) }}
@lang('cashregister::app.cashIn') {{ currency_format($reportData['cash_in'], restaurant()->currency_id) }}
@lang('cashregister::app.cashOut') {{ currency_format($reportData['cash_out'], restaurant()->currency_id) }}
@lang('cashregister::app.safeDrops') {{ currency_format($reportData['safe_drops'], restaurant()->currency_id) }}
@lang('cashregister::app.refunds') {{ currency_format($reportData['refunds'], restaurant()->currency_id) }}
@if(isset($reportData['actual_cash']))
@lang('cashregister::app.actualCash') {{ currency_format($reportData['actual_cash'], restaurant()->currency_id) }}
@endif @if(isset($reportData['discrepancy']))
@lang('cashregister::app.discrepancy') {{ currency_format($reportData['discrepancy'], restaurant()->currency_id) }}
@endif
@lang('cashregister::app.expectedCash') {{ currency_format($reportData['expected_cash'], restaurant()->currency_id) }}
@if(isset($denominations) && $denominations->count() > 0) @php $grouped = $denominations->groupBy('cash_denomination_id')->map(function($items) { return [ 'value' => optional($items->first()->denomination)->value, 'count' => $items->sum('count'), 'subtotal' => $items->sum('subtotal'), ]; })->sortByDesc('value'); @endphp
@lang('cashregister::app.countedCash') (@lang('cashregister::app.denominations'))
@foreach($grouped as $row)
{{ currency_format((float) $row['value'], restaurant()->currency_id) }} × {{ $row['count'] }} {{ currency_format((float) $row['subtotal'], restaurant()->currency_id) }}
@endforeach
@lang('cashregister::app.totalCounted') {{ currency_format($reportData['counted_cash'], restaurant()->currency_id) }}
@endif