@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($sessions->count() > 0)

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

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

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

Total Cash Sales: {{ currency_format($summary['total_cash_sales'], restaurant()->currency_id) }}

Total Opening Float

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

Total Cash Sales

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

Total Cash In

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

Total Cash Out

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

@foreach($sessions as $session) @php $transactions = \Modules\CashRegister\Entities\CashRegisterTransaction::where('cash_register_session_id', $session->id)->get(); $cashSales = $transactions->where('type', 'cash_sale')->sum('amount'); $cashIn = $transactions->where('type', 'cash_in')->sum('amount'); $cashOut = $transactions->where('type', 'cash_out')->sum('amount'); $safeDrops = $transactions->where('type', 'safe_drop')->sum('amount'); @endphp @endforeach
Date Cashier Opening Float Cash Sales Cash In Cash Out Safe Drops Expected Cash Counted Cash Discrepancy Status
{{ $session->opened_at->timezone(timezone())->format('d M Y') }} {{ $session->cashier->name ?? 'N/A' }} {{ currency_format($session->opening_float, restaurant()->currency_id) }} {{ currency_format($cashSales, restaurant()->currency_id) }} {{ currency_format($cashIn, restaurant()->currency_id) }} {{ currency_format($cashOut, restaurant()->currency_id) }} {{ currency_format($safeDrops, restaurant()->currency_id) }} {{ currency_format($session->expected_cash, restaurant()->currency_id) }} {{ currency_format($session->counted_cash, restaurant()->currency_id) }} {{ $session->discrepancy >= 0 ? '+' : '' }}{{ currency_format($session->discrepancy, restaurant()->currency_id) }} @lang('app.' . $session->status)

Total Sessions

{{ $summary['total_sessions'] }}

Total Expected

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

Total Counted

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

Total Discrepancy

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

@else

No Data Available

No cash register sessions found for the selected criteria.

@endif
@script @endscript