@if($users->count() > 0)
| # |
{{ app()->getLocale() == 'ar' ? 'الاسم' : 'Name' }} |
{{ app()->getLocale() == 'ar' ? 'البريد الإلكتروني' : 'Email' }} |
{{ app()->getLocale() == 'ar' ? 'الهاتف' : 'Phone' }} |
{{ app()->getLocale() == 'ar' ? 'الحالة' : 'Status' }} |
{{ app()->getLocale() == 'ar' ? 'قفل الحساب' : 'Account Lock' }} |
{{ app()->getLocale() == 'ar' ? 'الإجراءات' : 'Actions' }} |
@foreach($users as $user)
| {{ $user->id }} |
@if($user->avatar)
@else
@endif
{{ $user->name }}
|
{{ $user->email }} |
{{ $user->phone ?? '-' }} |
|
@php
$isLocked = $user->locked_until && \Carbon\Carbon::parse($user->locked_until)->isFuture();
@endphp
@if($isLocked)
{{ app()->getLocale() == 'ar' ? 'مقفل' : 'Locked' }}
@else
{{ app()->getLocale() == 'ar' ? 'مفتوح' : 'Unlocked' }}
@endif
|
@if($isLocked)
@endif
@if($user->id != session('user_id'))
@endif
|
@endforeach
{{ $users->links() }}
@else
{{ app()->getLocale() == 'ar' ? 'لا يوجد مستخدمون' : 'No users found' }}
{{ app()->getLocale() == 'ar' ? 'إضافة أول مستخدم' : 'Add First User' }}
@endif