@extends('layouts.app') @section('title', app()->getLocale() === 'bn' ? 'ব্যবহারকারী তালিকা' : 'Users') @section('page-title', app()->getLocale() === 'bn' ? 'ব্যবহারকারী' : 'Users') @section('content')

{{ app()->getLocale() === 'bn' ? 'ব্যবহারকারী তালিকা' : 'User List' }}

+ {{ app()->getLocale() === 'bn' ? 'নতুন ব্যবহারকারী' : 'Add User' }}
{{-- Filters --}}
{{ app()->getLocale() === 'bn' ? 'রিসেট' : 'Reset' }}
{{-- Table --}}
@forelse($users as $user) @empty @endforelse
{{ __('Name') }} {{ app()->getLocale() === 'bn' ? 'ইমেইল' : 'Email' }} {{ app()->getLocale() === 'bn' ? 'ভূমিকা' : 'Role' }} {{ app()->getLocale() === 'bn' ? 'এলাকা' : 'Area' }} {{ __('Status') }} {{ __('Actions') }}

{{ $user->name_bn ?? $user->name }}

{{ $user->phone }}

{{ $user->email }} {{ ucfirst(str_replace('_',' ',$user->role)) }} {{ $user->assigned_area_type ? ucfirst($user->assigned_area_type) . ' #' . $user->assigned_area_id : '—' }} {{ $user->is_active ? (app()->getLocale() === 'bn' ? 'সক্রিয়' : 'Active') : (app()->getLocale() === 'bn' ? 'নিষ্ক্রিয়' : 'Inactive') }}
@csrf @method('PATCH')
{{ __('No results found') }}
@if($users->hasPages())
{{ $users->links() }}
@endif
@endsection