@extends('layouts.marketing') @section('title', $class->name . ' - ' . __('app.pilates')) @section('content')
{{ __('app.back_to_classes') }}
{{ $class->date->translatedFormat('l, d M Y') }} {{ ucfirst($class->level) }} @if($class->hasAvailableSpots()) {{ __('app.spots_available') }} @else {{ __('app.fully_booked') }} @endif

{{ $class->name }}

{{ \Carbon\Carbon::parse($class->start_time)->translatedFormat('H:i') }} – {{ \Carbon\Carbon::parse($class->end_time)->translatedFormat('H:i') }}
{{ $class->instructor->name }}
{{ $class->current_participants }}/{{ $class->max_participants }}

{{ __('app.description') }}

{{ $class->description }}

{{ __('app.class_details') }}

{{ __('app.date') }}
{{ $class->date->translatedFormat('l, d M Y') }}
{{ __('app.time') }}
{{ \Carbon\Carbon::parse($class->start_time)->translatedFormat('H:i') }} – {{ \Carbon\Carbon::parse($class->end_time)->translatedFormat('H:i') }}
{{ __('app.instructor') }}
{{ $class->instructor->name }}
{{ __('app.level') }}
{{ $class->level }}
@php $rv = \App\Support\Ajr3StudioSettings::canonicalStudioRoomId($class->room ?? null); $rmap = \App\Support\Ajr3StudioSettings::studioRoomLabelMap(); @endphp
{{ __('app.class_room') }}
{{ $rmap[$rv] ?? $rv }}
@if($class->location)
{{ __('app.location') }}
{{ $class->location }}
@endif @if($class->equipment_needed)
{{ __('app.equipment') }}
{{ $class->equipment_needed }}
@endif

{{ __('app.availability') }}

{{ __('app.participants') }} {{ $class->current_participants }}/{{ $class->max_participants }}
{{ $class->max_participants - $class->current_participants }} {{ __('app.spots_remaining') }}
{{ __('app.class_price') }}
{{ number_format($class->price, 0) }} {{ __('app.currency') }}
@php $userBooking = auth()->user()->pilatesBookings() ->where('pilates_class_id', $class->id) ->first(); @endphp @if($userBooking)
{{ __('app.already_booked') }}

{{ __('app.booking_confirmed', ['date' => $class->date->format('M j, Y'), 'time' => $class->start_time->format('H:i')]) }}

{{ __('app.view_my_bookings') }}
@elseif($class->hasAvailableSpots())
@csrf

{{ __('app.instant_confirmation') }}

@else
{{ __('app.class_full') }}

{{ __('app.check_other_classes') }}

@endif

{{ __('app.why_book_with_us') }}

  • {{ __('app.expert_instructors') }}
  • {{ __('app.small_class_sizes') }}
  • {{ __('app.flexible_cancellation') }}
@endsection