Du {{$event->date_begin}} au {{$event->date_end}}
{{$event->location}} @if ($event->is_mandatory) (Activité Obligatoire) @else (Activité Optionnel) @endif
@if (is_int($event->type)) {{$event->type}} @else {{\App\ComplementaryActivity::find($event->type)->name}} @endif
{!!$event->desc!!}
@if (!$event->courses->isEmpty())

Horaire

@for ($p = 1; $p <= \App\Config::getData('admin_periode_nb'); $p++) @endfor @for ($l = 1; $l <= \App\Config::getData('admin_level_in_schedule_nb'); $l++) @for ($p = 1; $p <= \App\Config::getData('admin_periode_nb'); $p++) @endfor @endfor
Niveau Période {{$p}} {{\App\Config::all()->where('name','admin_periode_begin')->first()->data[$p]}} à {{\App\Config::all()->where('name','admin_periode_end')->first()->data[$p]}}
Niveau {{$l}} @foreach($event->courses as $course) @if($course->periode == $p && $course->level == $l)
{{$course->name}} @if(is_numeric($course->user_id)){{$course->user->fullname()}}@else{{$course->user_id}}@endif
{{$course->ocom}} {{$course->location}}
@endif @endforeach
@endif