extend('layout/management_layout') ?> section('content') ?>

Refunds

getFlashdata('success')): ?>
getFlashdata('success') ?>
getFlashdata('error')): ?>
getFlashdata('error') ?>
getFlashdata('info')): ?>
getFlashdata('info') ?>
No eligible parents for refund calculation.
'Pending', 'approved' => 'Approved', 'rejected' => 'Rejected', 'partial' => 'Partial', 'paid' => 'Paid', ][$statusKey] ?? ($statusRaw !== '' ? $statusRaw : 'Pending'); $statusClass = [ 'pending' => 'warning text-dark', 'approved' => 'primary', 'rejected' => 'danger', 'partial' => 'info text-dark', 'paid' => 'success', ][$statusKey] ?? 'secondary'; $refundAmount = (float)($r['refund_amount'] ?? 0); $paidAmount = (float)($r['refund_paid_amount'] ?? 0); $remainingAmount = max(0, $refundAmount - $paidAmount); $hasSource = !empty($r['source_type']) && !empty($r['source_id']); $canApprove = $statusKey === 'pending' && $refundAmount > 0 && $hasSource; $canReject = $statusKey === 'pending'; $canRecord = in_array($statusKey, ['approved', 'partial'], true) && $remainingAmount > 0; ?>
Parent Invoice # Requested Status Refund Details Actions
$
by
Check #:
Check File: View -
Paid: $
endSection() ?> section('scripts') ?> endSection() ?>