@if($category == 0) Medical History
@elseif($category == 1) Current Medical Condition
@elseif($category == 2) Medications
@elseif($category == 3) Allergies
@endif

@if(!$students->isEmpty()) @foreach($students as $list) @endforeach
- Condition No. of students with record
{{++$x}} {{$list->description}} {{$list->counter}}
@else

  • No recorded students in with this description
  • @endif