@extends('layouts.app') @section('title', $supplier->name) @section('content')
| # | Date | Items | Total | Paid | |
|---|---|---|---|---|---|
| {{ $purchase->id }} | {{ $purchase->date->format('d M Y') }} | @foreach($purchase->items as $item) {{ $item->product->category->name ?? '' }} {{ $item->product->weight->label ?? '' }} ({{ $item->bags }} bags){{ !$loop->last ? ', ' : '' }} @endforeach | Rs. {{ number_format($purchase->total_amount, 2) }} | Rs. {{ number_format($purchase->paid_amount, 2) }} | View |
| No purchases yet | |||||
| # | Date | Amount | Notes |
|---|---|---|---|
| {{ $payment->id }} | {{ $payment->date->format('d M Y') }} | Rs. {{ number_format($payment->amount, 2) }} | {{ $payment->notes ?: '-' }} |
| No payments yet | |||