@extends('layouts.app') @section('title') Propositions @endsection @section('page-title') Propositions Gestion @endsection @section('page-title-size') 6 @endsection @section('button-top') Créer une proposition Exporter les propositions @endsection @section('button-top-size') 6 @endsection @section('content')
@if (count($sentPropositions))

Propositions à valider

@foreach ($sentPropositions as $proposition) @php //dd($proposition->guest); @endphp @endforeach
# Consultation Proposition Auteur Gestion
{{ $proposition->id }} {{ $proposition->consultation->title }} {{ $proposition->texte }}{{ isset($proposition->guest) ? $proposition->guest_prenom : $proposition->participant->prenom_nom }} Accepter @include('propositions.refuse_modal', ['proposition' => $proposition])
@endif

Propositions en ligne

@if (count($propositions)) @foreach ($propositions as $proposition) @endforeach @else @endif
# Proposition Consultations Auteur Votes Création Gestion
{{ $proposition->id }} @if ($proposition->type == 2 AND !empty($proposition->media_link)) @elseif ($proposition->type == 3 AND !empty($proposition->media_link)) @endif {{ $proposition->title }} @php $i = 0; @endphp {{-- @foreach($proposition->consultations as $consultation) @if ($i == 2) @php break; @endphp @else {{ str_limit($consultation->title, 40, '...') }}
@endif @php $i++; @endphp @endforeach --}} {{-- @if (count($proposition->consultations) == 1) Une consultation @elseif (count($proposition->consultations) > 1) {{ count($proposition->consultations)}} consultations @endif --}} {{ count($proposition->consultations)}}
{{ str_limit($proposition->auteur, 30, '...') }} {{ $proposition->count_votes_total }} {{ $proposition->created_at->format('YmdHis') }}Le {{ $proposition->created_at->format('d/m/Y \à H\hi') }} @include('propositions.index_gestion', ['proposition' => $proposition])
Aucune proposition
{{--Créer une consultation--}}
@endsection