<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">

<head>
    @include('layouts.partial.admin.head')
    @yield('extra-css');
</head>

<body>
    <div id="app">

        <!-- Left Side Of Navbar -->


        <!-- Right Side Of Navbar -->

        <!-- Authentication Links -->
        @guest
            {{-- @if (Route::has('login'))
                                <li class="nav-item">
                                    <a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
            </li>
        @endif

        @if(Route::has('register'))
            <li class="nav-item">
                <a class="nav-link"
                    href="{{ route('register') }}">{{ __('Register') }}</a>
            </li>
        @endif--}}
    @else
        @include('layouts.partial.admin.navbar')
        @include('layouts.partial.admin.sidebar')

        {{-- <li class="nav-item dropdown">
                                <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
                                    {{ Auth::user()->name }}
        </a>

        <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
            <a class="dropdown-item" href="{{ route('logout') }}" onclick="event.preventDefault();
                                                     document.getElementById('logout-form').submit();">
                {{ __('Logout') }}
            </a>

            <form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none">
                @csrf
            </form>
        </div>
        </li> --}}
        @endguest





        <main class="py-4">
            @yield('content')
        </main>

        @include('layouts.partial.admin.footer')

    </div>
    <!-- ########## END: MAIN PANEL ########## -->



    <!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
        integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous">
    </script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
        integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous">
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.nicescroll/3.7.6/jquery.nicescroll.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
    <script src="{{ asset('../admin/js/stisla.js') }}"></script>


    <!-- JS Libraies -->
    <!-- <script src="../node_modules/jquery-sparkline/jquery.sparkline.min.js"></script>
  <script src="../node_modules/chart.js/dist/Chart.min.js"></script>
  <script src="../node_modules/owl.carousel/dist/owl.carousel.min.js"></script>
  <script src="../node_modules/summernote/dist/summernote-bs4.js"></script>
  <script src="../node_modules/chocolat/dist/js/jquery.chocolat.min.js"></script> -->

    <!-- Template JS File -->
    <script src="{{ asset('../admin/js/scripts.js') }}"></script>
    <script src="{{ asset('../admin/js/custom.js') }}"></script>

    <!-- Page Specific JS File -->
    <!-- <script src="{{ asset('../admin/js/page/index.js') }}"></script> -->
    <!-- <script src="{{ asset('../admin/js/page/bootstrap-modal.js') }}"></script> -->

    <!-- Page Specific JS File -->

    <script src="https://cdn.datatables.net/1.10.25/js/jquery.dataTables.min.js"></script>
    <script src="https://cdn.datatables.net/1.10.25/js/dataTables.bootstrap4.min.js"></script>
    <script src="https://cdn.datatables.net/buttons/1.7.1/js/dataTables.buttons.min.js"></script>
    <script src="https://cdn.datatables.net/buttons/1.7.1/js/buttons.bootstrap4.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script>
    <script src="https://cdn.datatables.net/buttons/1.7.1/js/buttons.html5.min.js"></script>
    <script src="https://cdn.datatables.net/buttons/1.7.1/js/buttons.print.min.js"></script>
    <script src="https://cdn.datatables.net/buttons/1.7.1/js/buttons.colVis.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>

    @yield('extra-js');



    <script>
        $(document).ready(function () {
            var table = $("#example").DataTable({
                lengthChange: false,
                // buttons: ["copy", "excel", "pdf", "print"],
            });

            table
                .buttons()
                .container()
                .appendTo("#example_wrapper .col-md-6:eq(0)");
        });

    </script>

    <!-- CKEDITOR -->
    <script src="https://cdn.ckeditor.com/4.22.1/standard/ckeditor.js"></script>

    <script type="text/javascript">
        CKEDITOR.replace('ck_editor_text', { // Define the toolbar groups as it is a more accessible solution.
            filebrowserUploadUrl: "{{ route('ckeditor.upload', ['_token' => csrf_token() ]) }}",
            filebrowserUploadMethod: 'form',
            // toolbarGroups: [{
            //         name: 'document',
            //         groups: ['mode', 'document', 'doctools']
            //     },
            //     {
            //         name: 'clipboard',
            //         groups: ['clipboard', 'undo']
            //     },
            //     {
            //         name: 'editing',
            //         groups: ['find', 'selection', 'spellchecker', 'editing']
            //     },
            //     {
            //         name: 'forms',
            //         groups: ['forms']
            //     },
            //     '/',
            //     {
            //         name: 'basicstyles',
            //         groups: ['basicstyles', 'cleanup']
            //     },
            //     {
            //         name: 'paragraph',
            //         groups: ['list', 'indent', 'blocks', 'align', 'bidi', 'paragraph']
            //     },
            //     {
            //         name: 'links',
            //         groups: ['links']
            //     },
            //     {
            //         name: 'insert',
            //         groups: ['insert']
            //     },
            //     '/',
            //     {
            //         name: 'styles',
            //         groups: ['styles']
            //     },
            //     {
            //         name: 'colors',
            //         groups: ['colors']
            //     },
            //     {
            //         name: 'tools',
            //         groups: ['tools']
            //     },
            //     {
            //         name: 'others',
            //         groups: ['others']
            //     },
            //     {
            //         name: 'about',
            //         groups: ['about']
            //     }
            // ],

            // removeButtons: 'Save,NewPage,Preview,ExportPdf,Print,PasteText,PasteFromWord,Redo,Cut,Copy,Paste,Undo,Find,Replace,SelectAll,Scayt,Checkbox,Form,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,CopyFormatting,RemoveFormat,Indent,Outdent,BidiLtr,BidiRtl,Language,Anchor,Table,Iframe,PageBreak,SpecialChar,Smiley,HorizontalRule,Maximize,ShowBlocks,About,Blockquote',
        });

    </script>

