@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $isUniversity = $tenant->institution_type === 'university'; $navGroups = \App\Support\Navigation\StudentNav::groups('evaluations'); @endphp ← Back to teacher list @if($existingEvaluation) @php $percentage = round(($existingEvaluation->average_score / \App\Models\EvaluationParameter::MAX_SCORE) * 100); @endphp

You've already submitted a rating for this teacher in this cycle. Thank you!

Your Overall Rating

{{ rtrim(rtrim(number_format($existingEvaluation->average_score, 1), '0'), '.') }} / {{ \App\Models\EvaluationParameter::MAX_SCORE }}

Percentage

{{ $percentage }}%

@foreach($existingEvaluation->scores as $score)
{{ $score->parameter->name }} {{ $score->score }} / {{ \App\Models\EvaluationParameter::MAX_SCORE }}
@for($star = 1; $star <= \App\Models\EvaluationParameter::MAX_SCORE; $star++) @endfor
@endforeach
@if($existingEvaluation->comment)

Your Suggestion

{{ $existingEvaluation->comment }}

@endif
@else

Overall Rating

/ {{ \App\Models\EvaluationParameter::MAX_SCORE }}

Percentage

%

@csrf @foreach($parameters as $parameter)
/ {{ \App\Models\EvaluationParameter::MAX_SCORE }}
@if($parameter->description)

{{ $parameter->description }}

@endif
@for($star = 1; $star <= \App\Models\EvaluationParameter::MAX_SCORE; $star++) @endfor
@endforeach
@endif