@extends('layouts.app') @section('title', 'Payments & Receipts') @section('page_title', 'Payments & Receipts Ledger') @section('content')
| Ref # / Date | Party Name | Type | Payment Mode | Linked Invoice / Bill | Transaction Ref # | Amount |
|---|---|---|---|---|---|---|
|
{{ $p->payment_number }}
{{ $p->payment_date->format('d M Y') }}
|
{{ $p->party ? ($p->party->business_name ?? $p->party->name) : 'N/A' }} | @if($p->type == 'receipt') Receipt (Customer) @else Payment (Supplier) @endif | {{ str_replace('_', ' ', $p->payment_mode) }} | @if($p->invoice) Sales Inv #{{ $p->invoice->invoice_number }} @elseif($p->purchase) Purchase Bill #{{ $p->purchase->purchase_number }} @else Account Advance @endif | {{ $p->reference_number ?: '-' }} | {{ $p->type == 'receipt' ? '+' : '-' }}₹{{ number_format($p->amount, 2) }} |
| No payment transactions recorded yet. | ||||||