{{ restaurant()->name }}
@lang('cashregister::app.zReport')
@if($reportData['session']->closed_at) @endif
@lang('cashregister::app.generatedOn') {{ $reportData['generated_at']->timezone(timezone())->format(dateFormat() . ' ' . timeFormat()) }}
@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' }}
@lang('cashregister::app.closed') {{ $reportData['session']->closed_at->timezone(timezone())->format(dateFormat() . ' ' . timeFormat()) }}
@if(!empty($reportData['payment_method_totals'])) @foreach($reportData['payment_method_totals'] as $method => $amount) @continue($method === 'cash') @endforeach @endif @if(isset($reportData['actual_cash'])) @endif @if(isset($reportData['discrepancy'])) @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) }}
{{ __('modules.order.' . $method) !== 'modules.order.' . $method ? __('modules.order.' . $method) : \Illuminate\Support\Str::title(str_replace('_', ' ', (string) $method)) }} {{ currency_format((float) $amount, 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.actualCash') {{ currency_format($reportData['actual_cash'], restaurant()->currency_id) }}
@lang('cashregister::app.discrepancy') {{ currency_format($reportData['discrepancy'], restaurant()->currency_id) }}
@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) @endforeach
{{ currency_format((float) $row['value'], restaurant()->currency_id) }} × {{ $row['count'] }} {{ currency_format((float) $row['subtotal'], restaurant()->currency_id) }}
@lang('cashregister::app.totalCounted') {{ currency_format($reportData['counted_cash'], restaurant()->currency_id) }}
@endif