@extends('admin.main') @section('content')

Student Medical Findings

@if(!empty($schoolName))
School: {{ $schoolName }}
@endif
Name: {{ $student->name }} {{ $student->lname }}
Phone: {{ $student->phone }}

Medical Issues:
@if(!empty($findings) && count($findings) > 0)
    @foreach($findings as $finding) @php $labels = [ 'observation1' => 'Restless or overactive?', 'observation2' => 'Excitable, Impulsive?', 'observation3' => 'Disturbs other children?', 'observation4' => 'Fails to finish things started?', 'observation5' => 'Inattentive, easily distracted?', 'observation6' => 'Cries often and easily?', 'observation7' => 'Is your spelling poor?', 'observation8' => 'Do you often make mistakes?', 'observation9' => 'Difficulty in telling left from right?', 'observation10' => 'Mix up bus numbers?', ]; $valueLabels = [ '3' => 'Pretty Much', '4' => 'Very Much', ]; $displayKey = $labels[$finding->key] ?? $finding->key; $displayValue = $valueLabels[$finding->value] ?? $finding->value; @endphp
  • {{ $displayKey }}: {{ $displayValue }}
  • @endforeach
@else
No medical issues found for this student.
@endif
@endsection