@extends('website.layouts.app')

@section('content')

    <!-- Hero and nav -->
    <div class="hero is-cover is-relative is-fullheight is-default is-bold">
    
        <!-- Hero Wallop Slider -->
        <div class="Wallop Wallop--v2 Wallop--fade page_header">
            <div class="Wallop-list">
                <div class="has-background-image" @if($page->cover) data-background="{{ asset('storage/'.$page->cover) }}" @endif>
                    <div class="Wallop-overlay"></div>
                    <div class="Wallop-caption-wrapper">
                        <div class="container">
                            <div class="columns is-gapless is-vcentered" style="width: 100%">
                                <div class="column is-12">
                                    <div class="caption-inner has-text-centered">
                                        <h1>{{ $page->name }}</h1>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="section">
        <div class="container">
            @foreach($sections as $section)
                <div class="page_section">
                    {!! $section->description !!}
                </div>
            @endforeach
        </div>
    </div>

@endsection