@extends('layouts.performance') @section('title', 'Görev Takip') @section('perf-content')

Görev Takip

Atadığınız görevleri, cevapları ve durumları izleyin.

@php $exportFilters = [ 'status' => $status, 'assignee' => request()->query('assignee'), 'task' => request()->query('task'), 'assigned_from' => request()->query('assigned_from'), 'assigned_to' => request()->query('assigned_to'), ]; @endphp Excel Aktar @if ($status === 'in_progress')
@csrf
@endif
@if (!$tasksReady)
Görev tabloları hazır değil. Migration çalıştırılmalıdır.
@elseif (request()->query('closed')) @if (request()->query('bulk'))
{{ (int) request()->query('count', 0) }} görev kapatıldı.
@else
Görev kapatıldı.
@endif @elseif (request()->query('error'))
{{ session('task_error', "\u{0130}\u{015f}lem s\u{0131}ras\u{0131}nda hata olu\u{015f}tu.") }}
@endif
Temizle
@forelse ($rows as $row) @php $statusValue = (string) ($row->assignment_status ?? 'assigned'); $statusLabel = $statusValue === 'completed' ? "Kapanm\u{0131}\u{015f}" : ($statusValue === 'in_progress' ? "\u{0130}\u{015f}lemde" : 'Aktif'); $statusClass = $statusValue === 'completed' ? 'task-status-complete' : ($statusValue === 'in_progress' ? 'task-status-progress' : 'task-status-active'); $responseTotal = (int) ($row->response_total ?? 0); @endphp @empty @endforelse
Görev Atanan Kişi Atama Tarihi Geçen Süre Dosya Detay Durum İşlem
{{ $row->title ?? '-' }}
{{ $row->description ?? '-' }}
{{ $row->assignee_label ?? '-' }} {{ $row->assigned_at_label ?? '-' }} {{ $row->elapsed_label ?? '-' }} @php $attachments = $row->response_attachments ?? collect(); @endphp @if ($attachments->isNotEmpty())
@foreach ($attachments as $attachment) @php $fileLabel = (string) ($attachment->attachment_name ?? $attachment->attachment_path ?? ''); $ext = strtolower(pathinfo($fileLabel, PATHINFO_EXTENSION)); $icon = 'bi-file-earmark'; $iconType = 'generic'; if ($ext === 'pdf') { $icon = 'bi-file-earmark-pdf-fill'; $iconType = 'pdf'; } elseif (in_array($ext, ['xls', 'xlsx'], true)) { $icon = 'bi-file-earmark-excel-fill'; $iconType = 'excel'; } elseif (in_array($ext, ['doc', 'docx'], true)) { $icon = 'bi-file-earmark-word-fill'; $iconType = 'word'; } elseif (in_array($ext, ['jpg', 'jpeg', 'png'], true)) { $icon = 'bi-file-earmark-image-fill'; $iconType = 'image'; } @endphp Dosya @endforeach
@else - @endif
@if ($responsesReady) Detay{{ $responseTotal > 0 ? ' (' . $responseTotal . ')' : '' }} @else - @endif {{ $statusLabel }}
@if ($status === 'in_progress' && $statusValue === 'in_progress')
@endif @if ($statusValue === 'assigned') Düzenle @endif @if ($statusValue !== 'completed')
@csrf
@else Kapalı @endif
Kayıt bulunamadı.
@endsection