<script type="text/javascript">
    CKEDITOR.replace('ck_editor_text_bn', { // Define the toolbar groups as it is a more accessible solution.
        filebrowserUploadUrl: "{{ route('ckeditor.upload', ['_token' => csrf_token() ]) }}",
        filebrowserUploadMethod: 'form',
        // toolbarGroups: [{
        //         name: 'document',
        //         groups: ['mode', 'document', 'doctools']
        //     },
        //     {
        //         name: 'clipboard',
        //         groups: ['clipboard', 'undo']
        //     },
        //     {
        //         name: 'editing',
        //         groups: ['find', 'selection', 'spellchecker', 'editing']
        //     },
        //     {
        //         name: 'forms',
        //         groups: ['forms']
        //     },
        //     '/',
        //     {
        //         name: 'basicstyles',
        //         groups: ['basicstyles', 'cleanup']
        //     },
        //     {
        //         name: 'paragraph',
        //         groups: ['list', 'indent', 'blocks', 'align', 'bidi', 'paragraph']
        //     },
        //     {
        //         name: 'links',
        //         groups: ['links']
        //     },
        //     {
        //         name: 'insert',
        //         groups: ['insert']
        //     },
        //     '/',
        //     {
        //         name: 'styles',
        //         groups: ['styles']
        //     },
        //     {
        //         name: 'colors',
        //         groups: ['colors']
        //     },
        //     {
        //         name: 'tools',
        //         groups: ['tools']
        //     },
        //     {
        //         name: 'others',
        //         groups: ['others']
        //     },
        //     {
        //         name: 'about',
        //         groups: ['about']
        //     }
        // ],

        // removeButtons: 'Save,NewPage,Preview,ExportPdf,Print,PasteText,PasteFromWord,Redo,Cut,Copy,Paste,Undo,Find,Replace,SelectAll,Scayt,Checkbox,Form,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,CopyFormatting,RemoveFormat,Indent,Outdent,BidiLtr,BidiRtl,Language,Anchor,Table,Iframe,PageBreak,SpecialChar,Smiley,HorizontalRule,Maximize,ShowBlocks,About,Blockquote',
    });

