@lang('app.to')
@if($sessions && count($sessions) > 0) @foreach($sessions as $s) @endforeach @endif @foreach($branches as $branch) @endforeach {{-- @foreach($registers as $register) @endforeach --}} @if(user_can('View Cash Register Reports')) @foreach($cashiers as $cashier) @endforeach @endif
@if(user_can('View Cash Register Reports') && $sessions && count($sessions) > 0) @php $openSessions = collect($sessions)->where('status', 'open'); @endphp @if($openSessions->count() > 0)

Active Open Registers

@foreach($openSessions as $s) @endforeach
ID Branch Cashier Opened At Action
#{{ $s->id }} {{ $s->branch?->name ?? 'N/A' }} {{ $s->cashier?->name ?? 'N/A' }} {{ optional($s->opened_at)->timezone(timezone())->format('d M Y, h:i A') }}
@endif @endif @if($reportData)

X Report (Mid-Shift Snapshot)

Generated: {{ $reportData['generated_at']->timezone(timezone())->format('d M Y, h:i A') }}

Branch: {{ $reportData['session']->branch?->name ?? 'N/A' }}

Register: {{ $reportData['session']->register->name ?? 'N/A' }}

Cashier: {{ $reportData['session']->cashier->name ?? 'N/A' }}

Metric Amount
Opening Float {{ currency_format($reportData['opening_float'], restaurant()->currency_id) }}
Cash Sales {{ currency_format($reportData['cash_sales'], restaurant()->currency_id) }}
Change Given -{{ currency_format($reportData['change_given'], restaurant()->currency_id) }}
Cash-In {{ currency_format($reportData['cash_in'], restaurant()->currency_id) }}
Cash-Out -{{ currency_format($reportData['cash_out'], restaurant()->currency_id) }}
Safe Drops -{{ currency_format($reportData['safe_drops'], restaurant()->currency_id) }}
Refunds (Cash) -{{ currency_format($reportData['refunds'], restaurant()->currency_id) }}
Expected Drawer Cash {{ currency_format($reportData['expected_cash'], restaurant()->currency_id) }}
@if($reportData['session']->status === 'open')
@else
@endif

Session Status: @lang('app.' . $reportData['session']->status)

Shift: {{ $reportData['session']->opened_at->timezone(timezone())->format('d M Y, h:i A') }} - {{ $reportData['session']->closed_at ? $reportData['session']->closed_at->timezone(timezone())->format('d M Y, h:i A') : 'Ongoing' }}

@else

No Data Available

No cash register sessions found for the selected criteria.

@endif
@script @endscript