@php
$selected_package = $physical_client->userInformation->selected_package ?? '';
preg_match('/(\d+)\s*classes/', strtolower($selected_package), $matches);
$total_classes = $matches[1] ?? 0;
@endphp
@if($total_classes > 0)
@for($i = 1; $i <= $total_classes; $i++)
@php
$isCompleted = array_key_exists($i, $completed_classes);
@endphp
Class {{ $i }}
@if($isCompleted)
Completed
@else
@endif
@endfor
@else
No valid package selected for this client.
@endif