@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' }} | @php $typeLabel = $transaction->type; if ($transaction->type === 'order_payment') { $method = $transaction->payment_method ?: 'card'; $translated = __('modules.order.' . $method); $methodLabel = $translated !== 'modules.order.' . $method ? $translated : \Illuminate\Support\Str::title(str_replace('_', ' ', (string) $method)); $typeLabel = $methodLabel; } elseif ($transaction->type === 'cash_sale') { $typeLabel = __('cashregister::app.cashSalesLabel'); } else { $typeLabel = __('app.' . $transaction->type); } @endphp {{ $typeLabel }} | {{ ($transaction->type==='cash_out' || $transaction->type==='safe_drop' ? '-' : '+') . currency_format($transaction->amount, restaurant()->currency_id) }} | @php $reasonLabel = $transaction->reason; if (!$reasonLabel && in_array($transaction->type, ['cash_sale', 'order_payment'], true)) { $method = $transaction->payment_method ?: 'card'; $translated = __('modules.order.' . $method); $reasonLabel = $translated !== 'modules.order.' . $method ? $translated : \Illuminate\Support\Str::title(str_replace('_', ' ', (string) $method)); } @endphp {{ $reasonLabel ?? '—' }} |
@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')