@extends('layouts.app') @section('title') Rechercher @endsection @section('page-title') Rechercher « {{ $search }} » @endsection @section('button-top') @endsection @section('content')
@if (count($consultations) == 0 && count($propositions) == 0 && count($tags) == 0)

Aucun résultat pour « {{ $search }} »

{!! Form::open(array('route' => 'rechercher', 'method'=>'GET', 'class' => 'mT-40', 'style' => 'text-align:center;')) !!}
{!! Form::close() !!}
@else @if (count($consultations) != 0)

Consultations

@foreach ($consultations as $consultation) @endforeach
# Titre Description Gestion
{{ $consultation->id }} {!! $consultation->title !!} {!! $consultation->description !!} @include('consultations.index_gestion', ['consultation' => $consultation])
@endif @if (count($propositions) != 0)

Propositions

@foreach ($propositions as $proposition) @endforeach
# Titre Description Gestion
{{ $proposition->id }} {!! $proposition->title !!} {!! $proposition->description !!} @include('consultations.propositions.index_gestion', ['proposition' => $proposition])
@endif @if (count($tags) != 0)

Tags

@foreach ($tags as $tag) @endforeach
# Nom Consultations
{{ $tag->id }} {!! $tag->name !!} @foreach ($tag->consultations as $consultation) {!! $consultation->title !!}@php if (!$loop->last) { echo ', '; } @endphp @endforeach
@endif @endif
@endsection