@extends('frontend.layouts.main', array('body_class' => 'landing-page'))

@section('content')
    @include('frontend.templates.blocks.landing-hero', ['blockData' => $data])

    @if ($object->content)
        @include('frontend.templates.blocks.landing-content', ['blockData' => $object, 'isPageContent' => true])
    @endif
    @if(!empty($data->landingPageTiles) && $data->landingPageTiles->count() > 0)
        @foreach($sections as $section)
            @if($section->type === 'iframe')
                @include('frontend.templates.blocks.landing-iframe', ['blockData' => $section->tile])
            @elseif($section->type === 'content')
                @include('frontend.templates.blocks.landing-content', ['blockData' => $section->tile, 'isPageContent' => false])
            @elseif($section->type === 'gallery')
                @include('frontend.templates.blocks.landing-gallery', ['blockData' => $section])
            @else
                @include('frontend.templates.blocks.landing-tiles', ['blockData' => $section])
            @endif
        @endforeach
    @endif
    <div class="clear"></div>
@stop
