@extends('vendor.layouts.app') @section('title', 'Refund Details') @section('page-title', 'Refund Details') @push('styles') @endpush @section('content')

Refund Request #{{ $refund->refund_id }}

Requested on {{ $refund->created_at->format('d M, Y h:i A') }}

Back to List
@if($refund->status == 'pending')
Request Pending
This refund request is currently under review.
@elseif($refund->status == 'approved')
Request Approved
The refund has been approved and is processing.
@elseif($refund->status == 'processed')
Refund Completed
The refund amount has been successfully processed.
@elseif($refund->status == 'rejected')
Request Rejected
This refund request was rejected by admin.
@endif
Refund Information
Refund Amount ৳{{ number_format($refund->amount, 2) }}
Shipping Refund ৳{{ number_format($refund->shipping_charge, 2) }}
Total Refund ৳{{ number_format($refund->amount + $refund->shipping_charge, 2) }}
Refund Method {{ ucfirst(str_replace('_', ' ', $refund->refund_method ?? 'Unknown')) }}
@if($refund->refund_account)
Account No {{ $refund->refund_account }}
@endif @if($refund->transaction_id)
Transaction ID {{ $refund->transaction_id }}
@endif
Customer Reason
{{ $refund->reason ?? 'No reason provided.' }}
Order Details
View Order
Order Invoice: #{{ $refund->order->invoice_id }}
Order Date: {{ $refund->order->created_at->format('d M, Y') }}
@foreach($refund->order->orderdetails as $item) @endforeach
Product Qty Unit Price Total
{{ $item->product_name }}
@if($item->color || $item->size)
{{ $item->color ?? '' }} {{ $item->size ? '| '.$item->size : '' }}
@endif
{{ $item->qty }} ৳{{ number_format($item->sale_price, 2) }} ৳{{ number_format($item->sale_price * $item->qty, 2) }}
Customer Profile
{{ strtoupper(substr($refund->customer->name ?? 'G', 0, 1)) }}
{{ $refund->customer->name ?? 'Guest User' }}
Verified Customer
Phone {{ $refund->customer->phone ?? 'N/A' }}
Email {{ $refund->customer->email ?? 'N/A' }}
Location {{ $refund->customer->district ?? 'N/A' }}
@if($refund->admin_note)
Admin Note

{{ $refund->admin_note }}

@endif
@endsection