@extends('layouts.admin', ['heading' => 'Advanced Payments', 'subheading' => 'Crypto, subscriptions, and recurring payments']) @section('content')
Subscription Plan Builder
@csrf
@foreach($plans as $plan)
@csrf
{{ $plan->name }} ({{ $plan->code }})
{{ number_format((float) $plan->amount, 2) }} {{ $plan->currency }} / {{ $plan->interval_days }}d
@endforeach
Crypto Payment Logs
@forelse($cryptoTransactions as $txn) @empty @endforelse
Txn User Currency Amount Status Action
#{{ $txn->id }}
{{ $txn->tx_hash ?: '-' }}
{{ $txn->user_id ?: '-' }} {{ $txn->currency_code }} {{ number_format((float) $txn->amount_crypto, 8) }} / {{ number_format((float) $txn->amount_inr, 2) }} {{ ucfirst($txn->status) }}
@csrf
No crypto transactions.
{{ $cryptoTransactions->links() }}
Subscription Activity
@forelse($subscriptions as $sub) @empty @endforelse
ID User Plan Status Start Next Billing
{{ $sub->id }} {{ $sub->user_id }} {{ $sub->subscription_plan_id }} {{ ucfirst($sub->status) }} {{ optional($sub->starts_on)->format('d M Y') }} {{ optional($sub->next_billing_on)->format('d M Y') ?: '-' }}
No subscriptions found.
{{ $subscriptions->links() }}
@endsection