@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.class_details') }} - {{ $class->date?->format('M d, Y') ?? __('app.not_available') }}
{{ __('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.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.total_bookings') }}: {{ $totalBookings }}
{{ __('app.confirmed') }}: {{ $confirmedBookings }}
{{ __('app.pending') }}: {{ $pendingBookings }}
{{ __('app.capacity') }}: {{ $class->current_participants }}/{{ $class->max_participants }}
{{ __('app.present') }}: {{ $presentCount }}
{{ __('app.late') }}: {{ $lateCount }}
{{ __('app.absent') }}: {{ $absentCount }}
{{ __('app.revenue') }}: {{ number_format($totalRevenue, 0) }} {{ __('app.currency') }}
{{ $class->description }}
{{ __('app.session_generated_from_template') }} "{{ $class->template->name }}"
{{ __('app.changes_will_not_affect_template') }}
{{ __('app.all_users_registered_for_class') }}
| {{ __('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') }} |
{{ __('app.no_users_registered_for_class') }}