@extends('layouts.app') @section('title', 'Transaction #' . $tx->id) @section('nav_pos', 'bg-teal-50 text-teal-700 font-semibold') @section('page_title', 'Transaction #' . $tx->id) @section('page_subtitle', $tx->transaction_date->format('F j, Y')) @section('content')
Back to POS New Sale
{{-- Receipt card --}}
{{-- Header band --}} @if($tx->payment_method === null)
Charged to Room @if($tx->reservation) Room {{ $tx->reservation->room_no }} — {{ $tx->reservation->guest_name }} @endif
@else
{{ $tx->payment_method }} @if($tx->reference) Ref: {{ $tx->reference }} @endif
@endif {{-- Meta grid --}}

Transaction #

#{{ $tx->id }}

Date

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

Cashier

{{ $tx->cashier }}

{{-- Items --}} @foreach($tx->items as $item) @endforeach
Item Qty Unit Price Amount
{{ $item->description }} @php $catLabel = ['food_beverage'=>'Food & Bev','laundry'=>'Laundry','telephone'=>'Telephone','minibar'=>'Minibar','damage'=>'Damage','other'=>'Misc']; @endphp {{ $catLabel[$item->category] ?? '' }} {{ $item->quantity }} ₱{{ number_format($item->unit_price, 0) }} ₱{{ number_format($item->lineTotal(), 0) }}
Total ₱{{ number_format($tx->total, 0) }}
{{-- Notes --}} @if($tx->notes)

Notes

{{ $tx->notes }}

@endif {{-- Folio link --}} @if($tx->reservation)

Charged to Room {{ $tx->reservation->room_no }} — {{ $tx->reservation->guest_name }}

@endif
@endsection