@extends('layouts.app') @section('title', 'Benim Değerlendirmelerim') @section('content') @php use App\Support\EvaluationHelper; $level1Url = route('evaluations.index', ['level' => 1, 'tab' => 'pending']); $level2Url = route('evaluations.index', ['level' => 2, 'tab' => 'pending']); $pendingUrl = route('evaluations.index', array_filter(['level' => $level, 'tab' => 'pending', 'center' => $centerId ?: null])); $doneUrl = route('evaluations.index', array_filter(['level' => $level, 'tab' => 'done', 'center' => $centerId ?: null])); @endphp

Benim Değerlendirmelerim

Atamalarınızı ve ilerlemeyi tek ekranda yönetin.

1. Amir 2. Amir
Seviye: {{ $levelLabel }} Toplam {{ $totalAssignments }} kişi
@if ($centerNames)
Sorumluluk Merkezleri
Tümü @foreach ($centerNames as $cid => $cname) {{ $cname }} ({{ $centerCounts[$cid] ?? 0 }}) @endforeach
@endif @if ($rows->isEmpty())
Bu seviyede atanmış bir değerlendirme bulunmuyor.
@elseif ($tab === 'done')
@if ($level === 2) @endif @foreach ($rows as $row) @php $answered = (int) $row->answered; $total = (int) $row->total_questions; $sumScore = (float) $row->sum_score; $avgScore = $total > 0 ? round($sumScore / $total, 2) : null; $scoreHtml = $avgScore !== null ? number_format($avgScore, 2, '.', '') : '-'; $levelInfo = EvaluationHelper::scoreLevelLabel($avgScore); @endphp @if ($level === 2) @endif @endforeach
Personel Dönem İlerleme1. AmirOrtalama Seviye İşlem
{{ $row->employee_name }} {{ $row->period_name }} {{ $answered }} / {{ $total }}{{ EvaluationHelper::statusLabel($row->status_e1 ?? 'not_started') }}{{ $scoreHtml }} @if ($avgScore !== null) {{ $levelInfo['label'] }} @else - @endif Görüntüle
@if ($totalPages > 1)
@endif @else
@foreach ($rows as $row) @php $answered = (int) $row->answered; $total = (int) $row->total_questions; $status = $level === 1 ? ($row->status_e1 ?? 'not_started') : ($row->status_e2 ?? 'not_started'); $percent = EvaluationHelper::percent($answered, $total); $blocked = $level === 2 && $enforceE1BeforeE2 && ($row->status_e1 ?? '') !== 'submitted'; $actionLabel = $status === 'submitted' ? "G\u{00F6}r\u{00FC}nt\u{00FC}le" : 'Devam et'; if ($status !== 'submitted' && $answered === 0) { $actionLabel = 'Basla'; } $actionClass = $status === 'submitted' ? 'btn-outline-secondary' : 'btn-primary'; $actionHref = $blocked ? '#' : route('assignments.show', ['id' => $row->id, 'level' => $level]); if ($blocked) { $actionLabel = 'Beklemede'; $actionClass = 'btn-outline-secondary'; } @endphp
{{ $row->employee_name }}
{{ $row->period_name }}
İlerleme {{ $answered }} / {{ $total }}
@if ($level === 2)
1. Amir: {{ EvaluationHelper::statusLabel($row->status_e1 ?? 'not_started') }}
@endif
Seviye: {{ $levelLabel }} {{ $actionLabel }}
@endforeach
@endif @endsection