mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
86 lines
4.3 KiB
PHP
86 lines
4.3 KiB
PHP
<head>
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
|
</head>
|
|
<body>
|
|
Du <strong>{{$event->date_begin}}</strong> au <strong>{{$event->date_end}}</strong><br>
|
|
<small>{{$event->location}} </small>
|
|
@if ($event->is_mandatory)
|
|
Obligatoire -
|
|
@else
|
|
Optionnel -
|
|
@endif
|
|
@if (is_int($event->type))
|
|
{{$event->type}}
|
|
@else
|
|
{{\App\ComplementaryActivity::find($event->type)->name}}
|
|
@endif
|
|
{!!$event->desc!!}
|
|
@if (!$event->courses->isEmpty())
|
|
<h4 class="title text-center">Horaire</h4>
|
|
<table>
|
|
<thead>
|
|
<th>Niveau</th>
|
|
@for ($p = 1; $p <= \App\Config::getData('admin_periode_nb'); $p++)
|
|
<th>
|
|
Période {{$p}} <small>{{\App\Config::all()->where('name','admin_periode_begin')->first()->data[$p]}} à {{\App\Config::all()->where('name','admin_periode_end')->first()->data[$p]}} </small>
|
|
</th>
|
|
@endfor
|
|
</thead>
|
|
<tbody>
|
|
@for ($l = 1; $l <= \App\Config::getData('admin_level_in_schedule_nb'); $l++)
|
|
<tr>
|
|
<td class="col-md-2 m-3">
|
|
Niveau {{$l}}
|
|
</td>
|
|
@for ($p = 1; $p <= \App\Config::getData('admin_periode_nb'); $p++)
|
|
<td>
|
|
@foreach ($event->courses as $course)
|
|
@if ($course->periode == $p && $course->level == $l)
|
|
{{$course->name}}
|
|
|
|
@if(\App\User::find($course->user_id))
|
|
{{\App\User::find($course->user_id)->fullname()}}
|
|
@else
|
|
Utilisateur Inconnu
|
|
@endif
|
|
{{$course->ocom}}
|
|
{{$course->location}}
|
|
<a>Réservation de materiel</a>
|
|
<table>
|
|
@if (!$course->bookings->isEmpty())
|
|
<thead class="row">
|
|
<th class="col-sm-8 p-2">
|
|
<strong>Item</strong>
|
|
</th>
|
|
<th class="col-sm-4 text-right p-2">
|
|
<strong>Quantité</strong>
|
|
</th>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($course->bookings as $booking)
|
|
<tr>
|
|
<td class="col-sm-8 p-2">
|
|
<a href="/admin/item/{{$booking->item->id}}">{{$booking->item->name}}</a>
|
|
</td>
|
|
<td class="col-sm-4 text-right p-2">
|
|
{{$booking->amount}}
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
@else
|
|
<p class="text-center">
|
|
<strong>Aucune réservation</strong>
|
|
</p>
|
|
@endif
|
|
</table>
|
|
@endif
|
|
@endforeach
|
|
@endfor
|
|
@endfor
|
|
</table>
|
|
@endif
|
|
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
|
</body> |