@extends('layouts.layoutapp') @section('content')
Total Paid
Total Refund
Total Loss
Net Paid
| S.No | Payment Date | Purchase Code | Purchase Date | Supplier Name | Branch Name | Purchase Amount | Payment Mode | Entry Type | Paid Amount | Purchase Balance |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $payment['payment_date'] ? \Carbon\Carbon::parse($payment['payment_date'])->format('d-m-Y') : '-' }} | {{ $payment['purchase_code'] }} | {{ $payment['purchase_date'] ? \Carbon\Carbon::parse($payment['purchase_date'])->format('d-m-Y') : '-' }} | {{ $payment['supplier_name'] }} | {{ $payment['branch_name'] }} | ₹ {{ number_format($payment['purchase_amount'], 2) }} | {{ strtoupper($payment['payment_mode'] ?? '-') }} | @php $type = $payment['entry_type']; $badge = match ($type) { 'refund' => 'bg-gradient-warning', 'loss' => 'bg-gradient-danger', default => 'bg-gradient-success', }; $label = match ($type) { 'purchase_payment' => 'Purchase Payment', 'paid' => 'Paid', 'refund' => 'Refund', 'loss' => 'Loss', default => ucfirst((string) $type), }; @endphp {{ $label }} | ₹ {{ number_format($payment['paid_amount'], 2) }} | ₹ {{ number_format($payment['purchase_balance'], 2) }} |
| No purchase payments found for the selected filters. | ||||||||||