PHP Classes

File: resources/views/posts/index.blade.php

Recommend this page to a friend!
  Classes of Nahidul Hasan   Laravel ElasticSearch Application with Docker   resources/views/posts/index.blade.php   Download  
File: resources/views/posts/index.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel ElasticSearch Application with Docker
Setup a Laravel ElasticSearch app using Docker
Author: By
Last change:
Date: 2 years ago
Size: 508 bytes
 

Contents

Class file image Download
@extends('layouts.master')

@section('title','Article list')


@section('content')

    @if(\Route::getFacadeRoot()->current()->uri() == 'search')
        @foreach($response as $post)

            <b>{{ $post['_source']['title'] }}</b>
            <p>{{ $post['_source']['content'] }}</p>

        @endforeach

   @else
        @foreach($posts as $post)
            <b>{{ $post->title }}</b>
            <p>{{ $post->content }}</p>

        @endforeach

        {{ $posts->links() }}
    @endif

@endsection