@php //dd($errors); @endphp
{!! displaySelect([ 'name' => 'type', 'label' => 'Type de proposition', 'items' => Config::get('constants.PROPOSITION_TYPE_STRING'), 'errors' => $errors, 'required' => true ]) !!} @if (isset($proposition) AND $proposition->type == 2)
Image actuelle
@endif {!! displayInputFile([ 'name' => 'image_file', 'label' => 'Fichier image', 'class' => 'form-image-file', 'errors' => $errors, 'required' => 'required', 'display' => false ]) !!} {!! displayInputV2([ 'name' => 'media_link', 'label' => 'URL de la vidéo', 'class' => 'form-video-link', 'placeholder' => 'Lien vers la page de la vidéo', 'errors' => $errors, 'required' => 'required', 'display' => false, 'help' => "Champ obligatoire. Plateformes acceptées : YouTube et DailyMotion." ]) !!} @if (Auth::user()->can('always edit proposition') OR !isset($proposition) OR count($proposition->all_votes) == 0) {!! displayTextarea([ 'name' => 'title', 'label' => 'Texte', 'errors' => $errors, 'required' => 'required', 'placeholder' => 'Texte de la proposition', 'max_size' => 160, 'rows' => 3 ]) !!} @endif {!! displayTextarea([ 'label' => 'Description', 'name' => 'description', 'placeholder' => 'Description de la proposition', 'required' => false, 'errors' => $errors, 'max_size' => 500, 'rows' => 3 ]) !!} {{-- {!! displayCheckboxes([ 'general_label' => 'Consultation(s) pour laquelle(lesquelles) proposer cette proposition', 'general_name' => 'consultation_access', 'required' => false, 'is_inline' => false, 'errors' => $errors, 'items' => $consultations, 'default' => $default //'division' => '2:6:4', ]) !!} --}}

Consultations existantes

@foreach ($consultations as $consultation) @endforeach
# Consultation Type Nombre de propositions
{!! displayCheckbox([ 'label' => '', 'name' => 'consultation_access[]', 'value' => $consultation->id, 'errors' => $errors, 'default' => $default, 'checkbox_only' => true, ]) !!} {{ str_limit($consultation->title) }} {{ Config::get('constants.CONSULT_TYPE_STRING')[$consultation->type] }} {{ count($consultation->propositions) }}