{{ __('Expiring Soon') }}

Users with subscriptions expiring within 10 days

@csrf

Expiring Soon Users

Subscriptions expiring within the next 10 days

{{ $users->total() }}

Total Users

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@forelse($users as $index => $user) @php $daysLeft = \Carbon\Carbon::today()->diffInDays($user->validity_to, false); $urgencyColor = $daysLeft <= 3 ? 'text-red-600 dark:text-red-400 bg-red-50 dark:bg-red-900/30' : ($daysLeft <= 7 ? 'text-amber-600 dark:text-amber-400 bg-amber-50 dark:bg-amber-900/30' : 'text-yellow-600 dark:text-yellow-400 bg-yellow-50 dark:bg-yellow-900/30'); @endphp @empty @endforelse
S.No User Email Validity From Expires On Days Left Status Actions
{{ $users->firstItem() + $index }}
{{ strtoupper(substr($user->name, 0, 1)) }}
{{ $user->name }}
#{{ $user->id }}
{{ $user->email }} {{ $user->validity_from ? $user->validity_from->format('d M Y') : 'N/A' }} {{ $user->validity_to ? $user->validity_to->format('d M Y') : 'N/A' }} {{ $daysLeft }} days Expiring Soon
View

All Good!

No subscriptions expiring within the next 10 days

@if($users->hasPages())
{{ $users->links() }}
@endif