@extends('layouts.app') @section('title', 'Receipt: ' . $posSale->receipt_number) @section('content')
Back to POS Sales

{{ $posSale->receipt_number }}

{{ $posSale->created_at->format('d M Y, H:i:s') }}

@if($posSale->status === 'voided') Voided @else Completed @endif

Items

@foreach($posSale->items as $item) @endforeach
Product Qty Price Total

{{ $item->product_name }}

{{ $item->sku }}

{{ $item->quantity }} RM {{ number_format($item->unit_price, 2) }} RM {{ number_format($item->line_total, 2) }}
Subtotal RM {{ number_format($posSale->subtotal, 2) }}
@if($posSale->discount > 0)
Discount @if($posSale->discount_label) ({{ $posSale->discount_label }}) @endif - RM {{ number_format($posSale->discount, 2) }}
@endif
Total RM {{ number_format($posSale->total, 2) }}
@if($posSale->payment_method === 'cash' && $posSale->cash_received)
Cash Received RM {{ number_format($posSale->cash_received, 2) }}
Change RM {{ number_format($posSale->cash_change, 2) }}
@endif

Transaction Info

Location

{{ $posSale->warehouse->name ?? '-' }}

Cashier

{{ $posSale->cashier->name ?? '-' }}

Payment Method

{{ ucfirst(str_replace('_', ' ', $posSale->payment_method)) }}

@if($posSale->session)

Session

#{{ $posSale->session->id }}

@endif

Customer

@if($posSale->customer)

{{ $posSale->customer->name }}

{{ $posSale->customer->phone }}

View Customer
@elseif($posSale->customer_name)

{{ $posSale->customer_name }}

@if($posSale->customer_phone)

{{ $posSale->customer_phone }}

@endif
@else

Walk-in customer

@endif
@if($posSale->notes)

Notes

{{ $posSale->notes }}

@endif
@endsection