@extends('layouts.app') @section('content')

Refund

@if($activeSection === 'owner') @endif
{{ $infoMessage }}
@if($records->isNotEmpty())
@foreach($records as $record) @php $serviceName = $record->sharedSubscription?->service?->name ?? 'Service'; $planName = $record->sharedSubscription?->servicePlan?->name ?? 'Plan'; $counterpartyName = $activeSection === 'owner' ? ($record->user?->name ?? 'Co-subscriber') : ($record->sharedSubscription?->owner?->name ?? 'Owner'); $statusLabel = $record->status === 'cancel_requested' ? 'Processing' : 'Approved'; $statusClass = $record->status === 'cancel_requested' ? 'processing' : 'completed'; @endphp
{{ $serviceName }} - {{ $planName }} {{ $activeSection === 'owner' ? 'Requested by' : 'Owner' }}: {{ $counterpartyName }} Requested: {{ optional($record->cancel_requested_at ?? $record->updated_at)->format('d M Y, h:i A') }}
${{ number_format((float) $record->subscription_amount, 2) }}
{{ $statusLabel }}
@endforeach
@else

No refund record

@endif
@endsection