@extends('Terminy::layouts.integrated')

@push('styles')
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fullcalendar@5.5.0/main.css"/>
@endpush

@push('scripts')
    <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/fullcalendar@5.5.0/main.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/fullcalendar@5.5.0/locales/sk.js"></script>

    {!! $calendar->script() !!}
@endpush

@section('content')
    @parent
    <section class="bg-white space-sm">
        <div class="container">
            <div class="row justify-content-center">
                <div class="col">
                    <h1 class="h2 mb-2">Zoznam udalostí</h1>
                    <span>Zoznam všetkých plánovaných udalostí</span>
                    @include('flash::message')
                </div>
            </div>
        </div>
    </section>

    <section>
        <div class="container">
            <div class="row">
                <div class="col-12">
                    <div class="alert alert-primary text-small">
                        <i class="icon-info mr-2"></i>
                        Nezobrazujú sa udalosti staršie ako dva mesiace pred začiatkom aktuálneho mesiaca.
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col">
                    {!! $calendar->calendar() !!}
                </div>
            </div>
        </div>
    </section>
@endsection
