@extends('admin/layouts/default') {{-- Page title --}} @section('title') @lang('blog/title.blogdetail') @parent @stop {{-- page level styles --}} @section('header_styles') @stop {{-- Page content --}} @section('content')

{!! $blog->title!!}

@if(!empty($blog->image)) Image @else Image @endif

{!! $blog->created_at!!}

{!! $blog->content !!}

Tags: {!! $blog->tagList !!}


@lang('blog/title.comments')

@if(!empty($comments))
    @foreach($comments as $comment)
  • {!! $comment->name !!}

    {!! $comment->comment!!}

    {!! $comment->created_at!!}

  • @endforeach
@endif

@lang('blog/title.leavecomment')

{!! Form::open(['url' => URL::to('admin/blog/'.$blog->id.'/storecomment'), 'method' => 'post', 'class' => 'bf', 'files'=> true]) !!}
{!! Form::text('name', null, ['class' => 'form-control input-lg','required' => 'required', 'placeholder'=>trans('blog/form.ph-name')]) !!} {{ $errors->first('name', ':message') }}
{!! Form::text('email', null, ['class' => 'form-control input-lg','required' => 'required', 'placeholder'=>trans('blog/form.ph-email')]) !!} {{ $errors->first('email', ':message') }}
{!! Form::text('website', null, ['class' => 'form-control input-lg', 'placeholder'=>trans('blog/form.ph-website')]) !!} {{ $errors->first('website', ':message') }}
{!! Form::textarea('comment', null, ['class' => 'form-control input-lg no-resize','required' => 'required','id'=>'comment', 'style'=>'height: 200px', 'placeholder'=>trans('blog/form.ph-comment')]) !!} {{ $errors->first('comment', ':message') }}
{!! Form::close() !!}
@stop @section('footer_scripts') @stop