@extends('layouts.admin.main')

@section('content')
    <div class="col-sm-12 col-lg-12">
        <div class="card">
            <div class="card-body pb-0">
                <div id="fullCalendar"></div>
            </div>
        </div>
    </div>
    <div class="modal fade" id="scrollmodal" tabindex="-1" role="dialog" aria-labelledby="scrollmodalLabel" style="display: none;" aria-hidden="true">
        <div class="modal-dialog modal-lg" style="max-width:1500px !important;" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="scrollmodalLabel">Scrolling Long Content Modal</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">×</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="loader">
                        <img class="loader-bg" src="/images/leaf_of_canada.png"></img>    
                        <div class="loader-spinner"></div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
                    <button type="button" class="btn btn-primary">Confirm</button>
                </div>
            </div>
        </div>
    </div>
@endsection

@section('breadcrumb')
    <div class="breadcrumbs">
        <div class="col-sm-4">
            <div class="page-header float-left">
                <div class="page-title">
                    <h1>{{ trans('calendar.admin_page_title')}}</h1>
                </div>
            </div>
        </div>
        <div class="col-sm-8">
            <div class="page-header float-right">
                <div class="page-title">
                    <ol class="breadcrumb text-right">
                        <li class="active">{{ trans('calendar.admin_breadcrumb')}}</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
@endsection

@section('custom_scripts')
    <script src='/assets/fullcalendar/core/main.js'></script>
    <script src='/assets/fullcalendar/daygrid/main.js'></script>
    <script src='/assets/fullcalendar/interaction/main.js'></script>
    <script src="/js/calendar.js"></script>
    <div class="log"></div>
   <script>
       initFullCalendar(api_token)
    </script>
    <div class="modal fade" id="schedulemodal" tabindex="-1" role="dialog" aria-labelledby="schedulemodal" aria-hidden="true">
            <div class="modal-dialog w-100 modal-lg mx-2 mx-lg-auto" role="document">
                <div class="modal-content" id="modal-content">
                </div>
            </div>
        </div>
@endsection