← Sales

{{ $sale->reference }}

{{ $sale->created_at->format('M j, Y g:i A') }}

@php $badge = match ($sale->status) { 'paid' => 'bg-green-50 text-green-700', 'cancelled' => 'bg-slate-100 text-slate-500', 'failed' => 'bg-red-50 text-red-600', default => 'bg-amber-50 text-amber-700', }; @endphp {{ $sale->status }}
Payment
{{ $sale->payment_method }}
Total
{{ pos_money($sale->total_minor, $sale->currency) }}
@if ($sale->customer_name)
Customer
{{ $sale->customer_name }}
@endif
@foreach ($sale->lines as $line) @endforeach
ItemQtyAmount
{{ $line->name }} {{ $line->quantity }} {{ pos_money($line->line_total_minor, $sale->currency) }}
@if ($sale->location?->receipt_footer)

{{ $sale->location->receipt_footer }}

@endif @if ($sale->isPaid() && !empty($invoiceUrl)) @endif @unless ($sale->isPaid())
@if ($sale->status === 'pending')
@csrf
@endif
@csrf @method('DELETE')
@endunless