@extends('adminlte::page') @section('title', 'Payment Link Details') @section('content_header')

Payment Link Details

Back to List
@stop @section('content')
@if(session('success'))
{{ session('success') }}
@endif

Link Information

@php $statusClasses = [ 'active' => 'badge-success', 'used' => 'badge-primary', 'expired' => 'badge-danger', 'cancelled' => 'badge-secondary', ]; @endphp {{ ucfirst($paymentLink->status) }}

@if($paymentLink->service) {{ $paymentLink->service->menu_title ?? $paymentLink->service->title }} @else Custom Amount @endif

@if($paymentLink->custom_amount) {{ \App\Services\CurrencyService::getSymbol($paymentLink->currency) }}{{ number_format($paymentLink->custom_amount, 2) }} @elseif($paymentLink->service) {{ \App\Services\CurrencyService::getSymbol($paymentLink->service->currency ?? '$') }}{{ number_format($paymentLink->service->visament_fee + $paymentLink->service->government_fee, 2) }} @else N/A @endif


{{ $paymentLink->customer_name ?? 'Not specified' }} @if($paymentLink->name_required) Required @endif

{{ $paymentLink->customer_email ?? 'Not specified' }} @if($paymentLink->email_required) Required @endif


{{ $paymentLink->created_at->format('M d, Y h:i A') }}

{{ $paymentLink->used_at ? $paymentLink->used_at->format('M d, Y h:i A') : 'Not used yet' }}

@if($paymentLink->admin_notes)

{{ $paymentLink->admin_notes }}

@endif

@if($paymentLink->createdBy) {{ $paymentLink->createdBy->first_nm }} {{ $paymentLink->createdBy->last_nm }} ({{ $paymentLink->createdBy->email_addr }}) @else Unknown @endif

@if($paymentLink->status === 'used' && ($paymentLink->user || $paymentLink->application || $paymentLink->payment))

Usage Details

@if($paymentLink->user)

{{ $paymentLink->user->first_nm }} {{ $paymentLink->user->last_nm }}
{{ $paymentLink->user->email_addr }}


@endif @if($paymentLink->application)

{{ $paymentLink->application->application_number }} View Application


@endif @if($paymentLink->payment)
Transaction ID {{ $paymentLink->payment->transaction_id }}
Amount ${{ number_format($paymentLink->payment->amount, 2) }}
Status {{ ucfirst($paymentLink->payment->status) }}
@endif
@endif

Actions

@if($paymentLink->status === 'active')
@csrf
@endif @if($paymentLink->status === 'active') Open Link @endif
@stop @section('js') @stop