@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')

@lang('cashregister::app.totalSessions'): {{ $summary['total_sessions'] }}

@lang('cashregister::app.totalCashSales'): {{ currency_format($summary['total_cash_sales'], restaurant()->currency_id) }}

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

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

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

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

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

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

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

{{ 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
@lang('cashregister::app.date') @lang('cashregister::app.cashier') @lang('cashregister::app.openingFloat') @lang('cashregister::app.cashSales') @lang('cashregister::app.cashIn') @lang('cashregister::app.cashOut') @lang('cashregister::app.safeDrops') @lang('cashregister::app.expectedCash') @lang('cashregister::app.countedCash') @lang('cashregister::app.discrepancy') @lang('cashregister::app.status')
{{ $session->opened_at->timezone(timezone())->format('d M Y') }} {{ $session->cashier->name ?? __('cashregister::app.unknown') }} {{ 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)

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

{{ $summary['total_sessions'] }}

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

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

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

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

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

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

@else

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

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

@endif
@script @endscript