@extends('admin.layouts.app') @section('title', 'Sale Details') @section('page_title', 'Sale Details') @section('content')
| Invoice No: | {{ $sale->invoice_no }} |
|---|---|
| Customer: | {{ $sale->customer->name ?? 'N/A' }} |
| Branch: | {{ $sale->branch->name ?? '-' }} |
| Date: | {{ date('d-m-Y', strtotime($sale->date)) }} |
| Status: | @if($sale->status == 'completed') Completed @elseif($sale->status == 'pending') Pending @else {{ ucfirst($sale->status) }} @endif |
| Total Amount: | {{ number_format($sale->total, 2) }} |
|---|---|
| Payment Method: | {{ $paymentMethod }} |
| Paid Amount: | {{ number_format($sale->paid, 2) }} |
| Due Amount: | {{ number_format($sale->due, 2) }} |
| Sl | Shipment Number | Product | Unit | Quantity | Rate | Amount |
|---|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ $item->shipment_number ?? 'N/A' }} | {{ $item->product->name ?? 'N/A' }} | {{ $item->product->unit->short_name ?? 'N/A' }} | {{ $item->quantity }} | {{ number_format($item->rate, 2) }} | {{ number_format($item->quantity * $item->rate, 2) }} |
| Total: | {{ number_format($sale->total, 2) }} | |||||
{{ $sale->notes }}
@endif