@extends('layouts.performance') @section('title', 'Değerlendirme Detayı') @section('page', 'report') @section('perf-content') @php $activeTab = ''; @endphp

Değerlendirme Formu

{{ $assignment->employee_name }} - {{ $assignment->period_name }}

Seviye: {{ $levelLabel }} Amir: {{ $evaluatorName }} İlerleme: {{ (int) $answered }} / {{ (int) $total }} Ortalama: {{ $avg !== null ? number_format($avg, 2, '.', '') : '-' }}
@if ($missingEvaluator2)
Bu atamada 2. amir bulunmuyor.
@elseif ($questions->isEmpty())
Bu atama için aktif soru seti bulunamadı.
@else @if (empty($answers))
Bu seviyede henüz cevap bulunmuyor.
@endif @php $currentSet = null; @endphp @foreach ($questions as $question) @php $setName = $question->set_name ?: 'Genel'; $qid = (int) $question->id; $score = $answers[$qid] ?? null; $label = $score !== null ? ($scoreLabels[$score] ?? '-') : '-'; $badgeClass = 'bg-secondary'; if ($score === 5) { $badgeClass = 'bg-success'; } elseif ($score === 4) { $badgeClass = 'bg-primary'; } elseif ($score === 3) { $badgeClass = 'bg-info'; } elseif ($score === 2) { $badgeClass = 'bg-warning'; } elseif ($score === 1) { $badgeClass = 'bg-danger'; } @endphp @if ($setName !== $currentSet) @if ($currentSet !== null) @endif
Soru Seti: {{ $setName }}
@php $currentSet = $setName; @endphp @endif @endforeach @if ($currentSet !== null)
Soru Puan Açıklama
{{ $question->question_text }} {{ $score !== null ? (int) $score : '-' }} {{ $label }}
@endif @endif @endsection