@extends('layouts.app') @section('title', 'العمالة المنزلية') @push('styles') @endpush @section('content')
العمالة المنزلية
{{ \App\Models\DomesticWorker::count() }}
عامل
{{ \App\Models\DomesticWorker::distinct('employer_name')->count('employer_name') }}
كفيل
@if(auth()->check() && auth()->user()->hasPermission(\App\Models\Permission::CREATE_IQAMAS)) إضافة @endif
البحث والتصفية
@foreach($employers as $employer)
@foreach($sponsors as $sponsor)
قائمة العمالة المنزلية
@forelse($workers as $index => $worker) @empty @endforelse
# اسم العامل الكفيل السمسار رقم الإقامة تاريخ الانتهاء ملاحظات الإجراءات
{{ $workers->firstItem() + $index }} {{ $worker->name }} {{ $worker->employer_name ?? '-' }} {{ $worker->sponsor ?? '-' }} {{ $worker->iqama_number }} {{ $worker->formatted_hijri_date }} {{ \Str::limit($worker->notes, 30) ?? '-' }} @if(auth()->check() && auth()->user()->hasPermission(\App\Models\Permission::EDIT_IQAMAS)) @endif @if(auth()->check() && auth()->user()->hasPermission(\App\Models\Permission::DELETE_IQAMAS))
@csrf @method('DELETE')
@endif

لا يوجد عمال

@if($workers->hasPages())
{{ $workers->links() }}
@endif
@endsection