{{-- ICTHospital - end-of-shift cash close. Copyright (c) DEVtrust Part of ICTHospital Licensed under the GNU General Public License v3.0. --}} @extends('layouts.master') @section('content') @include('app.partials._alerts')

Sale close: {{ $userNames[$userId] ?? 'me' }}

@if ($users->isNotEmpty())
@endif
@foreach (\App\Support\PaymentModes::labels() as $k => $label)
{{ $label }}
{{ number_format($totals[$k], 2) }}
@endforeach
Total collected
{{ number_format($totals['total'], 2) }}
@if ($totals['write_off'] > 0)

Write-offs this shift: {{ number_format($totals['write_off'], 2) }} (not money, not in the totals).

@endif

Current sale {{ $totals['count'] }} payment(s) since the last close

@forelse ($payments as $p) @empty @endforelse
TimeInvoicePatientModeReferenceAmount
{{ \Illuminate\Support\Str::of($p->paid_at)->substr(0, 16) }} #{{ $p->payment_id }} {{ optional($p->invoice)->patient_name }} {{ $p->method ?: 'Cash' }} {{ $p->reference }} {{ number_format((float) $p->amount, 2) }}
No payments since the last close.
@if ($payments->isNotEmpty())
{{ csrf_field() }}

Closing locks these payments into the shift. Any difference between the counted cash and the cash taken is recorded on the slip.

@endif

Sale history

@forelse ($history as $h) @empty @endforelse
ClosedCashierPaymentsCashTotalCountedDifference
{{ \Illuminate\Support\Str::of($h->closed_at)->substr(0, 16) }} {{ $userNames[$h->user_id] ?? $h->user_id }} {{ $h->payments_count }} {{ number_format((float) $h->cash, 2) }} {{ number_format((float) $h->total, 2) }} {{ $h->counted_cash !== null ? number_format((float) $h->counted_cash, 2) : '-' }} {{ $h->difference !== null ? number_format((float) $h->difference, 2) : '-' }} Slip
No closed shifts yet.
@stop