@extends('layouts.sidebar') @section('page-title', $template->name . ' - ' . __('app.future_classes')) @section('page-description', __('app.manage') . ' ' . __('app.future_classes') . ' ' . __('app.for') . ' ' . $template->name) @section('title', $template->name . ' - ' . __('app.admin')) @push('styles') @endpush @section('content')
{{ __('app.back_to_templates') }}

{{ $template->name }}

{{ __('app.future_classes') }} — {{ __('app.add_user') }}, {{ __('app.bulk_actions') }}, {{ __('app.participants') }}.

@if($classes->count() > 0)

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

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

@csrf

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

@csrf

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

@foreach($classes as $class) @endforeach
@csrf @method('DELETE')

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

@csrf @method('DELETE')

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

@foreach($classes as $class) @endforeach
@endif @if($classes->count() > 0)
@foreach($classes as $class)
{{ $class->date->format('d.m.Y') }} · {{ $class->date->translatedFormat('l') }}
{{ \Carbon\Carbon::parse($class->start_time)->format('H:i') }} – {{ \Carbon\Carbon::parse($class->end_time)->format('H:i') }} @if($class->instructor) {{ $class->instructor->name }} @endif
{{ __('app.participants') }}
{{ $class->current_participants }}/{{ $class->max_participants }}
@if($class->current_participants > 0) @endif @if(auth()->user()->canEditClass($class)) @endif
@csrf

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

@if($class->bookings->where('status', '!=', 'cancelled')->count() > 0)

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

    @foreach($class->bookings->where('status', '!=', 'cancelled') as $booking)
  • {{ substr($booking->user->name, 0, 1) }}
    {{ $booking->user->name }}
    {{ $booking->user->email }}
    @csrf @method('DELETE')
  • @endforeach
@else

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

@endif
@endforeach
@else

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

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

{{ __('app.generate_schedule') }}
@endif
@push('scripts') @endpush @endsection