{{-- resources/views/expire-subscriptions/index.blade.php --}} @extends('layouts.app') @section('content')
Manage and expire subscriptions that have passed their end date
Note: This will expire all subscriptions that have passed their end date. Once expired, subscribers will no longer have access to the services until they renew.
Total Active Subscriptions
{{ Subscription::where('status', 'active')->count() }}
To Be Expired
{{ $toBeExpiredCount }}
Already Expired
{{ $expiredCount }}
Expire subscriptions directly using the BillingService. This method provides real-time feedback and detailed logs.
Run the artisan command manually. This method is useful for testing or when you need to run the command from terminal.
php artisan billing:manual-expire
| ID | Subscriber | Package | End Date | Status |
|---|---|---|---|---|
| {{ $subscription->id }} | {{ $subscription->subscriber->name }} | {{ $subscription->package->name }} | {{ $subscription->end_date->format('d M Y') }} | Expired |