@extends('layouts.sidebar') @section('page-title', $class->name . ' - ' . __('app.class_details')) @section('page-description', __('app.view_class_information_and_participants')) @section('title', $class->name . ' - ' . __('app.class_details') . ' - ' . __('app.admin')) @section('content')
{{ __('app.back_to_classes') }}

{{ $class->name }}

{{ __('app.class_details') }} - {{ $class->date?->format('M d, Y') ?? __('app.not_available') }}

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

{{ __('app.level') }}: {{ ucfirst($class->level) }}

@if($class->instructor)

{{ __('app.instructor') }}: {{ $class->instructor->name }}

@endif @if($class->location)

{{ __('app.location') }}: {{ $class->location }}

@endif @php $rv = \App\Support\Ajr3StudioSettings::canonicalStudioRoomId($class->room ?? null); $rmap = \App\Support\Ajr3StudioSettings::studioRoomLabelMap(); @endphp

{{ __('app.class_room') }}: {{ $rmap[$rv] ?? $rv }}

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

{{ __('app.date') }}: {{ $class->date?->format('M d, Y') ?? __('app.not_available') }}

{{ __('app.time') }}: {{ \Carbon\Carbon::parse($class->start_time)->format('H:i') }} - {{ \Carbon\Carbon::parse($class->end_time)->format('H:i') }}

{{ __('app.duration') }}: {{ \Carbon\Carbon::parse($class->start_time)->diffInMinutes(\Carbon\Carbon::parse($class->end_time)) }} {{ __('app.minutes') }}

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

{{ __('app.total_bookings') }}: {{ $totalBookings }}

{{ __('app.confirmed') }}: {{ $confirmedBookings }}

{{ __('app.pending') }}: {{ $pendingBookings }}

{{ __('app.capacity') }}: {{ $class->current_participants }}/{{ $class->max_participants }}

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

{{ __('app.present') }}: {{ $presentCount }}

{{ __('app.late') }}: {{ $lateCount }}

{{ __('app.absent') }}: {{ $absentCount }}

{{ __('app.revenue') }}: {{ number_format($totalRevenue, 0) }} {{ __('app.currency') }}

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

@if($totalBookings > 0) {{ __('app.manage_attendance') }} @endif {{ __('app.edit_class') }} @if($class->current_participants < $class->max_participants) @endif @if($class->is_template) {{ __('app.generate_schedule') }} @endif
@if($class->description)

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

{{ $class->description }}

@endif @if($class->template)

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

{{ __('app.session_generated_from_template') }} "{{ $class->template->name }}"

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

@endif @if($bookings->count() > 0)

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

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

@foreach($bookings as $booking) @endforeach
{{ __('app.participant') }} {{ __('app.contact') }} {{ __('app.booking_status') }} {{ __('app.payment_status') }} {{ __('app.attendance') }} {{ __('app.booking_date') }} {{ __('app.actions') }}
{{ substr($booking->user->name, 0, 2) }}
{{ $booking->user->name }}
{{ $booking->user->role }}
{{ $booking->user->email }}
@if($booking->user->phone)
{{ $booking->user->phone }}
@endif
{{ ucfirst($booking->status) }} {{ ucfirst($booking->payment_status) }} @if($booking->payment)
{{ $booking->payment->getPaymentTypeLabel() }}
@endif
@if($booking->attendance) {{ $booking->attendance->getStatusLabel() }} @if($booking->attendance->checked_in_at)
{{ $booking->attendance->checked_in_at->format('H:i') }}
@endif @else {{ __('app.not_recorded') }} @endif
{{ $booking->booking_date->format('M d, Y') }}
@if($booking->status !== 'cancelled' && $class->date > now())
@csrf @method('DELETE')
@endif
@else

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

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

@endif @endsection