@extends('layouts.site') @section('title', $page->meta_title ?: $page->title) @section('meta_description', $page->meta_description ?? '') @section('content')
@if(filled($page->intro))

{{ $page->intro }}

@endif @foreach($page->sections as $section)
@if($loop->first && filled($section->heading))

{{ $section->heading }}

@elseif($loop->first && ! filled($section->heading))

{{ $page->title }}

@elseif(filled($section->heading))

{{ $section->heading }}

@endif @if(filled($section->subheading))

{{ $section->subheading }}

@endif @if(filled($section->body))
{!! $section->body !!}
@endif @if(filled($section->cta_primary_label) && filled($section->cta_primary_url))
{{ $section->cta_primary_label }} @if(filled($section->cta_secondary_label) && filled($section->cta_secondary_url)) {{ $section->cta_secondary_label }} @endif
@endif
@endforeach @if($page->sections->isEmpty())

{{ $page->title }}

@endif
@endsection