@extends('layouts.master', [ 'mainId' => 'academy', 'navColour' => 'navbar-light', 'navButtonColour' => 'btn-colour-cauldron', 'navButtonGhost' => 'btn-link']) @section('content') @include('pages.resources.blog.partials.hero') @include('pages.resources.blog.partials.cta-toolkit', [ 'avatar' => [ 'url' => asset('images/resources/blog/jackie-cta.jpg'), 'alt' => 'Jackie' ], 'text' => [ 'full' => '”If you are serious about multiplying your sales to schools you MUST download:', 'full_line_two' => __('resources/blog.full_line_two'), 'abridged' => __('resources/blog.abridged'), ], 'url' => route('free-toolkit'), 'button_text' => 'Multiply Your Sales' ])
@if ($showHeroBlogPost && $latestBlogPost)

New Blog!

{{ $latestBlogPost->title }}

{!! Html::buttonLink('Read Post', route('blog-post', ['slug' => $latestBlogPost->slug]), ['class' => 'btn btn-small btn-colour-ford font-weight-bold']) !!}
@endif

@foreach ($blogPosts->splice(($blogPosts->currentPage() == 1 && !$searchQuery) ? 1 : 0) as $blogPost) @include('pages.resources.blog.partials.blog-post-index', [ 'categories' => $blogPost->categories, 'title' => $blogPost->title, 'summary' => $blogPost->summary, 'text' => $blogPost->text, 'link' => route('blog-post', ['slug' => $blogPost->slug]), 'authorText' => 'by ' . $blogPost->niceAuthor() . ' - ' . $blogPost->published_at->format('F j, Y'), 'imageUrl' => $blogPost->getImageUrl('823x385'), 'imageAlt' => $blogPost->getImageAltTag(), ]) @endforeach
@endsection