@extends('layouts.app') @section('title', 'الأقسام - '.config('app.name')) @section('breadcrumb') الرئيسية الموارد البشرية الأقسام @endsection @php $filterLinkParams = fn (string $status) => array_filter([ 'status' => $status, 'search' => request('search'), ], fn ($v) => $v !== null && $v !== ''); @endphp @section('content')

الأقسام

إدارة الأقسام التنظيمية

قسم جديد
{{-- في RTL: النموذج أولاً يظهر يميناً (بحث)، مجموعة التصفية بجواره على نفس السطر --}}
@if($filterStatus !== 'active') @endif
@php $segBase = 'inline-flex min-w-[4.75rem] items-center justify-center whitespace-nowrap rounded-lg px-3 py-2.5 text-center text-sm font-semibold transition focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-1 sm:min-w-[5.5rem] sm:px-4'; $segActive = 'bg-blue-600 text-white shadow-sm hover:bg-blue-700'; $segIdle = 'border border-gray-200/90 bg-white text-gray-800 shadow-sm hover:bg-gray-50'; @endphp نشط غير نشط الكل
@forelse($departments as $department) @empty @endforelse
رمز القسم اسم القسم القسم الأب مدير القسم الموظفون الحالة الإجراءات
{{ $department->code ?: '—' }}
{{ $department->name }}
@if(filled($department->name_en))
{{ $department->name_en }}
@endif
{{ $department->parent?->name ?? '—' }} {{ $department->manager?->name ?? '—' }} {{ $department->employees_count }} @if($department->is_active) نشط @else غير نشط @endif @php $deptMenuId = 'department-actions-'.$department->id; @endphp تعديل القسم
@csrf @method('DELETE')
لا توجد أقسام
@if($departments->hasPages())
{{ $departments->links() }}
@endif
@endsection