@php /** Zaman panosu: teslim tarihine göre 4 kova. Sürükleyince son tarih güncellenir (AJAX, sayfa yenilenmez). */ $columns = [ 'overdue' => ['label' => 'Süresi Geçenler', 'dot' => '#ef4444', 'bg' => '#fef2f2', 'icon' => 'fa-fire', 'hint' => 'Bu kolona taşıma yapılamaz'], 'today' => ['label' => 'Bugün Yapılacaklar', 'dot' => '#d97706', 'bg' => '#fffbeb', 'icon' => 'fa-sun', 'hint' => 'Buraya bırakılan görevin son tarihi bugüne alınır'], 'week' => ['label' => 'Bu Hafta İçinde', 'dot' => '#4f46e5', 'bg' => '#eef2ff', 'icon' => 'fa-calendar-week', 'hint' => 'Buraya bırakılan görevin son tarihi hafta sonuna alınır'], 'nodate' => ['label' => 'Süresiz Olanlar', 'dot' => '#64748b', 'bg' => '#f8fafc', 'icon' => 'fa-infinity', 'hint' => 'Buraya bırakılan görevin son tarihi kaldırılır'], ]; @endphp
@foreach($columns as $bucket => $col)
{{ $col['label'] }}
{{ $time[$bucket]->count() }}
@if($bucket === 'week' && ($time['later_count'] ?? 0) > 0)
+{{ $time['later_count'] }} görev sonraki haftalarda planlı
@endif
@forelse($time[$bucket] as $task)
{{ $task->priorityMeta()['label'] }} @if($task->is_auto) @endif {{ $task->statusMeta()['label'] }}
{{ $task->title }}
@if($task->relations->isNotEmpty())
@foreach($task->relations->take(2) as $rel) {{ \Illuminate\Support\Str::limit($rel->label(), 26) }} @endforeach @if($task->relations->count() > 2) +{{ $task->relations->count() - 2 }} @endif
@endif @if($task->assignees->isNotEmpty())
@foreach($task->assignees->take(2) as $user) {{ $user->initials }}{{ $user->full_name }} @endforeach @if($task->assignees->count() > 2) +{{ $task->assignees->count() - 2 }} kişi @endif
@endif
@if($task->due_date) {{ $task->dueLabel('d M') }} @else Süresiz @endif @if(($task->comments_count ?? 0) > 0) {{ $task->comments_count }} @endif
@empty
Görev yok
@endforelse
@endforeach
@push('styles') @endpush @push('scripts') @endpush