@extends('admin.layouts.app') @section('page-title', 'POS Sales') @section('body-class', 'inventory-preview') @push('styles') @endpush @section('content')
| Invoice | Date | Customer | Payment | Units | Total (BDT) | Action |
|---|---|---|---|---|---|---|
| POS{{ str_pad((string) $sale->id, 6, '0', STR_PAD_LEFT) }} | {{ $sale->created_at->timezone('Asia/Dhaka')->format('d M Y, h:i A') }} | {{ $sale->customer_name }}{{ $sale->customer_phone }} | {{ $sale->payment_method }}{{ $sale->is_cancelled ? 'Cancelled' : (($sale->returned_units ?? 0) >= $sale->units ? 'Returned' : (($sale->returned_units ?? 0) > 0 ? 'Partial return' : 'Paid')) }} | {{ $sale->units }} | {{ number_format($sale->total / 100, 2) }}@if($sale->refunded_total)Refunded: {{ number_format($sale->refunded_total / 100, 2) }}@endif | View invoice |
| No saved sales match this search. | ||||||