@extends('layouts.app') @section('title', 'Sales') @section('breadcrumb')
View and manage all sales transactions
| Invoice | Customer | Date | Type | Total | Paid | Due | Status | By | Actions |
|---|---|---|---|---|---|---|---|---|---|
| {{ $sale->invoice_no }} | {{ $sale->customer?->name ?? 'Walk-in' }} | {{ $sale->sale_date->format('d M Y') }} | {{ ucfirst($sale->sale_type) }} | ৳{{ number_format($sale->total_amount, 2) }} | ৳{{ number_format($sale->paid_amount, 2) }} | @if($sale->due_amount > 0) ৳{{ number_format($sale->due_amount, 2) }} @else@endif | @php $sc=['completed'=>'success','hold'=>'warning','returned'=>'danger','cancelled'=>'secondary','draft'=>'info']; @endphp {{ ucfirst($sale->status) }} | {{ $sale->creator?->name }} | |
| No sales found. | |||||||||