@extends('layouts.app') @section('page-title', __('Edit Evaluation')) @section('title', __('Edit Evaluation')) @section('content')
@include('partials.messages')

{{ __('Edit Evaluation') }}

{{ __('Back') }}

{{ __('User and KPI aren\'t editable after an evaluation is recorded - record a new evaluation instead if either was wrong.') }} {{ trim(($performance->user->first_name ?? '') . ' ' . ($performance->user->last_name ?? '')) }} · {{ $performance->kpi->title ?? __('Deleted KPI') }}

@if(!$performance->kpi)
{{ __('The KPI behind this evaluation has been deleted - scores can no longer be edited.') }}
@else
@csrf @method('PUT')
@error('date_evaluated')
{{ $message }}
@enderror
@error('next_evaluation_date')
{{ $message }}
@enderror

{{ __('Scores') }}
@php $existingScores = $performance->scores->keyBy('kpi_question_id'); @endphp @foreach($performance->kpi->questions as $question) @endforeach
{{ __('Question') }} {{ __('Score (0-100)') }}
{{ $question->question }} @error('scores.' . $question->id)
{{ $message }}
@enderror
@error('scores')
{{ $message }}
@enderror
{{ __('Live average') }} —
{{ __('Cancel') }}
@endif
@endsection @push('scripts') @endpush