@extends('layouts.app') @section('title') Voir une proposition @endsection @section('page-title') Propositions Voir : {{ $proposition->title }} @endsection @section('button-top') {{-- @if (Auth::user()->can('always edit proposition') OR count($proposition->all_votes) == 0) --}} {{-- @endif --}} @if (count($proposition->consultations)) @else @endif @include('propositions.delete_modal', ['consultation' => $proposition]) @endsection @section('content')
{{ $consultation->long_title }} | {{ count($proposition->votes_choix) }} | {{ count($proposition->votes()->whereConsultationId($consultation->id)->get()) }} / {{count($consultation->votes) }} |
# | Consultation | {{--Propositions | --}}Type | Votes | Statut | {{--Début du vote | Fin du vote | --}}Gestion |
---|---|---|---|---|---|---|---|---|
{{ $consultation->id }} | {{ $consultation->long_title }} | {{--{{ count($consultation->propositions) }} | --}}{{ Config::get('constants.CONSULT_TYPE_STRING')[$consultation->type] }} | {{ count($consultation->votes) }} | {!! $consultation->status == Config::get('constants.CONSULT_STATUS.PUBLISH') ? ' Publié' : ' Brouillon' !!} | {{--{{ $consultation->date_debut->format('YmdHis') }}{{ $consultation->str_date_debut }} | @if ($consultation->date_fin) {{ $consultation->date_fin->format('YmdHis') }}{{ $consultation->str_date_fin }} @else - @endif | --}}@include('consultations.index_gestion', ['consultation' => $consultation]) |