@extends('layouts.site')

@section('meta_title', $page->getMetaTitle() ?? '')
@section('meta_description', $page->getMetaDescription() ?? '')
@section('meta_keywords', $page->getMetaKeywords() ?? '')

@section('content_header')
    @include('partials._components._heading', ['heading' => $page->getHeader()])
@endsection

@section('content')
    <section class="site-main-section">
        <div class="site-container">
            <div class="content-rich">
                @if (View::exists('cms.pages.' . $page->getCode()))
                    @include('cms.pages.' . $page->getCode())
                @else
                    {!! $page->getContent() !!}
                @endif
            </div>
        </div>
    </section>
@endsection

@section('content_footer')
    @include('partials._callouts._program')
@endsection
