@php $settings = $staffTargetConfiguration?->group; $levels = old('levels', $settings?->levels ?? [['from' => '', 'to' => '', 'reward_type' => 'fixed', 'reward_value' => '', 'reward_basis' => 'none']]); if (!is_array($levels) || count($levels) === 0) { $levels = [[]]; } $metrics = ['students' => 'Student count', 'collected_amount' => 'Collected amount', 'renewal_rate' => 'Student renewal rate (%)', 'renewal_amount' => 'Amount paid by renewed students']; @endphp
@csrf @if ($isEditing) @method('PUT') @endif
@if ($errors->any()) @endif
The department and responsible job title are taken from the selected staff member.
Levels and rewards

One matching level determines the reward; rewards are not added across levels. Lower limits are inclusive; upper limits are exclusive, except the last upper limit is inclusive. Leave the last upper limit empty for no ceiling. All fixed and per-student amounts are in EGP.

@foreach ($levels as $index => $level) @include('dashboard.academics.staff_target_configurations._level_row') @endforeach
Cancel