Billing

@if($currentSubscription)

Current Subscription

Plan
{{ $currentSubscription->plan->name ?? 'N/A' }}
${{ number_format($currentSubscription->amount, 2) }}/month
Payment Method
@if($currentSubscription->payment_method)
{{ ucfirst($currentSubscription->payment_method) }}
@else No payment method @endif
Status
@if($currentSubscription->status === 'active') Active @elseif($currentSubscription->status === 'pending') Pending @else {{ ucfirst($currentSubscription->status) }} @endif
@if($currentSubscription->renewal_at)
Next billing: {{ $currentSubscription->renewal_at->format('M j, Y') }}
@endif
@if($currentSubscription->status === 'pending' && $currentSubscription->payment_method === 'Bank Transfer') @php $transaction = \App\Models\Transaction::where('subscription_id', $currentSubscription->id) ->where('status', 'pending') ->orderBy('transaction_date', 'desc') ->first(); $instructions = $transaction && isset($transaction->metadata['bank_transfer_instructions']) ? $transaction->metadata['bank_transfer_instructions'] : null; $bankTransferPluginActive = \App\Models\Plugin::active() ->byType('payment_gateway') ->where('slug', 'bank-transfer') ->exists(); @endphp @if(!$bankTransferPluginActive) {{-- Show notice when plugin is inactive --}}

Payment Method No Longer Available

The Bank Transfer payment method is no longer available. Your pending subscription payment is still being processed.

If you have questions about your pending payment, please contact our support team with your transaction reference: {{ $transaction ? $transaction->transaction_id : 'N/A' }}

@elseif($instructions)

🏦 Complete Your Bank Transfer Payment

Your subscription is pending payment confirmation. Please complete the bank transfer using the details below:

{{ $instructions }}
💰 Amount to Transfer
${{ number_format($currentSubscription->amount, 2) }} {{ $transaction->currency }}
📋 Reference Number
{{ $transaction->transaction_id }}
Important: Please include the reference number "{{ $transaction->transaction_id }}" in your bank transfer. This helps us identify your payment quickly. Once we verify your payment, your subscription will be activated automatically.
@endif @endif
@else

No Active Subscription

Subscribe to a plan to unlock all features and start building your apps.

@endif @if($pendingSubscription)

🏦 Awaiting Bank Payment

Your {{ $pendingSubscription->plan->name }} plan subscription is pending payment confirmation.

Bank Transfer Instructions

@php $transaction = \App\Models\Transaction::where('subscription_id', $pendingSubscription->id) ->where('status', 'pending') ->orderBy('transaction_date', 'desc') ->first(); $instructions = $transaction && isset($transaction->metadata['bank_transfer_instructions']) ? $transaction->metadata['bank_transfer_instructions'] : 'No instructions available.'; @endphp
{{ $instructions }}
💰 Amount to Transfer
${{ number_format($pendingSubscription->amount, 2) }}
📋 Reference Number
{{ $transaction->transaction_id ?? 'N/A' }}
@endif

Billing History

View and download your transaction history

Status
@forelse($transactions as $transaction) @empty @endforelse
Invoice ID Date Description Amount Payment Method Status Actions
{{ $transaction->invoice_number }} {{ $transaction->transaction_date->format('M j, Y') }} @if($transaction->subscription && $transaction->subscription->plan) {{ $transaction->subscription->plan->name }} Plan - Monthly Subscription @else {{ ucfirst($transaction->type) }} @endif ${{ number_format($transaction->amount, 2) }} {{ $transaction->payment_method }} @if($transaction->status === 'completed') Completed @elseif($transaction->status === 'pending') Pending @elseif($transaction->status === 'failed') Failed @elseif($transaction->status === 'refunded') Refunded @endif View
No transactions found.