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

Payment Links Management

@stop @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

{{ $paymentLinks->total() }}

Total Links

{{ \App\Models\PaymentLink::where('status', 'active')->count() }}

Active

{{ \App\Models\PaymentLink::where('status', 'used')->count() }}

Used

{{ \App\Models\PaymentLink::whereIn('status', ['expired', 'cancelled'])->count() }}

Expired/Cancelled

Reset
@forelse($paymentLinks as $link) @empty @endforelse
Link Token Customer Service/Amount Status Created Expires Actions
{{ $link->link_token }} @if($link->customer_name)
{{ $link->customer_name }}
@endif @if($link->customer_email) {{ $link->customer_email }} @endif @if(!$link->customer_name && !$link->customer_email) Not specified @endif
@if($link->service)
{{ $link->service->menu_title ?? $link->service->title }}
{{ \App\Services\CurrencyService::getSymbol($link->service->currency ?? '$') }}{{ number_format($link->service->visament_fee + $link->service->government_fee, 2) }} @elseif($link->custom_amount) {{ \App\Services\CurrencyService::getSymbol($link->currency) }}{{ number_format($link->custom_amount, 2) }} @else Not specified @endif
@php $statusClasses = [ 'active' => 'badge-success', 'used' => 'badge-primary', 'expired' => 'badge-danger', 'cancelled' => 'badge-secondary', ]; $statusIcons = [ 'active' => 'fa-check-circle', 'used' => 'fa-money-bill', 'expired' => 'fa-clock', 'cancelled' => 'fa-ban', ]; @endphp {{ ucfirst($link->status) }}
{{ $link->created_at->format('M d, Y') }}
{{ $link->created_at->format('h:i A') }}
@if($link->expires_at) {{ $link->expires_at->format('h:i A') }} @if($link->expires_at->isPast()) Expired @endif @else No expiry @endif
@if($link->status === 'active')
@csrf
@endif @if($link->application_id) @endif
No payment links found

Create your first payment link to get started

Create Payment Link
@if($paymentLinks->hasPages()) @endif
@stop @section('js') @stop