@extends('layouts.app') @section('content')
@if (session('success'))
{{ session('success') }}
@endif @if (session('alert'))
{{ session('alert') }}
@endif

{{ $domaine->libelle }}

@if ($domaine->id != "30") @elseif ($domaine->id == "30") @endif {{--Affichage différent pour le carrefour des possibles--}} @if ($domaine->id != "30") @endif @if ($domaine->id != "30") @elseif ($domaine->id == "30") @endif @foreach ($ateliers as $stage) @if ($stage->date >= $todayDate) {{--Affichage différent pour le carrefour des possibles--}} @if ($domaine->id != "30") @endif
Public LibelléObjectifsObjectifsIntervenantsDate / LieuHeure / Lieuaction
{{$stage->public}} {{$stage->libelle}} {!! nl2br(e($stage->objectifs)) !!} @foreach ($stage->interv as $intervenant ) @foreach ($users as $user) @if ($user->id == $intervenant->user_id) {{$user->firstname}} {{$user->name}}
@endif @endforeach @endforeach
{{--Affichage différent pour le carrefour des possibles--}} @if ($domaine->id != "30") {{$stage->date}} @elseif ($domaine->id == "30") {{$stage->heure}} @endif {{--Affichage différent pour le carrefour des possibles--}} @if ($domaine->id != "30") {{ucfirst(Carbon::parse($stage->date)->locale('fr_FR')->isoFormat('dddd LL'))}}

@endif {{--Modification de la couleur de l'heure pour le carrefour des possibles--}} @if ($stage->heure == "09h10 - 09h50" || $stage->heure == "10h00 - 10h40" || $stage->heure == "10h50 - 11h30" || $stage->heure == "11h40 - 12h20") @if ($stage->heure == "09h10 - 09h50") {{$stage->heure}} @endif @if ($stage->heure == "10h00 - 10h40") {{$stage->heure}} @endif @if ($stage->heure == "10h50 - 11h30") {{$stage->heure}} @endif @if ($stage->heure == "11h40 - 12h20") {{$stage->heure}} @endif @else {{$stage->heure}} @endif

@if($stage->lienvisio == null) {{$stage->lieu}}@endif @if($stage->lienvisio != null) lienvisio}} target="_blank">{{$stage->lieu}}
@endif
@if ($stage->annule == 0) {{--Afficher bouton d'inscription si < nb_max ou si =! 0--}} @if ($stage->nombre < $stage->nb_max || $stage->nb_max == 0) {{--Afficher bouton d'inscription si > délai--}} @if ($nbJours > $stage->delai_inscriptions) @if ($stage->is_inscrit == 1) Désinscription @elseif ($stage->is_inscrit == 0) Inscription @endif @else Inscriptions terminées @endif @else Atelier complet @endif @else Atelier annulé @endif