@extends('layout.layout') @section('content')
Back to tutors
{{ $tutor['name'] }}
Tutor Profile
{{ $tutor['name'] }} {{ $tutor['teacher_type_label'] ?? 'Native-like' }}
{{ number_format((float) $tutor['rating'], 1) }}
@foreach($tutor['audience'] as $audience) {{ $audience }} @endforeach
Total Working Hours {{ number_format((float) $tutor['working_hours'], 1) }}
Nationality {{ $tutor['nationality'] }}
Accent {{ $tutor['accent'] }}
Gender {{ $tutor['gender'] }}
Biography

{{ $tutor['biography'] }}

Introductory Video
@if($tutor['intro_video_url']) @else
Intro video will appear here once added by admin.
@endif
Reviews
Admin shared
@forelse($tutor['reviews'] as $review)
{{ number_format((float) $review['rating'], 1) }}/5 {{ $review['date'] ?: '' }}

{{ $review['comment'] }}

{{ $review['program'] }}
@empty
No admin-shared reviews yet.
@endforelse
@php $availabilityDays = (int) ($filters['availability_days'] ?? 14); $availabilityItems = collect($tutor['availability'] ?? []); $availabilitySlotsTotal = $availabilityItems->sum('available_slots'); $nextAvailability = $availabilityItems->first(); @endphp {{--
Track Availability
Next {{ $availabilityDays }} days
Available slots {{ $availabilitySlotsTotal }} {{ $availabilityItems->count() }} available {{ \Illuminate\Support\Str::plural('day', $availabilityItems->count()) }}
Next available {{ $nextAvailability ? $nextAvailability['day'] : '-' }} {{ $nextAvailability ? $nextAvailability['label'] : 'No available day found' }}
@forelse($availabilityItems as $day)
@php $firstSlot = collect($day['slots'] ?? [])->first(); @endphp
@foreach(collect($day['slots'] ?? [])->take(6) as $slot) @endforeach
{{ \Illuminate\Support\Str::plural('slot', (int) $day['available_slots']) }}
@empty
No available slots in the next {{ $availabilityDays }} days.
@endforelse
--}}
Programs
Select a program to enroll
@forelse($tutor['programs'] as $program)
{{ $program['name'] }} Program
{{ $program['name'] }}
@if($program['levels_count'] !== null)
Total levels {{ $program['levels_count'] ?: '-' }}
@endif @if($program['sessions_count'] !== null)
Sessions {{ $program['sessions_count'] ?: '-' }}
@endif
@foreach($tutor['audience'] as $audience) {{ $audience }} @endforeach
@if($program['description'])

{{ $program['description'] }}

@else

Choose this program to view available enrollment times with {{ $tutor['name'] }}.

@endif
@empty
No programs found for this tutor.
@endforelse
Choose Schedule With {{ $tutor['name'] }}
Program selected
@include('student.schedule.partials._content', [ 'inlineCatalogSchedule' => true, 'catalogTrackId' => null, 'hideTeacherTypeField' => true, 'presetTeacherType' => $tutor['teacher_type'] ?? null, ])
@endsection @push('styles') @include('student.schedule.partials._styles') @endpush @push('scripts') @include('student.schedule.partials._scripts', [ 'schedulePresetQuery' => 'mode=track&tutor_id='.$tutor['id'], 'presetTeacherType' => $tutor['teacher_type'] ?? null, 'hideTeacherTypeField' => true, ]) @endpush