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