{{-- GÖREVLER SEKMESİ — personele atanmış açık/kapalı görevler. Liste tipi sekmeler ortak "klasik tablo" dilini kullanır (agency/partials/qv-table): ince çizgiler, kopyalanabilir hücreler, satıra tıklayınca görev kartı açılır. Beklenen: $staff, $tasks --}} @include('agency.partials.qv-table') @php $openCount = $tasks->whereIn('status', ['pending', 'in_progress'])->count(); $overdue = $tasks->filter(fn ($t) => $t->due_date && ! in_array($t->status, ['completed', 'cancelled'], true) && $t->due_date->isPast())->count(); @endphp
| Görev | Öncelik | Durum | Bitiş |
|---|---|---|---|
| {{ $task->title }} @if($task->is_auto) Otomatik @endif | {{ $pr['label'] }} | {{ $st['label'] }} | {{ $task->due_date ? $task->due_date->format('d.m.Y') : '—' }} |
| Atanmış görev yok {{ $staff->user_id ? 'Bu personele henüz görev atanmadı.' : 'Görev atanabilmesi için personelin sistem hesabı olmalı.' }} | |||