{{-- Header Görevler toolbar'ı (Hızlı Ekle'nin yerine) --}} @php $tkAgencyId = auth()->user()?->currentAgencyId(); $tkCounts = ['pending' => 0, 'overdue' => 0, 'completed_today' => 0]; if ($tkAgencyId) { $tkBase = fn () => \App\Models\Task\Task::byAgency($tkAgencyId)->notArchived()->assignedTo(auth()->id()); $tkCounts = [ 'pending' => $tkBase()->pendingNotOverdue()->count(), 'overdue' => $tkBase()->overdue()->count(), 'completed_today' => $tkBase()->completedToday()->count(), ]; } @endphp