@extends('layouts.admin') @section('title', __('Manual Payment')) @section('page-title', __('Manual Payment')) @section('content') @php $proofUrl = $manualPayment->proof_path ? asset('storage/' . ltrim($manualPayment->proof_path, '/')) : null; $badge = match ($manualPayment->status) { 'submitted' => 'bg-yellow-100 text-yellow-800', 'approved' => 'bg-green-100 text-green-800', 'rejected' => 'bg-red-100 text-red-800', default => 'bg-gray-100 text-gray-800', }; @endphp

#{{ $manualPayment->id }}

{{ __('Manual payment details') }}

{{ __('Back') }}
{{ __('Customer') }}
{{ $manualPayment->customer?->full_name ?? '—' }} ({{ $manualPayment->customer?->email ?? '—' }})
{{ __('Plan') }}
{{ $manualPayment->subscription?->plan_name ?? '—' }}
{{ __('Amount') }}
{{ strtoupper((string) ($manualPayment->currency ?? '')) }} {{ number_format((float) $manualPayment->amount, 2) }}
{{ __('Status') }}
{{ $manualPayment->status ?: '—' }}
{{ __('Transfer reference') }}
{{ $manualPayment->transfer_reference ?: '—' }}
{{ __('Submitted') }}
{{ $manualPayment->submitted_at?->format('M d, Y H:i') ?? '—' }}
{{ __('Payer notes') }}
{{ $manualPayment->payer_notes ?: '—' }}
{{ __('Proof') }}
@if($proofUrl) {{ __('Open proof image') }} @else — @endif
{{ __('Admin notes') }}
{{ $manualPayment->admin_notes ?: '—' }}
@if(in_array($manualPayment->status, ['submitted', 'initiated'], true))
@csrf
{{ __('Approve & Activate') }}
@csrf
{{ __('Reject') }}
@endif
@endsection