@php use App\Models\Task\Task; $dtColumns = [ ['key' => 'title', 'label' => 'Görev', 'sortable' => true, 'sort' => 'title'], ['key' => 'relations', 'label' => 'İlişkili Kayıtlar'], ['key' => 'assignees', 'label' => 'Atananlar'], ['key' => 'priority', 'label' => 'Öncelik', 'sortable' => true, 'sort' => 'priority', 'align' => 'center', 'width' => '110px'], ['key' => 'due_date', 'label' => 'Son Tarih', 'sortable' => true, 'sort' => 'due_date', 'width' => '150px'], ['key' => 'status', 'label' => 'Durum', 'sortable' => true, 'sort' => 'status', 'align' => 'center', 'width' => '130px'], ['key' => 'created_at', 'label' => 'Oluşturulma', 'sortable' => true, 'sort' => 'created_at', 'visible' => false, 'width' => '140px'], ['key' => '_actions', 'label' => '', 'fixed' => true, 'align' => 'end', 'width' => '90px'], ]; $dtFilters = [ ['key' => 'status', 'label' => 'Durum', 'value' => request('status'), 'options' => collect(Task::STATUSES)->map(fn ($m) => $m['label'])->all(), 'placeholder' => 'Tümü'], ['key' => 'priority', 'label' => 'Öncelik', 'value' => request('priority'), 'options' => collect(Task::PRIORITIES)->map(fn ($m) => $m['label'])->all(), 'placeholder' => 'Tümü'], ]; if ($canViewAll) { $dtFilters[] = ['key' => 'scope', 'label' => 'Kapsam', 'value' => request('scope'), 'options' => ['mine' => 'Görevlerim', 'all' => 'Tüm Acente'], 'placeholder' => 'Görevlerim']; $dtFilters[] = ['key' => 'assignee', 'label' => 'Atanan', 'value' => request('assignee'), 'options' => $staffUsers->pluck('full_name', 'id')->all(), 'placeholder' => 'Tümü']; } @endphp {{-- Görünüm parametresi dt formunun GET gönderimlerinde korunur --}} @if(request('filter')) @endif @forelse($tasks as $task)
@if($task->is_auto) @endif {{ \Illuminate\Support\Str::limit($task->title, 70) }} @if(($task->comments_count ?? 0) > 0) {{ $task->comments_count }} @endif
@if($task->description)
{{ \Illuminate\Support\Str::limit(strip_tags($task->description), 80) }}
@endif
@foreach($task->relations->take(2) as $rel) {{ \Illuminate\Support\Str::limit($rel->label(), 24) }} @endforeach @if($task->relations->count() > 2) +{{ $task->relations->count() - 2 }} @endif
@foreach($task->assignees->take(3) as $user) {{ $user->initials }}{{ $user->full_name }} @endforeach @if($task->assignees->count() > 3) +{{ $task->assignees->count() - 3 }} @endif
{{ $task->priorityMeta()['label'] }} @if($task->due_date) {{ $task->dueLabel('d M Y') }} @else @endif {{ $task->statusMeta()['label'] }} {{ $task->created_at->translatedFormat('d M Y') }}
@if(in_array($task->status, ['pending', 'in_progress'], true)) @endif @if($canAssign || $task->created_by === auth()->id()) @endif
@empty

Görev bulunamadı

Filtreleri temizleyin veya yeni bir görev oluşturun.

@endforelse
@push('scripts') @endpush