@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 --}}| {{ $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() }} |