{{-- Quick-fix modal: record an expense (shortage), an invoice payment, or other cash-in (surplus). The created record syncs to the ledger, which folds back into the bucket's expected figure so the drawer balances. --}} @if ($showFixModal) {{-- z-[55]: above the attention dialog (z-50) it can be opened from, below the assistant (z-60). --}}

@if ($fixIsOpening) {{ $fixType === 'income' ? __('Record income (opening correction)') : __('Record expense (opening correction)') }} @else @switch($fixType) @case('expense') {{ __('Record expense') }} @break @case('payment') {{ __('Record invoice payment') }} @break @default {{ __('Record other cash-in') }} @endswitch @endif · {{ $fixBucket === 'cash' ? __('Cash') : __('EcoCash') }}

@if ($fixIsOpening)

{{ __('This adjusts the carried-over opening balance (dated to before today), so it won\'t affect today\'s takings.') }}

@endif {{-- Expense: optional category --}} @if ($fixType === 'expense')
@endif {{-- Payment: pick an open invoice --}} @if ($fixType === 'payment')
@error('fixInvoiceId')

{{ $message }}

@enderror @if ($openInvoices->isEmpty())

{{ __('No open invoices in this currency. Use “Other cash-in” instead.') }}

@endif
@endif {{-- Income: optional category --}} @if ($fixType === 'income')
@endif
@error('fixAmount')

{{ $message }}

@enderror
@if ($fixType !== 'payment')
@endif
@endif