@extends('layouts.public') @section('title', $section->name . ' | ' . $siteSettings['name']) @section('content')
{{ $section->isOneToOne() ? '1-to-1 Private Session' : 'Group Class' }} @if($section->isFull()) Class Full @else Seats Available @endif

{{ $section->name }}

{{ $section->description ?? 'Join this academic coaching program consisting of comprehensive online sessions, syllabus revision worksheets, homework checking, and exam preparation.' }}

Subject {{ $section->subject->name }}
Start Date {{ $section->start_date ? \Carbon\Carbon::parse($section->start_date)->format('M d, Y') : 'Immediate' }}
Max Capacity {{ $section->isOneToOne() ? '1 Student' : "{$section->max_students} Students" }}

Weekly Live Schedule

@if($section->timetableSlots->isNotEmpty())
@foreach($section->timetableSlots as $slot)
{{ substr(['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'][$slot->day_of_week] ?? 'Day', 0, 3) }}

{{ ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'][$slot->day_of_week] ?? 'Weekly Day' }}

Recurring online lecture

{{ \Carbon\Carbon::parse($slot->start_time)->format('h:i A') }} - {{ \Carbon\Carbon::parse($slot->end_time)->format('h:i A') }}
@endforeach
@else
No group lectures scheduled. For private classes, schedule is booked dynamically inside the portal.
@endif
@if($section->teacher)

Your Instructor

@if($section->teacher->user->profile_photo_path) {{ $section->teacher->user->name }} @else
{{ substr($section->teacher->user->name ?? 'T', 0, 2) }}
@endif

{{ $section->teacher->user->name }}

{{ $section->teacher->specialization }} • {{ $section->teacher->experience_years }} Years Exp

{{ $section->teacher->bio ?? 'Certified education expert with deep syllabus tracking and student improvement background.' }}

@endif

Secure Your Seat

@auth @if(auth()->user()->isStudent())
@csrf
@forelse($section->activePricingPlans as $plan) @empty

No standard plans defined. Contact support to schedule.

@endforelse
@if($section->isFull()) @else @endif

Clicking Enroll will create a pending registration. You will be redirected to complete payment or upload transfer receipts.

@else

You are logged in as a {{ auth()->user()->roles->first()->name ?? 'user' }}. Only student accounts can enroll in classrooms.

Go to Portal
@endif @else

Access live schedules, enroll in pricing terms, and unlock dashboard materials by logging in.

@endauth
@endsection