@extends('layouts.app') @section('title', 'Sale: '.$sale->invoice_no) @section('breadcrumb')
Customer: {{ $sale->customer?->name ?? 'Walk-in Customer' }} | Date: {{ $sale->sale_date->format('d M Y') }} | By: {{ $sale->creator?->name }}
| # | Product / Variant | Qty | Unit Price | Discount | Total | Profit | Warranty |
|---|---|---|---|---|---|---|---|
| {{ $i+1 }} |
{{ $item->productVariant->product->name }}
{{ $item->productVariant->variant_name }}
@if($item->serialNumbers->count())
@foreach($item->serialNumbers as $sn)
{{ $sn->serial_no }}
@endforeach
@endif
|
{{ $item->qty }} | ৳{{ number_format($item->unit_price, 2) }} | {{ $item->discount > 0 ? '৳'.number_format($item->discount, 2) : '—' }} | ৳{{ number_format($item->total_price, 2) }} | ৳{{ number_format($item->profit, 2) }} | {{ $item->warranty_months > 0 ? $item->warranty_months.'m' : '—' }} |
| Subtotal: | ৳{{ number_format($sale->subtotal, 2) }} | ৳{{ number_format($sale->items->sum('profit'), 2) }} | |||||
| Discount: | -৳{{ number_format($sale->discount, 2) }} | ||||||
| VAT: | +৳{{ number_format($sale->vat, 2) }} | ||||||
| Grand Total: | ৳{{ number_format($sale->total_amount, 2) }} | ||||||
No payments
| Date | Amount | Method | Account |
|---|---|---|---|
| {{ $pmt->payment_date->format('d M Y') }} | ৳{{ number_format($pmt->amount, 2) }} | {{ ucfirst(str_replace('_',' ',$pmt->payment_method)) }} | {{ $pmt->account->name }} |
| Payment Method | {{ ucfirst(str_replace('_',' ',$sale->payment_method)) }} |
| Sale Type | {{ ucfirst($sale->sale_type) }} |
| Change Given | ৳{{ number_format($sale->change_amount, 2) }} |
| Notes | {{ $sale->notes }} |