{{-- resources/views/reports/cash-up.blade.php --}} @extends('layouts.app') @section('title', 'Cash Up Report') @section('page_title', 'Cash Up Report') @section('page_subtitle', $from->format('d M Y') . ' — ' . $to->format('d M Y')) @section('content') @include('reports.partials.nav') @include('reports.partials.filters', ['route' => 'reports.cash-up'])
{{ $total_shifts }}
Total Shifts
{{ $closed_shifts }}
Closed Shifts
${{ number_format($total_cash, 2) }}
Total Cash
${{ number_format(abs($total_variance), 2) }}
Total Variance @if($total_variance < 0) (short) @elseif($total_variance > 0) (over) @endif
Shift History
@if($shifts->isEmpty())

No shifts in this period

@else
@foreach($shifts as $shift) @php $variance = $shift->closing_float - ($shift->expected_float ?? 0); @endphp @endforeach
Shift Opened By Opened Closed Opening Float Expected Closing Float Variance Status
{{ $shift->reference ?? 'SHF-' . $shift->id }} {{ $shift->openedBy?->name ?? '—' }} {{ $shift->opened_at?->format('d M H:i') }} {{ $shift->closed_at?->format('d M H:i') ?? '—' }} ${{ number_format($shift->opening_float, 2) }} ${{ number_format($shift->expected_float ?? 0, 2) }} ${{ number_format($shift->closing_float ?? 0, 2) }} @if($shift->status === 'closed') {{ $variance >= 0 ? '+' : '' }}${{ number_format($variance, 2) }} @else — @endif {{ ucfirst($shift->status) }}
@endif
@endsection