@extends('layouts.app') @section('content')
| Bill No | Date | Supplier | Items | Amount | Paid | Due | Status |
|---|---|---|---|---|---|---|---|
| {{ $purchase->bill_no }} | {{ $purchase->date->format('d-M-Y') }} | {{ $purchase->party->name ?? 'N/A' }} | {{ $purchase->items->count() }} | {{ number_format($purchase->total_amount, 2) }} | {{ number_format($purchase->paid_amount, 2) }} | {{ number_format($purchase->due_amount, 2) }} | @if($purchase->due_amount <= 0) Paid @elseif($purchase->paid_amount > 0) Partial @else Unpaid @endif |
| No purchases found | |||||||
| Total: | {{ number_format($summary['total_amount'], 2) }} | {{ number_format($summary['total_paid'], 2) }} | {{ number_format($summary['total_due'], 2) }} | ||||