47 lines
No EOL
1.8 KiB
PHP
47 lines
No EOL
1.8 KiB
PHP
@extends("layouts.frontend")
|
|
|
|
@section("title", 'Donnez votre avis')
|
|
|
|
@section("content")
|
|
<div class="wrapper">
|
|
@include("front.partials.sideNav")
|
|
<div class="container">
|
|
<div class="container-pageLogo">
|
|
<img src="{{ asset('assets/images/logo_avis.png') }}" alt="logo-avis">
|
|
<h1 class="title">Donnez votre avis</h1>
|
|
</div>
|
|
<div class="container-main">
|
|
<div class="container-main__Sondage">
|
|
<div class="container-main__Sondage__Theme">
|
|
Thème du sondage
|
|
</div>
|
|
<form action="{{ route('fo.avisSubmit', compact('sondage')) }}" method="POST">
|
|
@csrf
|
|
<div class="instructions">
|
|
<h2>{{ $sondage->question }}</h2>
|
|
</div>
|
|
@if($errors->any())
|
|
@include('front.partials.errorForm', ['error' => $errors->all()])
|
|
@endif
|
|
<div class="container__body">
|
|
@csrf
|
|
@switch($sondage->type)
|
|
@case(TypeSondage::radio())
|
|
@include('front.partials.sondage.radio')
|
|
@break
|
|
@case(TypeSondage::checkbox())
|
|
@include('front.partials.sondage.checkbox')
|
|
@break
|
|
@default
|
|
<h2>Type de sondage non géré</h2>
|
|
@endswitch
|
|
</div>
|
|
<div class="formConnexion-bottom">
|
|
<input type="submit" name="submit" value="Envoyer" id="centerBtn" class="btn">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection |