@lang('app.to')
@foreach($branches as $branch) @endforeach {{-- @foreach($registers as $register) @endforeach --}} @if(user_can('View Cash Register Reports')) @foreach($cashiers as $cashier) @endforeach @endif
@if($shifts->count() > 0)

@lang('cashregister::app.sessionRegisterSummary')

@lang('cashregister::app.exportCsv')

Total Sessions: {{ $summary['total_shifts'] }}

Completion Rate: {{ round($summary['completion_rate'], 1) }}%

Total Sessions

{{ $summary['total_shifts'] }}

All periods

Completed Sessions

{{ $summary['completed_shifts'] }}

{{ round($summary['completion_rate'], 1) }}% completion

Pending Sessions

{{ $summary['pending_shifts'] }}

Awaiting approval

Open Sessions

{{ $summary['open_shifts'] }}

Currently active

Average Session Duration

@if($summary['average_duration_minutes'] > 0) {{ floor($summary['average_duration_minutes'] / 60) }}h {{ $summary['average_duration_minutes'] % 60 }}m @else Open Session @endif

Total Opening Float

{{ currency_format($summary['total_opening_float'], restaurant()->currency_id) }}

Total Discrepancy

{{ $summary['total_discrepancy'] >= 0 ? '+' : '' }}{{ currency_format($summary['total_discrepancy'], restaurant()->currency_id) }}

@foreach($shifts as $shift) @endforeach
Date Cashier Session Type Duration Opening Float Expected Cash Counted Cash Discrepancy Status
{{ $shift->opened_at->timezone(timezone())->format('d M Y') }} {{ $shift->cashier->name ?? 'N/A' }} {{ $this->getSessionType($shift) }} {{ $this->getSessionDuration($shift) }} {{ currency_format($shift->opening_float, restaurant()->currency_id) }} {{ currency_format($shift->expected_cash, restaurant()->currency_id) }} {{ currency_format($shift->counted_cash, restaurant()->currency_id) }} {{ $shift->discrepancy >= 0 ? '+' : '' }}{{ currency_format($shift->discrepancy, restaurant()->currency_id) }} @lang('app.' . $shift->status)

Session Performance Summary

Session Distribution by Type:

@php $sessionTypes = $shifts->groupBy(function($shift) { return $this->getSessionType($shift); }); @endphp @foreach($sessionTypes as $type => $sessionsOfType)
{{ $type }}: {{ $sessionsOfType->count() }} sessions
@endforeach

Cashier Performance:

@php $cashierSessions = $shifts->groupBy('opened_by'); @endphp @foreach($cashierSessions->take(5) as $cashierId => $sessionsOfCashier) @php $cashier = $sessionsOfCashier->first()->cashier; @endphp
{{ $cashier->name ?? 'Unknown' }}: {{ $sessionsOfCashier->count() }} sessions
@endforeach
@else

No Data Available

No cash register shifts found for the selected criteria.

@endif
@script @endscript