@extends('layouts.restaurant') @section('content')
Cashier Accountability | {{ $branch->name }}

Shifts & Reconciliations

@if(!$activeShift) @else @endif
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($activeShift)
ACTIVE SHIFT #{{ $activeShift->id }} STARTED: {{ $activeShift->opened_at->format('d M Y, H:i') }}
CASHIER: {{ auth()->user()->name }}

All POS sales and station expenses are attached to this session.

Expected Physical Cash
TZS {{ number_format($activeShiftStats['expected_cash'], 2) }}
Float: {{ number_format($activeShift->opening_float, 0) }} Sales: +{{ number_format($activeShiftStats['cash_sales'], 0) }} Paid: -{{ number_format($activeShiftStats['cash_expenses'], 0) }}
Opening Float
TZS {{ number_format($activeShift->opening_float, 2) }}
+ Cash Sales
TZS {{ number_format($activeShiftStats['cash_sales'], 2) }}
- Petty Cash (Out)
TZS {{ number_format($activeShiftStats['cash_expenses'], 2) }}
Electronic Sales
TZS {{ number_format($activeShiftStats['card_sales'] + $activeShiftStats['mobile_sales'], 2) }}
@else

No Active Cashier Shift

Open a shift and register your starting cash float to begin taking orders.

@endif

Shift Audit Trail

@forelse($shiftHistory as $shift) @empty @endforelse
Shift # Cashier Opened/Closed Start Float Total Sales Expected Counted Variance Action
#{{ $shift->id }} @if($shift->status === 'open') OPEN @else CLOSED @endif {{ $shift->user->name ?? 'Staff' }}
{{ $shift->opened_at->format('d M y, H:i') }}
@if($shift->closed_at)
CL: {{ $shift->closed_at->format('H:i') }}
@endif
{{ number_format($shift->opening_float, 2) }} {{ number_format($shift->total_sales, 2) }} {{ $shift->expected_cash !== null ? number_format($shift->expected_cash, 2) : '-' }} {{ $shift->closing_cash_counted !== null ? number_format($shift->closing_cash_counted, 2) : '-' }} @if($shift->cash_difference !== null) @if(abs($shift->cash_difference) < 0.01) EXACT MATCH @elseif($shift->cash_difference > 0) +{{ number_format($shift->cash_difference, 2) }} @else -{{ number_format(abs($shift->cash_difference), 2) }} @endif @else - @endif Z-Report
No shift history recorded yet.
@if($shiftHistory->hasPages())
{{ $shiftHistory->links() }}
@endif
@if($activeShift) @endif @endsection