@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->input('workshop', []) as $item) @if ($item) @endif @endforeach
@php use App\Models\Workshop; $total = 0; $inscriptions = []; $others = []; foreach ($request->input('workshop', []) as $item) { if (!$item) { continue; } $data = explode('|', $item); $workshop = Workshop::getById($data[0]); if (!$workshop) { continue; } $price = $data[1]; if ($workshop->f2 === 'inscription') { $inscriptions[] = [ 'workshop' => $workshop, 'price' => $price, ]; } else { $others[] = [ 'workshop' => $workshop, 'price' => $price, ]; } $total += $price; } @endphp @foreach ($inscriptions as $i) @endforeach @foreach ($others as $o) @endforeach
Désignation Prix
{{ $i['workshop']->titre }} {{ $i['price'] }} TND
{{ $o['workshop']->titre }} {{ $o['price'] }} TND
Total {{ $total }} TND
@if ($total > 0)
@foreach ($paimentModes as $key => $paimentMode)
@if ($loop->last)
Choisir votre mode de paiement
@endif
@endforeach
@else @endif
@component('frontend.mediknode.components.scrolltotop') @endcomponent @endsection