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
| Niveau |
@for ($p = 1; $p <= \App\Config::getData('admin_periode_nb'); $p++)
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]}}
|
@endfor
@for ($l = 1; $l <= \App\Config::getData('admin_level_in_schedule_nb'); $l++)
|
Niveau {{$l}}
|
@for ($p = 1; $p <= \App\Config::getData('admin_periode_nb'); $p++)
@foreach($event->courses as $course)
@if($course->periode == $p && $course->level == $l)
| {{$course->name}} |
{{$course->user->fullname()}} |
| {{$course->ocom}} |
{{$course->location}} |
@endif
@endforeach
|
@endfor
@endfor
@endif