@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 @foreach ($request->workshop as $item) @if ($item) @endif @endforeach
@php use App\Models\Workshop; $formationTiers = [ 1 => 40, 2 => 80, 3 => 100, 4 => 130, 5 => 150, ]; $total = 0; $formations = []; $inscription = null; $others = []; foreach ($request->workshop as $item) { if (!$item) { continue; } $data = explode('|', $item); $workshopId = $data[0]; $workshop = Workshop::getById($workshopId); $price = $data[1]; if ($workshop->f2 === 'formation') { $formations[] = [ 'workshop' => $workshop, 'price' => $price, ]; } elseif ($workshop->f2 === 'inscription') { $inscription = [ 'workshop' => $workshop, 'price' => $price, ]; $total += $price; } else { $others[] = [ 'workshop' => $workshop, 'price' => $price, ]; $total += $price; } } $formationCount = count($formations); $formationTotal = $formationTiers[$formationCount] ?? $formationCount * 40; $total += $formationTotal; @endphp @if ($inscription) @endif @if ($formationCount > 0) @endif @foreach ($others as $o) @endforeach
Désignation Prix
{{ $inscription['workshop']->titre }} {{ $inscription['price'] }} TND
Ateliers ({{ $formationCount }})
    @foreach ($formations as $f)
  • {{ $f['workshop']->titre }}
  • @endforeach
{{ $formationTotal }} TND
{{ $o['workshop']->titre }} {{ $o['price'] }} TND
Total {{ $total }} TND
@foreach ($paimentModes as $key => $paimentMode) @if ($request->isBDC == 1 && $paimentMode == 'Bon de commande')
paiement_mode) && $participant->paiement_mode == $paimentMode ? 'checked' : '') }} value="{{ $paimentMode }}" class="form-check-input" type="radio" name="paiement_mode" id="paiement-mode-{{ $key }}" data-key="{{ $key }}" required> @if ($loop->last)
Choisir votre mode de paiement
@endif
@elseif ($request->isBDC == 0 && $paimentMode != 'Bon de commande')
paiement_mode) && $participant->paiement_mode == $paimentMode ? 'checked' : '') }} value="{{ $paimentMode }}" class="form-check-input" type="radio" name="paiement_mode" id="paiement-mode-{{ $key }}" data-key="{{ $key }}" required> @if ($loop->last)
Choisir votre mode de paiement
@endif
@endif @endforeach
{{--

Voici les coordonnées bancaire :

  • Banque : BIAT
  • Agence : MONASTIR II
  • Titulaire du compte : STMGF
  • RIB : 08 033 0120720037608 77
--}}
@component('frontend.mediknode.components.scrolltotop') @endcomponent @endsection