{{-- Workflow position: Intern → Consultant → Director → SLMC. @include('partials.evaluation.stepper', ['evaluation' => $e]) --}} @use('App\Models\InternEvaluation', 'E') @php $steps = [ ['Intern', 'ri-user-heart-line', 'Prepares & submits'], ['Consultant', 'ri-stethoscope-line', 'Reviews & approves'], ['Director', 'ri-hospital-line', 'Verifies & approves'], ['SLMC', 'ri-government-line', 'Received & locked'], ]; $current = [ E::DRAFT => 0, E::RETURNED_TO_INTERN => 0, E::WITH_CONSULTANT => 1, E::RETURNED_TO_CONSULTANT => 1, E::WITH_DIRECTOR => 2, E::LOCKED => 4, ][$evaluation->status] ?? 0; $returned = in_array($evaluation->status, [E::RETURNED_TO_INTERN, E::RETURNED_TO_CONSULTANT], true); @endphp