@extends('layouts.dashboard') @section('title', app()->getLocale() == 'ar' ? 'إدارة المستخدمين' : 'Users Management') @section('page-content')

{{ app()->getLocale() == 'ar' ? 'إدارة المستخدمين' : 'Users Management' }}

{{ app()->getLocale() == 'ar' ? 'إضافة مستخدم' : 'Add User' }}
@if($users->count() > 0)
@foreach($users as $user) @endforeach
# {{ 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' }}
{{ $user->id }} @if($user->avatar) @else @endif {{ $user->name }} {{ $user->email }} {{ $user->phone ?? '-' }}
@csrf
@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)
@csrf
@endif @if($user->id != session('user_id'))
@csrf @method('DELETE')
@endif
{{ $users->links() }}
@else

{{ app()->getLocale() == 'ar' ? 'لا يوجد مستخدمون' : 'No users found' }}

{{ app()->getLocale() == 'ar' ? 'إضافة أول مستخدم' : 'Add First User' }}
@endif
@endsection