@if (!$event->is_quick_mode)
is_congressiste == '1')) checked @endif>
category == 'Exposant' ? 'checked' : '') }} required>
category == 'Presse' ? 'checked' : '') }} required>
category == 'ONG' ? 'checked' : '') }} required>
category == 'Staff' ? 'checked' : '') }} required>
category == 'Team' ? 'checked' : '') }} required>
category == 'Manager' ? 'checked' : '') }} required>
@if ($event->has_adhesion)
isAd == '1') checked @endif>
@endif @if ($event->has_resident)
is_resident == 1) checked @endif>
@endif @php $preferentiel = 0; if ($event->has_before_date == 1 && $event->is_before_date_active == 1) { $preferentiel = 1; } else { $preferentiel = 0; } if (isset($participant)) { if ($participant->is_before_date == 1) { $preferentiel = 1; } else { $preferentiel = 0; } } @endphp @if ($event->has_before_date) @can('gestion_change_preferentiel_price')
@endcan @endif @if ($event->has_bdc)
isBDC == 1) checked @endif>
@endif
@foreach ($workshops->groupBy('groupe')->sortKeys() as $groupe => $workshopsGroup) @php $workshopsGroup = $workshopsGroup->sortBy('ordre'); @endphp @if ($workshopsGroup->first()->header_visible == 1) @endif @foreach ($workshopsGroup as $index => $workshop) @if ($workshop->multi_use) @endif @endforeach @if ($workshopsGroup->first()->show_not_participate_choice) @endif @endforeach
{{ $workshopsGroup->first()->label }} Capacité Disponible Pré-inscrits Validés Présents Prix
@php $flag = $workshop->input == 'radio' ? $workshop->groupe : $workshop->id; if ($workshop->id == '311') { $flag = $workshop->id; } $capacityLeft = $workshop->capacity - $workshop->participants_count; $flagDisabled = $capacityLeft <= 0; $flagDisabled = false; // est-ce que le participant a déjà choisi ce workshop ? $isChecked = old( 'workshop.' . $workshop->id, (isset($participant->workshops) && $participant->workshops ->where('workshop_id', $workshop->id) ->first()?->workshop_id == $workshop->id) || $workshop->input_pre_checked == 1, ); @endphp {{-- Le input principal --}} {{-- Si full et déjà sélectionné, on garde une hidden input pour soumettre --}} {{-- @if ($flagDisabled && $isChecked) @endif --}} @if ($workshop->multi_use) @php $totalQty = isset($participant) ? $participant->workshops ->where('workshop_id', $workshop->id) ->count() : 1; if ($totalQty < 1) { $totalQty = 1; } @endphp @endif
{{ $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 {{ $workshop->validated_participants_count }} {{ $workshop->present_and_validated_participants_count }} TND
@if ($paimentModes->isNotEmpty())
@foreach ($paimentModes as $paimentMode)
paiement_mode) && $participant->paiement_mode == $paimentMode ? 'checked' : '') }} value="{{ $paimentMode }}" class="form-check-input" type="radio" name="paiement_mode" id="{{ Str::slug($paimentMode) }}" required>
@endforeach
@endif {{-- ===== Dynamic Summary (bottom, auto-updates on selection change) ===== --}}
@else @endif