@extends('layouts.admin') @section('title', __('Review payment')) @section('content') ← {{ __('Back to queue') }}

{{ __('Payment from :clinic', ['clinic' => $payment->tenant->name]) }}

{{ __('Clinic') }}{{ $payment->tenant->name }} ({{ $payment->tenant->slug }})
{{ __('Gateway') }}{{ $payment->gateway->label() }}
{{ __('Amount') }}{{ $payment->amountFormatted() }}
{{ __('Period') }}{{ $payment->period_months }} {{ __('month(s)') }}
{{ __('Reference') }}{{ $payment->proof_reference }}
{{ __('Plan') }}{{ $payment->plan->name }}
{{ __('Status') }}{{ $payment->status->label() }}
@if($payment->proof_path)

{{ __('Payment proof') }}

@if(\Illuminate\Support\Str::endsWith($payment->proof_path, '.pdf')) 📄 {{ __('Open PDF proof') }} @else proof @endif
@endif
@if($payment->status === \App\Enums\PaymentProofStatus::Pending || $payment->status === \App\Enums\PaymentProofStatus::InfoRequested)

{{ __('Decision') }}

{{ __('Approving extends the clinic’s paid period and reactivates access immediately.') }}

@csrf @error('note')
{{ $message }}
@enderror
@endif {{-- Audit trail --}}

🕘 {{ __('Audit trail') }}

@forelse($payment->reviews as $r)
{{ __(ucfirst(str_replace('_', ' ', $r->action))) }} {{ $r->created_at->format('d M Y · H:i') }}
{{ $r->reviewer?->name ?? __('Clinic') }} @if($r->from_status) · {{ $r->from_status }} → {{ $r->to_status }} @endif @if($r->ip) · {{ $r->ip }} @endif
@if($r->note)
{{ $r->note }}
@endif
@empty

{{ __('No audit entries.') }}

@endforelse
@endsection