@lang('cashregister::app.totalTransactions'): {{ $summary['total_transactions'] }}
@lang('cashregister::app.netCashFlow'): {{ currency_format($summary['net_cash_flow'], restaurant()->currency_id) }}
@lang('cashregister::app.totalCashIn')
{{ currency_format($summary['total_cash_in'], restaurant()->currency_id) }}
{{ $summary['cash_in_count'] }} @lang('cashregister::app.transactions')
@lang('cashregister::app.totalCashOut')
{{ currency_format($summary['total_cash_out'], restaurant()->currency_id) }}
{{ $summary['cash_out_count'] }} @lang('cashregister::app.transactions')
@lang('cashregister::app.safeDropLabel')
-{{ currency_format($summary['total_safe_drop'] ?? 0, restaurant()->currency_id) }}
{{ $summary['safe_drop_count'] ?? 0 }} @lang('cashregister::app.transactions')
@lang('cashregister::app.netCashFlow')
{{ $summary['net_cash_flow'] >= 0 ? '+' : '' }}{{ currency_format($summary['net_cash_flow'], restaurant()->currency_id) }}
{{ $summary['net_cash_flow'] >= 0 ? __('cashregister::app.netInflow') : __('cashregister::app.netOutflow') }}
| @lang('cashregister::app.dateTime') | @lang('cashregister::app.cashier') | @lang('cashregister::app.type') | @lang('cashregister::app.amount') | @lang('cashregister::app.reason') |
|---|---|---|---|---|
| {{ $transaction->created_at->timezone(timezone())->format('d M Y') }} | {{ $transaction->session->cashier->name ?? 'N/A' }} | @lang('app.' . $transaction->type) | {{ ($transaction->type==='cash_out' || $transaction->type==='safe_drop' ? '-' : '+') . currency_format($transaction->amount, restaurant()->currency_id) }} | {{ $transaction->reason ?? '—' }} |
@lang('cashregister::app.averageCashIn')
{{ $summary['cash_in_count'] > 0 ? currency_format($summary['total_cash_in'] / $summary['cash_in_count'], restaurant()->currency_id) : currency_format(0, restaurant()->currency_id) }}
@lang('cashregister::app.averageCashOut')
{{ $summary['cash_out_count'] > 0 ? currency_format($summary['total_cash_out'] / $summary['cash_out_count'], restaurant()->currency_id) : currency_format(0, restaurant()->currency_id) }}
@lang('cashregister::app.transactionsPerDay')
{{ Carbon\Carbon::parse($startDate)->diffInDays(Carbon\Carbon::parse($endDate)) + 1 > 0 ? round($summary['total_transactions'] / (Carbon\Carbon::parse($startDate)->diffInDays(Carbon\Carbon::parse($endDate)) + 1), 1) : 0 }}
@lang('cashregister::app.noCashInOutTransactions')