@extends('layouts.app') @section('title', 'Cashier Shifts') @section('content')
Open your shift with opening cash. Sales totals and items are calculated automatically.
Shift #{{ $activeShift->id }} · opened {{ $activeShift->opened_at->format('d M, H:i') }} · {{ $summary['orders_count'] }} order(s)/tab(s)
Opening cash
{{ number_format($summary['opening_float'], 2) }}
Cash sales
{{ number_format($summary['cash_sales'], 2) }}
M-Pesa sales
{{ number_format($summary['mpesa_sales'], 2) }}
Credit sales
{{ number_format($summary['credit_sales'], 2) }}
Total sales
{{ number_format($summary['total_sales'], 2) }}
| Product | Quantity | Amount |
|---|---|---|
| {{ $name }} | {{ number_format($row['qty'], 2) }} | {{ number_format($row['total'], 2) }} |
| No products sold on this shift yet. | ||
| Total | {{ number_format(collect($summary['products'])->sum('qty'), 2) }} | {{ number_format(collect($summary['products'])->sum('total'), 2) }} |
| Cashier | Opened | Closed | Opening Cash | Status | |
|---|---|---|---|---|---|
| {{ $shift->cashier->name }} | {{ $shift->opened_at->format('d M, H:i') }} | {{ $shift->closed_at?->format('d M, H:i') ?? '—' }} | {{ number_format($shift->opening_float, 2) }} |
|
Print / PDF
@if ($shift->status === 'closed' && auth()->user()->can('shifts.approve'))
@endif
|
| No shifts recorded yet. | |||||