@extends('layouts.app') @section('title', 'دليل الموظفين - DOTS HR Pro') @push('styles') @endpush @section('content') {{-- إحصائيات سريعة --}}
إجمالي الموظفين: {{ $employees->total() }}
الأقسام: {{ $departments->count() }}
{{-- بحث وتصفية --}}

بحث وتصفية

@if(request('search') || request('department')) مسح @endif
@if($employees->count() > 0)
@foreach($employees as $emp)
@if($emp->employee_code)
{{ $emp->employee_code }}
@endif
@if($emp->photo) {{ $emp->full_name }} @else {{ mb_substr($emp->first_name ?? '', 0, 1) }}{{ mb_substr($emp->last_name ?? '', 0, 1) }} @endif

{{ $emp->full_name }}

{{ $emp->jobTitle->name ?? '—' }}

@if($emp->department)
{{ $emp->department->name }}
@endif
@if($emp->email)
{{ $emp->email }}
@endif @if($emp->phone)
{{ $emp->phone }}
@endif
@endforeach
@if($employees->hasPages())
{{ $employees->appends(request()->query())->links() }}
@endif @else

لا يوجد موظفون مطابقون للبحث

@endif @endsection