@extends('layouts.app') @section('title', 'Close Cash Shift #' . $cashShift->id) @section('content') @php $expected = $cashShift->expectedCash(); $threshold = \App\Models\CashShift::VARIANCE_THRESHOLD; @endphp
← Back to Shift #{{ $cashShift->id }}

Close Shift #{{ $cashShift->id }}

Count the physical cash in the till and enter the total below. The variance vs. expected will compute live.

@if($errors->any())
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
@csrf {{-- Reconciliation table --}}
Opening float {{ number_format($cashShift->opening_float, 2) }}
+ Cash collected {{ number_format($cashShift->cashCollected(), 2) }}
Expected in till {{ number_format($expected, 2) }}
Counted (physical) *
Variance

Threshold rule:

Variance up to ±KES {{ number_format($threshold, 2) }} auto-accepts and closes the shift immediately. Beyond that, the shift goes to Hospital Admin for approval before final close.

{{-- Variance notes --}}
Cancel
@push('scripts') @endpush @endsection