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

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

Requested: {{ $refund->created_at->format('d M, Y h:i A') }}
Current Status @if($refund->status == 'pending') Pending Approval @elseif($refund->status == 'approved') Approved & Waiting Payment @elseif($refund->status == 'rejected') Request Rejected @elseif($refund->status == 'processed') Successfully Processed @endif
Total Refund Amount
৳{{ number_format($refund->amount + $refund->shipping_charge, 2) }}
@if($refund->shipping_charge > 0) (Includes Shipping: ৳{{ number_format($refund->shipping_charge, 2) }}) @endif
@if($refund->processed_at)
Processed on: {{ $refund->processed_at->format('d M, Y h:i A') }}
@endif
Reason for Return

{{ $refund->reason }}

Order Details
View Invoice
Invoice No #{{ $refund->order->invoice_id }}
Order Date {{ $refund->order->created_at->format('d M, Y') }}
Grand Total ৳{{ number_format($refund->order->amount + $refund->order->shipping_charge, 2) }}
@foreach($refund->order->orderdetails as $item) @endforeach
Product Name Qty Unit Price Total
{{ $item->product_name }} {{ $item->qty }} ৳{{ number_format($item->sale_price, 2) }} ৳{{ number_format($item->sale_price * $item->qty, 2) }}
@if($refund->admin_note)
Admin Note

{{ $refund->admin_note }}

@if($refund->processedBy) — Processed by: {{ $refund->processedBy->name }} @endif
@endif
Available Actions
@if($refund->status == 'pending') @elseif($refund->status == 'approved')
Request approved. Ready for payment.
@else @endif
Payment Preferences
Method
@if($refund->refund_method == 'original_payment') Original Payment @else {{ $refund->refund_method }} @endif
Account Number {{ $refund->refund_account }}
@if($refund->refund_account_name)
Account Holder {{ $refund->refund_account_name }}
@endif @if($refund->transaction_id)
Transaction ID {{ $refund->transaction_id }}
@endif
{{ substr($refund->customer->name ?? 'G', 0, 1) }}
{{ $refund->customer->name ?? 'Guest User' }}

{{ $refund->customer->phone ?? 'No Phone' }}

{{ $refund->customer->email ?? 'No Email' }}
{{ $refund->customer->address ?? 'N/A' }}, {{ $refund->customer->district ?? '' }}
{{-- MODALS SECTION --}} @endsection