@php /** @var array $grid */ @endphp
@if($canManage) @else @endif
{{ $weekLabel }} @if($canManage) @endif
@if($showClassroomFilter)
@endif

الحضور الأسبوعي — {{ $scope === 'children' ? niche_label('entities.child', 'الأطفال') : 'طاقم العمل' }}

{{ $weekLabel }} · {{ count($grid['rows']) }} صف

@foreach($grid['days'] as $day) @endforeach @if($canManage) @endif @forelse($grid['rows'] as $row) @foreach($row['cells'] as $cell) @php $cellClass = match ($cell['state']) { 'present' => 'bg-emerald-50 text-emerald-800', 'leave' => 'bg-amber-50 text-amber-800', 'absent' => 'bg-red-50 text-red-700', default => 'text-slate-400', }; @endphp @endforeach @if($canManage) {{-- Alpine dropdown (not erp-actions): menu must stay in Alpine scope for openModal / ids --}} @endif @empty @endforelse
{{ $scope === 'children' ? niche_label('entities.child', 'الطفل') : 'الموظف' }}
{{ $day['label'] }}
@php $summary = collect($grid['day_summaries'])->firstWhere('date', $day['date']); @endphp
{{ $summary['present'] ?? 0 }}/{{ $summary['total'] ?? 0 }} حاضر
إجراءات
{{ $row['name'] }} @if($row['subtitle']) {{ $row['subtitle'] }} @endif الحضور {{ $row['present_count'] }}/{{ $row['expected_count'] }} أيام {{ $cell['label'] }} @if($cell['detail'])
{{ $cell['detail'] }}
@endif
لا توجد سجلات لعرضها في هذا الأسبوع.