Commit a75693f1 authored by Nicolas Widart's avatar Nicolas Widart

Adding the blog pages

parent 1811d46a
@extends('layouts.master')
@section('title')
Blog posts | @parent
@stop
@section('content')
<div class="row">
<div class="col-md-12">
<h1>Blog</h1>
<?php if (isset($posts)): ?>
<ul>
<?php foreach($posts as $post): ?>
<li>
<span class="date">{{ $post->created_at->format('d-m-Y') }}</span>
<h3><a href="{{ URL::route($currentLocale . '.blog.slug', [$post->slug]) }}">{{ $post->title }}</a></h3>
</li>
<div class="clearfix"></div>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
</div>
@stop
@extends('layouts.master')
@section('title')
{{ $post->title }} | @parent
@stop
@section('content')
<div class="row">
<div class="col-lg-12">
<span class="linkBack">
<a href="{{ URL::route($currentLocale . '.blog') }}"><i class="glyphicon glyphicon-chevron-left"></i> Back to post list</a>
</span>
<h1>{{ $post->title }}</h1>
<span class="date">{{ $post->created_at->format('d-m-Y') }}</span>
{!! $post->content !!}
</div>
</div>
@stop
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment