@extends('backEnd.layouts.master') @section('title','Refund Management') @section('css') @endsection @section('content')

Refund Management

Manage and track all refund requests

@forelse($data as $key => $refund) @empty @endforelse
# Refund Info Customer Amount Method Status Date Action
{{ $loop->iteration }}
#{{ $refund->refund_id }}
INV-{{ $refund->order->invoice_id }}
{{ $refund->customer->name ?? 'Guest' }} {{ $refund->customer->phone ?? 'N/A' }}
৳{{ number_format($refund->amount + $refund->shipping_charge, 2) }}
@if($refund->shipping_charge > 0) (Incl. Shipping) @endif
@php $icons = [ 'bkash' => 'fe-smartphone', 'nagad' => 'fe-smartphone', 'bank' => 'fe-briefcase', 'manual' => 'fe-dollar-sign', 'original_payment' => 'fe-credit-card' ]; $icon = $icons[$refund->refund_method] ?? 'fe-help-circle'; @endphp
{{ str_replace('_', ' ', $refund->refund_method) }}
@if($refund->status == 'pending') Pending @elseif($refund->status == 'approved') Approved @elseif($refund->status == 'rejected') Rejected @elseif($refund->status == 'processed') Processed @endif {{ $refund->created_at->format('d M, Y') }}
No refund requests found!
@if ($data->hasPages())
    {{-- Previous --}} @if ($data->onFirstPage())
  • Prev
  • @else
  • @endif {{-- Numbers --}} @foreach(range(1, $data->lastPage()) as $i) @if($i >= $data->currentPage() - 2 && $i <= $data->currentPage() + 2) @if ($i == $data->currentPage())
  • {{ $i }}
  • @else
  • {{ $i }}
  • @endif @endif @endforeach {{-- Next --}} @if ($data->hasMorePages())
  • @else
  • Next
  • @endif
@endif
{{-- MODAL SECTION (MOVED OUTSIDE TABLE) --}} @foreach($data as $refund) @endforeach {{-- END MODAL SECTION --}} @endsection