@extends('layout.app') @section('content')
Purchase ID: {{ $purchase->id }}
Supplier Name: {{ $purchase->supplier_name ?? 'N/A' }}
Member: {{ $purchase->member->name ?? 'N/A' }}
Date: {{ \Carbon\Carbon::parse($purchase->date)->format('d M, Y') }}
Description: {{ $purchase->description }}
Total Amount: ${{ number_format($purchase->total_amount, 2) }}
| # | Product Name | Quantity | Unit | Rate | Amount |
|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $item->product_name }} | {{ $item->quantity }} | {{ $item->unit }} | ${{ number_format($item->rate, 2) }} | ${{ number_format($item->amount, 2) }} |
No items found for this purchase.
@endif