@extends('layouts.admin') @section('title', 'Refunds') @section('subtitle', 'Manage refund requests') @section('content') {{-- Filters --}}
| ID | Invoice | Type | Amount | Reason | Status | Requested By | Date | Actions |
|---|---|---|---|---|---|---|---|---|
| REF-{{ $refund->id }} | {{ $refund->invoice->invoice_number ?? 'N/A' }} | {{ ucfirst($refund->refund_type) }} | LKR {{ number_format($refund->refund_amount, 2) }} | {{ $refund->reason }} | @php $statusColors = [ 'pending' => 'bg-yellow-50 text-yellow-600', 'approved' => 'bg-green-50 text-green-600', 'rejected' => 'bg-red-50 text-red-600', ]; @endphp {{ ucfirst($refund->status) }} | {{ $refund->user->name ?? 'N/A' }} | {{ $refund->created_at->format('M d, H:i') }} |
@if($refund->status == 'pending')
|
|
âŠī¸ No refunds found |
||||||||