@extends('backend.layouts.master') @section('title') Sessions @endsection @section('body') @endsection @section('content') {{-- @component('components.breadcrumb') @slot('page_title') Sessions @endslot @slot('subtitle') Sessions @endslot @endcomponent --}}
Sessions
@foreach ($workshops->groupBy('groupe')->sortBy(fn($group) => $group->first()->ordre) as $groupe => $workshopsGroup) @php $workshopsGroup = $workshopsGroup->sortBy('ordre'); @endphp @if ($workshopsGroup->first()->header_visible == 1) @endif @foreach ($workshopsGroup as $index => $workshop) @endforeach @endforeach
{{ $workshopsGroup->first()->label }} Capacité Disponible Pré-inscrits Validés Présents
{{ $workshop->titre }} {{ $workshop->capacity }} @if ($workshop->capacity - $workshop->participants->count() > 0) {{ $workshop->capacity - $workshop->participants->count() }} @else 0 @endif @if ($workshop->participants->count() <= $workshop->capacity) {{ $workshop->participants->count() }} @else {{ $workshop->participants->count() }} @endif @if ($workshop->participants->whereNotNull('code')->where('code', '!=', '')->count() <= $workshop->capacity) {{ $workshop->participants->whereNotNull('code')->where('code', '!=', '')->count() }} @else {{ $workshop->participants->whereNotNull('code')->where('code', '!=', '')->count() }} @endif {{ $workshop->presentAndValidatedParticipants->count() }}
@endsection @section('scripts') @endsection