{{ __('Cash Drawer Close') }}

@include('accounting.partials.nav')
Cash account: {{ $cashDrawerAccount->name }}
Location: {{ session('location_name') ?? session('location_id') }}
System Values (this date)
Start cash{{ number_format($context['start_cash'] ?? 0, 2) }}
POS cash sales{{ number_format($context['system_cash_sales'] ?? 0, 2) }}
POS card sales (system){{ number_format($context['system_pos_sales'] ?? 0, 2) }}
POS credit sales{{ number_format($context['system_credit_sales'] ?? 0, 2) }}
Repair cash{{ number_format($context['repair_cash'] ?? 0, 2) }}
Repair card{{ number_format($context['repair_card'] ?? 0, 2) }}
@if(($context['repair_bank'] ?? 0) > 0)
Repair bank transfer{{ number_format($context['repair_bank'] ?? 0, 2) }}
@endif
Cash expenses (from drawer){{ number_format($context['cash_expenses_from_drawer'] ?? 0, 2) }}
Cash purchases (from drawer){{ number_format($context['cash_purchases_from_drawer'] ?? 0, 2) }}
Void total{{ number_format($context['void_total'] ?? 0, 2) }}
Close & Compute Off-POS
@csrf
Defaults to the system POS total; adjust if needed.
@if(array_key_exists('offpos_sales', $context))
Expected cash (without Off-POS) {{ number_format($context['expected_cash_without_offpos'] ?? 0, 2) }}
Off-POS sales (computed) {{ number_format($context['offpos_sales'] ?? 0, 2) }}
Off-POS is the difference after subtracting system cash sales and adding back drawer-paid expenses/purchases.
@endif
Posting creates an Accounting DailySales entry: Cash = (system cash + Off-POS), POS = manual, Credit = system credit.