@extends('layouts.app') @section('title', 'Refunds') @section('content')

Refunds

{{ $refunds->total() }} refund request(s). Money only moves when an approved refund is processed.

+ Request a refund
@include('components.kpi', ['label' => 'Awaiting approval', 'value' => money($totals['pending']), 'variant' => $totals['pending'] ? 'warn' : '']) @include('components.kpi', ['label' => 'Approved, not processed', 'value' => money($totals['awaitingProcessing']), 'variant' => $totals['awaitingProcessing'] ? 'info' : '']) @include('components.kpi', ['label' => 'Processed', 'value' => money($totals['processed'])]) @include('components.kpi', ['label' => 'Requests', 'value' => (string) $totals['count']])
@if ($refunds->isEmpty()) @include('components.empty-state', [ 'icon' => '↩', 'title' => 'No refunds requested', 'message' => 'A refund is requested, approved, then processed — so a mistake can be rejected before any money moves.', ]) @else @foreach ($refunds as $refund) @endforeach
ReferenceCustomerOriginal payment AmountMethodReason Approved byStatus
{{ $refund->reference }} {{ $refund->customer?->display_name ?: '—' }} {{ $refund->payment?->reference ?: '—' }}
{{ money($refund->payment?->amount) }}
{{ money($refund->amount) }} {{ title_case_words($refund->method) }} {{ title_case_words($refund->reason) }} {{ $refund->approver?->name ?: '—' }} {{ title_case_words($refund->status) }} Open
@endif
@if ($refunds->hasPages())
{{ $refunds->links('partials.pagination') }}
@endif
@endsection