@extends('layouts.app') @section('title', 'Session #' . $posSession->id) @section('content')
{{ $posSession->warehouse->name ?? 'Unknown Location' }}
Cashier
{{ $posSession->user->name ?? '-' }}
Opened At
{{ $posSession->opened_at ? $posSession->opened_at->format('d M Y, H:i') : $posSession->created_at->format('d M Y, H:i') }}
Closed At
{{ $posSession->closed_at ? $posSession->closed_at->format('d M Y, H:i') : '-' }}
Duration
@if($posSession->closed_at) {{ $posSession->opened_at ? $posSession->opened_at->diffForHumans($posSession->closed_at, true) : '-' }} @elseif($posSession->opened_at) {{ $posSession->opened_at->diffForHumans(null, true) }} (ongoing) @else - @endif
Total Sales
RM {{ number_format($stats['total_sales'], 2) }}
Transactions
{{ $stats['transaction_count'] }}
Cash Sales
RM {{ number_format($stats['cash_sales'], 2) }}
Card/E-Wallet
RM {{ number_format($stats['card_sales'] + $stats['ewallet_sales'] + $stats['transfer_sales'], 2) }}
| Receipt | Time | Customer | Payment | Total | Actions |
|---|---|---|---|---|---|
| {{ $sale->receipt_number }} @if($sale->status === 'voided') Voided @endif | {{ $sale->created_at->format('H:i:s') }} | {{ $sale->customer_name ?? 'Walk-in' }} | {{ ucfirst($sale->payment_method) }} | RM {{ number_format($sale->total, 2) }} | View |
{{ $posSession->notes }}