@if (session()->has('alert')) @slot('type', session('alert')['type']) @slot('msg', session('alert')['msg']) @endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{__('Users')}}
@foreach ($users as $user) @php $limitDevices=$user->activeOrder?->plan_data['data']['device_limit']; @endphp @endforeach
{{__('Name')}} {{__('Username')}} {{__('Phone No')}} {{__('Email')}} {{__('Total Device')}} {{__('Limit Device')}} {{__('Status')}} {{__('Plan')}} {{__('Expired subscription')}} {{__('Action')}}
{{ $user->name }} {{ $user->username }} {{ $user->phone }} {{ $user->email }} {{ $user->total_device }} {{ $limitDevices=="-1"?"∞":$limitDevices }} @php if ($user->is_expired_subscription) { $badge = 'danger'; } else { $badge = 'success'; } @endphp {{ ucfirst($user->activeOrder?->status) }} @if ($user->activeOrder?->plan_data['data']) {{$user->activeOrder?->plan_data['title']}} @else -- @endif @php if ($user->is_expired_subscription) { echo '-'; } else { if ($user->activeOrder?->status == 'active') { echo $user->activeOrder?->next_renewal_date; } else { echo '-'; } } @endphp