@extends('staff.layout') @section('content') @php $totalPrincipalVal = round( (float) ($goldTransfer->total_principal > 0 ? $goldTransfer->total_principal : $goldTransfer->per_gram ?? 0), ); $paidPrincipalVal = round((float) ($goldTransfer->paid_principal ?? 0)); $remainingPrincipalVal = round( (float) ($goldTransfer->remaining_principal > 0 ? $goldTransfer->remaining_principal : $totalPrincipalVal - $paidPrincipalVal), ); $outstandingInterestVal = round((float) ($totalInterest ?? 0)); @endphp
| Date & Time | Total Paid | Interest Paid | Principal Paid | Mode | Txn ID / Details | Remarks |
|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($history->payment_datetime)->format('d M Y, h:i A') }} | ₹ {{ number_format(round($history->total_payment_amount)) }} | ₹ {{ number_format(round($history->paid_interest)) }} | ₹ {{ number_format(round($history->paid_principal)) }} | {{ $history->payment_mode }} |
{{ $history->transaction_id ?? '-' }}
@if ($history->payment_mode === 'Bank Transfer')
{{ $history->receiver_bank_name }} ({{ $history->receiver_account_number }}) @elseif($history->payment_mode === 'UPI') {{ $history->receiver_upi_id }} @endif |
{{ $history->remarks ?? '-' }} |
| No payment history found. | ||||||