@extends('layouts.master') @section('title') Tags @stop @section('content')
@include('partials/_tags')

Tags

@foreach(array_chunk($tags->all(), 3) as $row)
@foreach($row as $tag)

{{ link_to_route('blog.tag', $tag->tag, $tag->tag) }}

@foreach(array_chunk($tag->posts->all(), 3)[0] as $post) {{ link_to_route('blog.show', ucwords($post->title), $post->slug, ['class' => "tagged-post"]) }} @endforeach {{ link_to_route("blog.tag", "More posts marked {$tag->tag}...", $tag->$tag, array('class' => 'tag-link')) }}
@endforeach
@endforeach {{ $tags->links() }}
@stop