@extends('layout.app') @section('content')
Back

Purchase Details

Purchase Information

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) }}

Items
@if($purchase->items->count()) @foreach($purchase->items as $index => $item) @endforeach
# 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) }}
@else

No items found for this purchase.

@endif
@endsection