Manage all subscription users in the system
Total: {{ $users->total() }} users
| ID | User | Mobile | Status | Grace Period | Validity From | Validity To | Actions | |
|---|---|---|---|---|---|---|---|---|
| #{{ $user->id }} |
{{ strtoupper(substr($user->name, 0, 1)) }}
{{ $user->name }}
|
{{ $user->email }} | {{ $user->mobile_no ?? '-' }} | @if($user->is_active) Active @else Inactive @endif | @if($user->grace_period) Granted @else - @endif | @if($user->validity_from) {{ $user->validity_from->timezone('Asia/Kolkata')->format('d M Y') }} @else Not Set @endif |
@if($user->validity_to)
{{ $user->validity_to->timezone('Asia/Kolkata')->format('d M Y') }}
@php
$today = \Carbon\Carbon::today();
$daysLeft = $today->diffInDays($user->validity_to, false);
@endphp
@if($daysLeft < 0)
Expired {{ abs($daysLeft) }} days ago
@elseif($daysLeft == 0)
Expires today
@elseif($daysLeft <= 7)
{{ $daysLeft }} days left
@else
{{ $daysLeft }} days left
@endif
@else
Not Set
@endif
|
|