@extends('layouts.admin') @section('title', 'Refunds') @section('subtitle', 'Manage refund requests') @section('content') {{-- Filters --}}
{{-- Refunds Table --}}
@forelse($refunds as $refund) @empty @endforelse
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')
@csrf
@csrf
@else {{ $refund->approvedBy->name ?? '' }} @ {{ $refund->approved_at?->format('M d') }} @endif

â†Šī¸

No refunds found

@if($refunds->hasPages())
{{ $refunds->links() }}
@endif
@endsection