Subscription Approvals

Review payment-linked requests, approve subscriptions, and track subscription history.

Pending Requests
{{ number_format($pendingCount) }}
Approved Requests
{{ number_format($approvedCount) }}
Rejected Requests
{{ number_format($rejectedCount) }}
Active Subscriptions
{{ number_format($activeSubscriptionCount) }}
Admins currently assigned a package.
Expired Subscriptions
{{ number_format($expiredHistoryCount) }}
Package records that were manually closed.

Current Admin Subscriptions

These are the admins who currently have an active package or a package assigned.
@forelse ($currentSubscriptions as $admin) @php $subscription = $admin->activeSubscriptionHistory; $expiresAt = $subscription?->expected_expires_at ?? $admin->package?->expires_at; $daysLeft = $subscription?->days_left; $isExpired = $subscription ? ($subscription->status === 'expired' || ($expiresAt && now()->greaterThan($expiresAt))) : ($admin->package ? ! $admin->package->isAvailable() : true); @endphp @empty @endforelse
Admin Package Started Expires On Days Left Status Actions
{{ $admin->name }}
{{ $admin->email }}
{{ $admin->phone ?: 'No phone added.' }}
{{ $admin->package?->name ?: 'No package' }}
{{ $admin->package?->price_label ?: 'Free' }} @if ($admin->package) - {{ $admin->package->duration_label }} @endif
{{ $subscription?->started_at?->format('d M Y, h:i A') ?: $admin->created_at?->format('d M Y, h:i A') }} {{ $expiresAt?->format('d M Y, h:i A') ?: 'Not set' }} @if ($daysLeft === null) N/A @elseif ($isExpired) Expired @else {{ number_format($daysLeft) }} day{{ $daysLeft === 1 ? '' : 's' }} @endif {{ $isExpired ? 'Expired' : 'Active' }} @if ($admin->package_id) @else No active package @endif
No active subscriptions found.
{{ $currentSubscriptions->links() }}

Pending Subscription Requests

@forelse ($requests as $request) @empty @endforelse
Admin Requested Package Payment Ref Requested At Proof Status Actions
{{ $request->admin?->name }}
{{ $request->admin?->email }}
{{ $request->package_name }}
PKR {{ number_format((float) $request->package_price, 2) }}
{{ $request->payment_reference ?: 'N/A' }} {{ $request->requested_at?->format('d M Y, h:i A') }} @if ($request->payment_proof_path) View Proof @else N/A @endif {{ ucfirst($request->status) }} @if ($request->status === 'pending')
@else {{ $request->reviewed_at?->format('d M Y, h:i A') }} @endif
No subscription requests found.
{{ $requests->links() }}

Subscription History

Approved and expired package changes are logged here.
@forelse ($history as $item) @php $expiresAt = $item->expected_expires_at; $daysLeft = $item->days_left; @endphp @empty @endforelse
Admin Package Payment Ref Started Expires On Days Left Approved By Status
{{ $item->admin?->name }}
{{ $item->admin?->email }}
{{ $item->package_name }}
@if ($item->previousPackage) From {{ $item->previousPackage->name }} @else Initial subscription @endif
{{ $item->request?->payment_reference ?: 'N/A' }} {{ $item->started_at?->format('d M Y, h:i A') }} {{ $expiresAt?->format('d M Y, h:i A') ?: 'Not set' }} @if ($daysLeft === null) N/A @elseif ($item->status === 'expired' || ($expiresAt && now()->greaterThan($expiresAt))) Expired @else {{ number_format($daysLeft) }} day{{ $daysLeft === 1 ? '' : 's' }} @endif {{ $item->approvedBy?->name ?: 'N/A' }} {{ ucfirst($item->status) }}
No subscription history yet.
{{ $history->links() }}