@extends('layouts.app') @push('styles') @endpush @section('content')

{{ $physical_client->name ?? 'Client' }} - {{ $physical_client->userInformation->selected_package ?? 'Package Not Found' }}

Manage Class Schedule

@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 @endfor
Class No. Schedule Date & Time Status
Class {{ $i }} @if($isCompleted) Completed @else @endif
@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
@endsection @push('scripts') @endpush