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

Görev Cevapları

Seçilen görevin detayları ve gelen cevaplar.

Excel Aktar Excel İçeriklerini Birleştir
@if (!$tasksReady)
Görev tabloları hazır değil. Migration çalıştırılmalıdır.
@elseif (!$responsesReady)
Cevap tablosu bulunamadı.
@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 @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'); $lastResponseAt = (string) ($row->last_response_at ?? ''); @endphp
Görev Detayları
Görev Atanan Kişi Atama Tarihi Geçen Süre Son Yanıt Durum
{{ $row->title ?? '-' }}
{{ $row->description ?? '-' }}
@if (!empty($row->attachment_path))
Dosya {{ $row->attachment_name ?? '' }}
@endif
{{ $row->assignee_label ?? '-' }} {{ $row->assigned_at_label ?? '-' }} {{ $row->elapsed_label ?? '-' }} @if (!empty($row->last_response))
{{ $lastResponseAt !== '' ? $lastResponseAt : '-' }}
{{ $row->last_response }}
@else
-
@endif
{{ $statusLabel }}
Cevaplar
@forelse ($responses as $response) @php $responderName = trim((string) ($response->responder_name ?? '')); $employeeName = trim((string) ($response->employee_name ?? '')); $responderLabel = $responderName !== '' ? $responderName : ($employeeName !== '' ? $employeeName : '-'); $messageValue = trim((string) ($response->message ?? '')); $messageWrapped = $messageValue !== '' ? implode("\n", str_split($messageValue, 150)) : '-'; @endphp @empty @endforelse
Cevaplayan Kullanıcı Cevap Tarihi Cevap Dosya Eki
{{ $responderLabel }} {{ $response->created_at ?? '-' }} {!! nl2br(e($messageWrapped)) !!} @if (!empty($response->attachments) && $response->attachments->isNotEmpty()) @foreach ($response->attachments as $attachment)
Dosya {{ $attachment->attachment_name ?? '' }}
@endforeach @elseif (!empty($response->attachment_path)) Dosya {{ $response->attachment_name ?? '' }} @else - @endif
Cevap bulunamadı.
@endsection