@extends('layouts/default') {{-- Page title --}} @section('title') {{ $blog->title }} @parent @stop {{-- page level styles --}} @section('header_styles') @stop {{-- breadcrumb --}} @section('top')
@stop {{-- Page content --}} @section('content')
@if ($blog->image) Image @endif
{{ $blog->author->first_name . ' ' . $blog->author->last_name }} / {{ $blog->created_at->diffForHumans() }} {{ $blog->comments->count() }} comments

{{ $blog->title }}

{!! $blog->content !!}
@if (!empty($blog->summernote_image)) Image @endif

Tags: @forelse($blog->tags as $tag) # {{ $tag }} @empty No Tags @endforelse

Comments ( {{ $blog->comments->count() }} )


    @foreach ($blog->comments as $comment)
    @php $emailHash = md5(strtolower(trim($comment->email))); $gravatarUrl = "https://api.dicebear.com/9.x/avataaars/svg?seed=" . $emailHash; @endphp
  • Gravatar
  • {{ $comment->name }}

    {{ $comment->comment }}

    {!! $comment->created_at !!}


    @endforeach

Leave a Comment

{!! Form::open([ 'url' => URL::to('blogitem/' . $blog->id . '/comment'), 'method' => 'post', 'class' => 'bf', 'files' => true, ]) !!}
{!! Form::text('name', null, [ 'class' => 'form-control input-lg', 'required' => 'required', 'placeholder' => 'Your name', ]) !!} {{ $errors->first('name', ':message') }}
{!! Form::text('email', null, [ 'class' => 'form-control input-lg', 'required' => 'required', 'placeholder' => 'Your email', ]) !!} {{ $errors->first('email', ':message') }}
{!! Form::text('website', null, ['class' => 'form-control input-lg', 'placeholder' => 'Your website']) !!} {{ $errors->first('website', ':message') }}
{!! Form::textarea('comment', null, [ 'class' => 'form-control input-lg h200', 'required' => 'required', 'placeholder' => 'Your comment', ]) !!} {{ $errors->first('comment', ':message') }}
{!! Form::close() !!}

Categories


Tags

    @forelse ($tags as $tag) {{ $tag }} @empty No tags yet @endforelse

Recent Posts

    @forelse ($recent as $recent)
  • @if ($recent->image) riot @else riot @endif
    {{ $recent->title }}   {{ $recent->created_at->diffForHumans() }}
  • @empty

    No Posts Exists!

    @endforelse
@stop