@extends('frontend.mediknode.layout.mainlayout') @section('content') @component('frontend.mediknode.components.breadcrumb') @slot('title') Demande de Pré-inscription @endslot @slot('li_1') Demande de Pré-inscription @endslot @endcomponent
@csrf @php $is_resident = 0; $is_msp = 0; $is_adherent = $request->isAd; $is_fee = $request->isFee; $isBDC = $request->isBDC; $preferentiel = 0; $showMasterclass = 0; if ($request->mode_exercice === '4') { $is_resident = 1; } if ($request->mode_exercice === '2') { $is_msp = 1; } /* if ($request->is_adherent_1 === '1') { $is_adherent = 0; $is_fee = 1; } if ($request->is_adherent_1 === '0') { $is_adherent = 0; $is_fee = 0; } if ($request->is_adherent_2 === '0') { $is_adherent = 0; $is_fee = 0; } if ($request->is_adherent_2 === '1') { $is_adherent = 1; $is_fee = 0; } if ($request->is_adherent_2 === '2') { $is_adherent = 0; $is_fee = 1; } if ($request->statut == 'isBDC') { $isBDC = 1; } if ($event->has_before_date == 1 && $event->is_before_date_active == 1) { $preferentiel = 1; } else { $preferentiel = 0; } if ($is_adherent == 1 || $is_fee == 1) { $showMasterclass = 1; } */ @endphp {{--

request->region : {{ $request->region }}

--}} {{-- {{ dd($request) }} --}} {{--

request->is_adherent_1 : {!! $request->region->toString() !!}

request->is_adherent_2 : {{ $request->is_adherent_2 }}

--}} {{--

is_msp : {{ $is_msp }}

is_resident : {{ $is_resident }}

is_adherent : {{ $is_adherent }}

is_fee : {{ $is_fee }}

isBDC : {{ $isBDC }}

preferentiel : {{ $preferentiel }}

showMasterclass : {{ $showMasterclass }}

--}}
@foreach ($workshops->groupBy('groupe') as $groupe => $workshopsGroup) @if ($workshopsGroup->first()->header_visible == 1 && $workshopsGroup->first()->visible_fe == 1) @endif @foreach ($workshopsGroup as $index => $workshop) @if ($workshop->visible_fe === 1) @if (!(!$is_fee && $workshop->f2 === 'adhesion2')) @endif @endif @endforeach @if ($workshopsGroup->first()->show_not_participate_choice) @endif @endforeach
{{ $workshopsGroup->first()->label2 }}
id . ']', (isset($participant->workshops) && $participant->workshops->where('workshop_id', $workshop->id)->first()?->workshop_id == $workshop->id) || $workshop->input_pre_checked == 1 || $workshop->f2 == 'adhesion2' ? 'checked' : '') }} value="" class="form-check-input workshop-item {{ $workshop->f2 }} {{ $workshop->capacity - $workshop->participants->count() > 0 ? 'workshop-available' : 'workshop-disabled' }}" type="{{ $workshop->f2 == 'adhesion2' ? 'radio' : $workshop->input }}" name="workshop[{{ $workshop->input == 'radio' ? $workshop->groupe : $workshop->id }}]" id="workshop[{{ $workshop->id }}]" data-id="{{ $workshop->id }}" {{ $workshop->capacity - $workshop->participants->count() > 0 ? '' : 'disabled' }}> @if ($workshop->description)
{!! $workshop->description !!}
@endif
TND
@component('frontend.mediknode.components.scrolltotop') @endcomponent @endsection