@php $columns = [ \App\Models\Task\Task::STATUS_PENDING => ['label' => 'Bekliyor', 'dot' => '#f59e0b', 'bg' => '#fffbeb', 'icon' => 'fa-hourglass-half'], \App\Models\Task\Task::STATUS_IN_PROGRESS => ['label' => 'Devam Ediyor', 'dot' => '#4f46e5', 'bg' => '#eef2ff', 'icon' => 'fa-bolt'], \App\Models\Task\Task::STATUS_AWAITING_APPROVAL => ['label' => 'Onay Bekliyor', 'dot' => '#0ea5e9', 'bg' => '#f0f9ff', 'icon' => 'fa-user-check'], \App\Models\Task\Task::STATUS_COMPLETED => ['label' => 'Tamamlandı', 'dot' => '#16a34a', 'bg' => '#f0fdf4', 'icon' => 'fa-circle-check'], ]; @endphp
@foreach($columns as $statusKey => $col)
{{ $col['label'] }}
{{ $kanban[$statusKey]->count() }}
@forelse($kanban[$statusKey] as $task)
{{ $task->priorityMeta()['label'] }} @if($task->is_auto) Otomatik @endif
{{ $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 @endif @if(($task->comments_count ?? 0) > 0) {{ $task->comments_count }} @endif @if($task->completed_at) {{ $task->completed_at->translatedFormat('d M') }} @endif
@empty
Görev yok
@endforelse
@endforeach
@push('styles') @endpush @push('scripts') @endpush