@php $totalCount = $expiringIqamas->count() + $expiringCompanyWorkers->count() + $expiringDomesticWorkers->count(); @endphp {{-- HEADER --}}
تقرير انتهاء الإقامات
الإقامات المنتهية أو على وشك الانتهاء خلال {{ $days }} يوم
{{ $totalCount }}
إقامة منتهية
تاريخ إنشاء التقرير
{{ $generatedAt }}
{{-- SUMMARY COUNTS --}}
الإقامات
{{ $expiringIqamas->count() }}
سجل منتهي
عمال الشركات
{{ $expiringCompanyWorkers->count() }}
سجل منتهي
العمالة المنزلية
{{ $expiringDomesticWorkers->count() }}
سجل منتهي
{{-- IQAMAS TABLE --}} @if($expiringIqamas->count() > 0) @foreach($expiringIqamas as $i => $iqama) @endforeach @else @endif
الإقامات المنتهية — {{ $expiringIqamas->count() }} سجل
# الاسم رقم الإقامة الجنسية المهنة تاريخ الانتهاء (هجري)
{{ $i+1 }} {{ $iqama->name ?? '-' }} {{ $iqama->iqama_number }} {{ $iqama->nationality ?? '-' }} {{ $iqama->profession ?? '-' }} {{ $iqama->expiry_day_hijri }}/{{ $iqama->expiry_month_hijri }}/{{ $iqama->expiry_year_hijri }}
لا توجد إقامات منتهية في هذه الفترة
{{-- COMPANY WORKERS TABLE --}} @if($expiringCompanyWorkers->count() > 0) @foreach($expiringCompanyWorkers as $i => $worker) @endforeach @else @endif
عمال الشركات المنتهية إقاماتهم — {{ $expiringCompanyWorkers->count() }} سجل
# الاسم رقم الإقامة الشركة تاريخ الانتهاء (هجري)
{{ $i+1 }} {{ $worker->name ?? '-' }} {{ $worker->iqama_number }} {{ $worker->company_name ?? '-' }} {{ $worker->expiry_day_hijri }}/{{ $worker->expiry_month_hijri }}/{{ $worker->expiry_year_hijri }}
لا توجد إقامات منتهية في هذه الفترة
{{-- DOMESTIC WORKERS TABLE --}} @if($expiringDomesticWorkers->count() > 0) @foreach($expiringDomesticWorkers as $i => $worker) @endforeach @else @endif
العمالة المنزلية المنتهية إقاماتهم — {{ $expiringDomesticWorkers->count() }} سجل
# الاسم رقم الإقامة الكفيل تاريخ الانتهاء (هجري)
{{ $i+1 }} {{ $worker->name ?? '-' }} {{ $worker->iqama_number }} {{ $worker->sponsor ?? '-' }} {{ $worker->expiry_day_hijri }}/{{ $worker->expiry_month_hijri }}/{{ $worker->expiry_year_hijri }}
لا توجد إقامات منتهية في هذه الفترة
{{-- FOOTER --}}
نظام إدارة الإقامات — تقرير انتهاء الإقامات خلال {{ $days }} يوم  |  {{ $generatedAt }}
padding-bottom: 20px; margin-bottom: 30px; } .header h1 { color: #ff3e1d; margin: 0; font-size: 22px; } .header .subtitle { color: #666; font-size: 14px; margin-top: 5px; } .header .generated { color: #999; font-size: 10px; margin-top: 10px; } .alert-box { background: linear-gradient(135deg, #ff3e1d, #e03516); color: white; border-radius: 10px; padding: 20px; margin-bottom: 25px; text-align: center; } .alert-box .icon { font-size: 40px; margin-bottom: 10px; } .alert-box .count { font-size: 36px; font-weight: bold; } .alert-box .label { font-size: 14px; opacity: 0.9; } .summary-grid { display: table; width: 100%; margin-top: 15px; } .summary-item { display: table-cell; width: 33.33%; text-align: center; padding: 10px; background: rgba(255,255,255,0.1); border-radius: 8px; } .summary-item .value { font-size: 24px; font-weight: bold; } .section { margin-bottom: 25px; } .section-title { background: linear-gradient(135deg, #ff3e1d, #e03516); color: white; padding: 10px 15px; border-radius: 8px; font-size: 13px; font-weight: bold; margin-bottom: 15px; } .section-title.warning { background: linear-gradient(135deg, #ffab00, #e69b00); } .section-title.info { background: linear-gradient(135deg, #696cff, #5a5dc4); } table.data-table { width: 100%; border-collapse: collapse; margin-top: 10px; } table.data-table th { background: #f8f9fa; border: 1px solid #ddd; padding: 8px; font-weight: bold; text-align: right; font-size: 10px; } table.data-table td { border: 1px solid #ddd; padding: 6px; text-align: right; font-size: 10px; } table.data-table tr:nth-child(even) { background: #fafafa; } .expiry-date { color: #ff3e1d; font-weight: bold; } .no-data { text-align: center; padding: 20px; color: #71dd37; background: rgba(113, 221, 55, 0.1); border-radius: 8px; } .footer { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; color: #999; font-size: 10px; }

⚠️ {{ $title }}

تقرير الإقامات المنتهية أو على وشك الانتهاء
تم إنشاء التقرير في: {{ $generatedAt }}
{{ $expiringIqamas->count() + $expiringCompanyWorkers->count() + $expiringDomesticWorkers->count() }}
إقامة ستنتهي خلال {{ $days }} يوم
{{ $expiringIqamas->count() }}
إقامات
{{ $expiringCompanyWorkers->count() }}
عمال شركات
{{ $expiringDomesticWorkers->count() }}
عمالة منزلية
الإقامات المنتهية ({{ $expiringIqamas->count() }})
@if($expiringIqamas->count() > 0) @foreach($expiringIqamas as $index => $iqama) @endforeach
# الاسم رقم الإقامة الجنسية المهنة تاريخ الانتهاء
{{ $index + 1 }} {{ $iqama->name ?? '-' }} {{ $iqama->iqama_number }} {{ $iqama->nationality ?? '-' }} {{ $iqama->profession ?? '-' }} {{ $iqama->expiry_day_hijri }}/{{ $iqama->expiry_month_hijri }}/{{ $iqama->expiry_year_hijri }}
@else
✓ لا توجد إقامات منتهية في هذه الفترة
@endif
عمال الشركات ({{ $expiringCompanyWorkers->count() }})
@if($expiringCompanyWorkers->count() > 0) @foreach($expiringCompanyWorkers as $index => $worker) @endforeach
# الاسم رقم الإقامة الشركة تاريخ الانتهاء
{{ $index + 1 }} {{ $worker->name ?? '-' }} {{ $worker->iqama_number }} {{ $worker->company_name ?? '-' }} {{ $worker->expiry_day_hijri }}/{{ $worker->expiry_month_hijri }}/{{ $worker->expiry_year_hijri }}
@else
✓ لا توجد إقامات منتهية في هذه الفترة
@endif
العمالة المنزلية ({{ $expiringDomesticWorkers->count() }})
@if($expiringDomesticWorkers->count() > 0) @foreach($expiringDomesticWorkers as $index => $worker) @endforeach
# الاسم رقم الإقامة الكفيل تاريخ الانتهاء
{{ $index + 1 }} {{ $worker->name ?? '-' }} {{ $worker->iqama_number }} {{ $worker->sponsor ?? '-' }} {{ $worker->expiry_day_hijri }}/{{ $worker->expiry_month_hijri }}/{{ $worker->expiry_year_hijri }}
@else
✓ لا توجد إقامات منتهية في هذه الفترة
@endif