@if (true && isset($participant) && $participant->is_congressiste == '1' && $participant->workshops->count() > 0)
@foreach ($participant->workshops as $workshop) @if ($workshop->workshop?->visible_be) @endif @endforeach
Désignation Prix
{{ $workshop->workshop?->titre }} {{ $workshop->price }} TND
Total {{ $participant->total_price }} TND
Moyen de paiement {{ $participant->paiement_mode }}
@endif @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')->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 @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 --}}
{{ $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->participants->whereNotNull('code')->where('code', '!=', '')->count() }} {{ $workshop->presentAndValidatedParticipants->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
@else @endif