PHP Classes

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

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   Heloise Laravel Blog Package   resources/views/post/index.blade.php   Download  
File: resources/views/post/index.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Heloise Laravel Blog Package
Simple blog system with comments and RSS feed
Author: By
Last change:
Date: 7 months ago
Size: 1,381 bytes
 

Contents

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

@section('content')
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="margin">
                    <div class="collapsible">
                        @forelse($posts as $post)
                            <article>
                                <h3 class="text-center"><a class="article-title" href="{{ route('post.show', $post->id) }}">{{ $post->title }}</a></h3>
                                <div class="collapsible-body text-center">{{ str_limit($post->body, 400, '...') }}</div>
                            </article>
                            <hr />
                            @empty
                                @auth
                                    <h4 class="text-center">
                                        ?<a href="{{ route('post.create') }}">Add A Post</a>?
                                    </h4>
                                @endauth
                                @guest
                                    <h4 class="text-center">
                                        Oops! Nothing for the moment. Come back soon!
                                    </h4>
                                @endguest
                        @endforelse
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection