{{-- 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
{{ $tasks->count() }} görev @if($openCount) {{ $openCount }} açık @endif @if($overdue) {{ $overdue }} gecikmiş @endif
@forelse($tasks as $task) @php $st = $task->statusMeta(); $pr = $task->priorityMeta(); $late = $task->due_date && ! in_array($task->status, ['completed', 'cancelled'], true) && $task->due_date->isPast(); @endphp @empty @endforelse
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ı.' }}