@php $cur = $data['currency']; // Two questions, two answers: what the shift produced, and what is in the // box now. The drawer is what the books get settled against. // What came in is gross, before a cent of it goes back out: the cashier is // being asked what she took, and she cannot take a negative. The drawer is // the netted figure, opening plus everything that moved either way. $expectedTakings = round((float) ($data['inflow'] ?? 0), 2); $expectedDrawer = round((float) $data['opening'] + (float) $data['expected'], 2); // Literal class strings (Tailwind can't see interpolated names). $iconWrap = $accent === 'sky' ? 'bg-sky-50 text-sky-600' : 'bg-emerald-50 text-emerald-600'; @endphp {{-- One reconciliation bucket (Cash or EcoCash). Alpine computes both live differences: the takings one says what happened today, the drawer one is the money that has to be accounted for. Their gap is what was already missing (or already extra) when the day started. --}}
{{ $title }}
@if ($accounts->count() > 1) @else{{ $account->name }} · {{ $cur }}
@endif{{ $message }}
@enderror{{ $message }}
@enderror {{-- Breakdown: how the expected figure is built, plus the opening check. --}}{{ __('More went out than the account held. Check the amounts, or whether something was booked to the wrong account.') }}
@endif {{-- Opening-balance confirmation / correction (tucked in the breakdown). --}}·
{{-- The day is out but the box totals correctly. Nothing is missing from the account, so there is nothing to record against today: the money that is wrong is the balance carried in. --}}{{ __('The box totals correctly but the day does not, so the balance carried in was wrong by the same amount. Correct the opening balance above, or give a reason.') }}
@error($reasonModel){{ $message }}
@enderror{{ __('Money is missing, record what it was spent on, or give a reason.') }}
{{ __('Some of this was already there before today, open the expected figure above and correct the opening balance.') }}
@error($reasonModel){{ $message }}
@enderror{{ __('Extra cash on hand, record where it came from, or give a reason.') }}
{{ $message }}
@enderror{{ __('Otherwise it stays in this account.') }}
@error($sweepToModel){{ $message }}
@enderror @error($sweepAmountModel){{ $message }}
@enderror