@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')
# | Consultation | Proposition | Auteur | Gestion |
---|---|---|---|---|
{{ $proposition->id }} | {{ $proposition->consultation->title }} | {{ $proposition->texte }} | @php //dd($proposition->guest); @endphp{{ isset($proposition->guest) ? $proposition->guest_prenom : $proposition->participant->prenom_nom }} | Accepter @include('propositions.refuse_modal', ['proposition' => $proposition]) |
# | 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--}} |