@if (session()->has('alert')) @slot('type', session('alert')['type']) @slot('msg', session('alert')['msg']) @endif @if ($errors->any())
@endif
Users
{{-- --}} @foreach ($users as $user) @endforeach
Username Email Total Device Limit Device Subscription Expired subscription ActionAction
{{ $user->username }} {{ $user->email }} {{ $user->total_device }} {{ $user->limit_device }} @php if ($user->is_expired_subscription) { $badge = 'danger'; } else { $badge = 'success'; } @endphp {{ $user->active_subscription }} @php if ($user->is_expired_subscription) { echo '-'; } else { if ($user->active_subscription == 'active') { echo $user->subscription_expired; } else { echo '-'; } } @endphp
@csrf @method('DELETE')