{{ __('Employees') }}

@can("employees create") @endcan
@if (session()->has('message'))
{{ session('message') }}
@endif
@foreach($employees as $e) @endforeach
{{ __('#') }} {{ __('Photo') }} {{ __('Name') }} {{ __('ID') }} {{ __('Job#') }} {{ __('Mobile') }} {{ __('Administrate') }} {{ __('Dept') }} {{ __('Title') }} {{ __('Status') }} {{ __('Actions') }}
{{ $loop->iteration + ($employees->currentPage() - 1) * $employees->perPage() }}
@if($e->photo_url) @else @endif
{{ $e->name }} @php $roleColors = [ 'Admin' => 'bg-red-500 text-white', 'General Manager' => 'bg-orange-500 text-white', 'HR Manager' => 'bg-purple-500 text-white', 'Finance Officer' => 'bg-teal-500 text-white', 'Head of Department'=> 'bg-blue-500 text-white', 'Unit Supervisor' => 'bg-green-500 text-white', 'Team Leader' => 'bg-yellow-500 text-white', 'Employee' => 'bg-gray-600 text-white', 'External Client' => 'bg-gray-400 text-black', 'Access Suspended' => 'bg-red-700 text-white', ]; @endphp @if($e->roles->isNotEmpty()) @foreach($e->roles as $role) {{ __($role->name) }} @endforeach @else {{__("Undefined")}} @endif {{ $e->civil_id }} {{ $e->job_number }} {{ $e->mobile }} {{ optional($e->administrate)->name }} {{ optional($e->department)->name }} {{ optional($e->position)->name }} @can('employees edit') {{ __(ucfirst($e->status)) }} @else {{ __(ucfirst($e->status)) }} @endcan
@can("employees edit") @endcan @can("employees delete") @endcan {{ __('View') }}
{{-- المودال --}}

{{ __('Change Employee Status') }}: {{$EmployeeName}}

{{ $employees->links() }} @if($confirmingDeletionId)

{{ __('Are you sure you want to delete?') }}

@endif