@extends('layouts.app') @section('title', 'Purchase: '.$purchase->invoice_no) @section('breadcrumb')
Supplier: {{ $purchase->supplier->name }} | Date: {{ $purchase->purchase_date->format('d M Y') }}
| # | Product / Variant | Qty | Unit Cost | Discount | Total | Warranty |
|---|---|---|---|---|---|---|
| {{ $i + 1 }} |
{{ $item->productVariant->product->name }}
{{ $item->productVariant->variant_name }}
{{ $item->productVariant->sku }}
@if($item->serialNumbers->count())
@foreach($item->serialNumbers as $sn)
{{ $sn->serial_no }}
@endforeach
@endif
|
{{ $item->qty }} | ৳{{ number_format($item->unit_cost, 2) }} | {{ $item->discount > 0 ? '৳'.number_format($item->discount, 2) : '—' }} | ৳{{ number_format($item->total_cost, 2) }} | {{ $item->warranty_months > 0 ? $item->warranty_months.'m' : '—' }} |
| Subtotal: | ৳{{ number_format($purchase->subtotal, 2) }} | |||||
| Discount: | -৳{{ number_format($purchase->discount, 2) }} | |||||
| Tax: | +৳{{ number_format($purchase->tax, 2) }} | |||||
| Grand Total: | ৳{{ number_format($purchase->total_amount, 2) }} | |||||
No payments yet
| Date | Amount | Method | Account | Reference |
|---|---|---|---|---|
| {{ $pmt->payment_date->format('d M Y') }} | ৳{{ number_format($pmt->amount, 2) }} | {{ ucfirst(str_replace('_',' ',$pmt->payment_method)) }} | {{ $pmt->account->name }} | {{ $pmt->reference ?? '—' }} |