</script>



    {{-- <script type="text/javascript">
    CKEDITOR.replace('ck_editor_about_us', { // Define the toolbar groups as it is a more accessible solution.
        filebrowserUploadUrl: "{{ route('ckeditor.upload', ['_token' => csrf_token() ]) }}",
    filebrowserUploadMethod: 'form',
    // toolbarGroups: [{
    // name: 'document',
    // groups: ['mode', 'document', 'doctools']
    // },
    // {
    // name: 'clipboard',
    // groups: ['clipboard', 'undo']
    // },
    // {
    // name: 'editing',
    // groups: ['find', 'selection', 'spellchecker', 'editing']
    // },
    // {
    // name: 'forms',
    // groups: ['forms']
    // },
    // '/',
    // {
    // name: 'basicstyles',
    // groups: ['basicstyles', 'cleanup']
    // },
    // {
    // name: 'paragraph',
    // groups: ['list', 'indent', 'blocks', 'align', 'bidi', 'paragraph']
    // },
    // {
    // name: 'links',
    // groups: ['links']
    // },
    // {
    // name: 'insert',
    // groups: ['insert']
    // },
    // '/',
    // {
    // name: 'styles',
    // groups: ['styles']
    // },
    // {
    // name: 'colors',
    // groups: ['colors']
    // },
    // {
    // name: 'tools',
    // groups: ['tools']
    // },
    // {
    // name: 'others',
    // groups: ['others']
    // },
    // {
    // name: 'about',
    // groups: ['about']
    // }
    // ],

    removeButtons:
    'Save,NewPage,Preview,ExportPdf,Print,PasteText,PasteFromWord,Redo,Cut,Copy,Paste,Undo,Find,Replace,SelectAll,Scayt,Checkbox,Form,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,CopyFormatting,RemoveFormat,Indent,Outdent,BidiLtr,BidiRtl,Language,Anchor,Table,Iframe,PageBreak,SpecialChar,Smiley,HorizontalRule,Maximize,ShowBlocks,About,Blockquote',
    });
    </script> --}}

    <script type="text/javascript">
        CKEDITOR.replace('ck_editor_owner_message', {
            filebrowserUploadUrl: "{{ route('ckeditor.upload', ['_token' => csrf_token() ]) }}",
            filebrowserUploadMethod: 'form',
            toolbar: [{
                name: 'styles',
                items: ['Bold', 'Italic', 'Underline']
            }],
            removeButtons: 'Save,NewPage,Preview,ExportPdf,Print,PasteText,PasteFromWord,Redo,Cut,Copy,Paste,Undo,Find,Replace,SelectAll,Scayt,Checkbox,Form,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,CopyFormatting,RemoveFormat,Indent,Outdent,BidiLtr,BidiRtl,Language,Anchor,Table,Iframe,PageBreak,SpecialChar,Smiley,HorizontalRule,Maximize,ShowBlocks,About,Blockquote',
        });

    </script>

<script type="text/javascript">
    CKEDITOR.replace('ck_editor_about_us', {
        filebrowserUploadUrl: "{{ route('ckeditor.upload', ['_token' => csrf_token() ]) }}",
        filebrowserUploadMethod: 'form',
        toolbar: [{
            name: 'styles',
            items: ['Bold', 'Italic', 'Underline']
        }],
        removeButtons: 'Save,NewPage,Preview,ExportPdf,Print,PasteText,PasteFromWord,Redo,Cut,Copy,Paste,Undo,Find,Replace,SelectAll,Scayt,Checkbox,Form,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,CopyFormatting,RemoveFormat,Indent,Outdent,BidiLtr,BidiRtl,Language,Anchor,Table,Iframe,PageBreak,SpecialChar,Smiley,HorizontalRule,Maximize,ShowBlocks,About,Blockquote',
    });

</script>

    <script type="text/javascript">
        CKEDITOR.replace('ck_editor_we_care_you', {
            filebrowserUploadUrl: "{{ route('ckeditor.upload', ['_token' => csrf_token() ]) }}",
            filebrowserUploadMethod: 'form',
            toolbar: [{
                name: 'styles',
                items: ['Bold', 'Italic', 'Underline']
            }],
            removeButtons: 'Save,NewPage,Preview,ExportPdf,Print,PasteText,PasteFromWord,Redo,Cut,Copy,Paste,Undo,Find,Replace,SelectAll,Scayt,Checkbox,Form,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,CopyFormatting,RemoveFormat,Indent,Outdent,BidiLtr,BidiRtl,Language,Anchor,Table,Iframe,PageBreak,SpecialChar,Smiley,HorizontalRule,Maximize,ShowBlocks,About,Blockquote',
        });

    </script>


</body>

</html>
