@extends('layouts.app') @section('title', 'Point of Sale') @section('nav_pos', 'bg-teal-50 text-teal-700 font-semibold') @section('page_title', 'Point of Sale') @section('page_subtitle', 'Process charges and sales') @section('content') @if(session('success'))

{{ session('success') }}

@endif {{-- Header actions --}}
New Sale Manage Products
{{-- Today's Stats --}}

Today's Sales

₱{{ number_format($stats['today_total'], 0) }}

Transactions Today

{{ $stats['today_count'] }}

Charged to Room

{{ $stats['today_room_charge'] }}

Direct Sales

{{ $stats['today_direct'] }}

{{-- Recent Transactions --}}

Recent Transactions

Last 30

@if($recentTx->isEmpty())

No transactions yet. Process the first sale with New Sale.

@else @foreach($recentTx as $tx) @endforeach
Date / # Guest / Room Items Settlement Total

#{{ $tx->id }}

{{ $tx->transaction_date->format('M j, Y') }}

@if($tx->reservation)

{{ $tx->reservation->guest_name }}

Room {{ $tx->reservation->room_no }}

@else

Walk-in

@endif

{{ $tx->items->count() }} item{{ $tx->items->count() !== 1 ? 's' : '' }}

{{ $tx->items->pluck('description')->take(2)->implode(', ') }}{{ $tx->items->count() > 2 ? '…' : '' }}

@if($tx->payment_method === null) Charged to Room @else {{ $tx->payment_method }} @endif ₱{{ number_format($tx->total, 0) }} View →
@endif
@endsection