{{-- resources/views/cashing-up/index.blade.php --}} @extends('layouts.app') @section('title', 'Cashing Up') @section('page_title', 'Cashing Up') @section('page_subtitle', 'Shift management and cash reconciliation') @section('content') {{-- Open Shift Banner --}} @if($openShift)
Shift Open — {{ $openShift->reference }}
Opened by {{ $openShift->openedBy?->name }} at {{ $openShift->opened_at->format('H:i') }} ({{ $openShift->opened_at->diffForHumans() }}) · Opening float: {{ $openShift->currency }} {{ number_format($openShift->opening_float, 2) }}
@else {{-- Open New Shift --}}
Open New Shift
@csrf
{{ tenant()->baseCurrency?->code ?? 'USD' }} @error('opening_float')
{{ $message }}
@enderror
@endif {{-- Stats --}}
{{ $stats['total_shifts'] }}
Total Shifts
{{ $stats['open_shifts'] }}
Open Shifts
${{ number_format($stats['total_cash_today'], 2) }}
Cash Closed Today
{{-- Filters + Table --}}
@if(request()->hasAny(['status','date_from','date_to'])) Clear @endif
Shift History {{ $shifts->total() }} shifts
@if($shifts->isEmpty())

No shifts yet

Open a shift above to start cashing up

@else
@foreach($shifts as $shift) @endforeach
Reference Opened By Opened Closed Opening Float Cash In Expected Closing Float Variance Status
{{ $shift->reference }} {{ $shift->openedBy?->name ?? '—' }} {{ $shift->opened_at->format('d M Y H:i') }} {{ $shift->closed_at?->format('d M Y H:i') ?? '—' }} {{ $shift->currency }} {{ number_format($shift->opening_float, 2) }} @if($shift->total_cash_in) {{ $shift->currency }} {{ number_format($shift->total_cash_in, 2) }} @else — @endif @if($shift->expected_float !== null) {{ $shift->currency }} {{ number_format($shift->expected_float, 2) }} @else — @endif @if($shift->closing_float !== null) {{ $shift->currency }} {{ number_format($shift->closing_float, 2) }} @else — @endif @if($shift->variance !== null) {{ $shift->variance >= 0 ? '+' : '' }}{{ number_format($shift->variance, 2) }} @else @endif {{ ucfirst($shift->status) }} View →
@if($shifts->hasPages())
{{ $shifts->links() }}
@endif @endif
@endsection