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

Payment Detail #{{ $id }}

@if($payment->created_at) Created: {{ viso_date_format($payment->created_at) }} @endif
{{-- Payment info + services --}}

Payment Details

{{ ucwords(str_replace('_', ' ', $payment->status)) }}
@if($payment->status === 'failed' && $payment->failure_reason) @endif @if($payment->approved_by) @endif @if($payment->status === 'trial') @endif
Vendor {{ optional($payment->vendor)->name ?? '—' }} @if(optional($payment->vendor)->company_name) ({{ $payment->vendor->company_name }}) @endif
Contact {{ optional($payment->vendor)->email_id ?? '—' }} @if(optional($payment->vendor)->phone) | {{ $payment->vendor->phone }} @endif
Gateway {{ $payment->gateway ? ucfirst($payment->gateway) : '—' }}
Transaction ID {{ $payment->transaction_id ?? '—' }}
Amount AED {{ number_format($payment->amount, 2) }}
Failure Reason {{ $payment->failure_reason }}
{{ $payment->status === 'trial' ? 'Trial Granted By' : 'Approved By' }} {{ optional($payment->approvedBy)->name ?? '—' }} @if($payment->approved_at) · {{ viso_date_format($payment->approved_at) }} @endif
Trial Period {{ $payment->trial_start ? viso_date_format($payment->trial_start) : '—' }} → {{ $payment->trial_end ? viso_date_format($payment->trial_end) : '—' }}

Services Selected

@forelse($services as $s)
{{ $s['name'] }} AED {{ number_format($s['price_at_time'], 2) }} @if($s['is_active']) Active @else Inactive @endif
@empty

No services linked to this payment.

@endforelse
{{-- Admin actions --}}

Admin Actions

@if(in_array($payment->status, ['paid', 'manually_approved']))
This payment is already active. No further action needed.
@else

Override a pending/failed payment → activate the vendor's selected services manually.


Activates the selected services for a limited trial period — no charge.
@if($payment->status !== 'failed')
@endif @endif
View Payment History for This Vendor
@endsection