@extends('layouts.app') @section('title', 'POS Sessions') @section('content')
@if($activeSessions > 0)
{{ $activeSessions }} active session(s) currently open
@endif

POS Sessions

Cashier shift sessions and cash management

@if($warehouses->count() > 0)
@endif
Clear
@if($sessions->count() > 0) @foreach($sessions as $session) @endforeach
Session Location Cashier Opened Closed Opening Cash Closing Cash Status Actions
#{{ $session->id }} {{ $session->warehouse->name ?? '-' }} {{ $session->user->name ?? '-' }} {{ $session->opened_at ? $session->opened_at->format('d M Y, H:i') : $session->created_at->format('d M Y, H:i') }} {{ $session->closed_at ? $session->closed_at->format('d M Y, H:i') : '-' }} RM {{ number_format($session->opening_cash ?? 0, 2) }} {{ $session->closing_cash !== null ? 'RM ' . number_format($session->closing_cash, 2) : '-' }} @if($session->status === 'open') Open @else Closed @endif View
{{ $sessions->links() }}
@else

No sessions yet

Sessions will appear here when cashiers open shifts at POS outlets.

@endif
@endsection