<script>
    window.deleteButtonTrans = '{{ trans("quickadmin.qa_delete_selected") }}';
    window.copyButtonTrans = '{{ trans("quickadmin.qa_copy") }}';
    window.csvButtonTrans = '{{ trans("quickadmin.qa_csv") }}';
    window.excelButtonTrans = '{{ trans("quickadmin.qa_excel") }}';
    window.pdfButtonTrans = '{{ trans("quickadmin.qa_pdf") }}';
    window.printButtonTrans = '{{ trans("quickadmin.qa_print") }}';
    window.colvisButtonTrans = '{{ trans("quickadmin.qa_colvis") }}';
</script>

<script src="{{ url('js/app.js') }}"></script>

<script src="{{ url('js/dt/jquery-1.11.3.min.js') }}"></script>
<script src="{{ url('js/dt/jquery-1.12.4.js') }}"></script>
<script src="{{ url('js/dt/jquery.dataTables.min.js') }}"></script>
<script src="{{ url('js/dt/dataTables.buttons.min.js') }}"></script>
<script src="{{ url('js/dt/dataTables.select.min.js') }}"></script>
<script src="{{ url('js/dt/buttons.print.min.js') }}"></script>
<script src="{{ url('js/dt/buttons.colVis.js') }}"></script>
<script src="{{ url('js/dt/jquery-ui.min.js') }}"></script>

<script src="{{ url('adminlte/js') }}/bootstrap.min.js"></script>
<script src="{{ url('adminlte/js') }}/select2.full.min.js"></script>

@if((Request::path() === 'admin/plannings' && request('show_deleted') != 1)||
    (Request::path() === 'admin/sections' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/course_of_constructions' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/promotions' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/documents' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/customer_ratings' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/secret_buyer_ratings' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/residential_complex_characters' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/residential_complexes' && request('show_deleted') != 1)||
    (Request::path() === 'admin/users' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/cities' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/discricts' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/street_names' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/marker_types' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/markers' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/baners' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/seo_contents' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/banks' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/residental_complex_icons' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/developers' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/subscription_developers' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/subscription_rcs' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/subscription_sites' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/document_types' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/customer_appeal_options' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/customer_appeals' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/presentation_phones' && request('show_deleted') != 1) ||
    (Request::path() === 'admin/currency-rates' && request('show_deleted') != 1)
    )
    <script src="{{ url('adminlte/js') }}/deactivate-datatable-button.js"></script>
@else
    <script src="{{ url('adminlte/js') }}/main.js"></script>
@endif

<script src="{{ url('adminlte/plugins/slimScroll/jquery.slimscroll.min.js') }}"></script>
<script src="{{ url('adminlte/plugins/fastclick/fastclick.js') }}"></script>
<script src="{{ url('adminlte/js/app.min.js') }}"></script>
<script src="{{ url('js/cropper.min.js') }}"></script>

<script>
    window._token = '{{ csrf_token() }}';
</script>

<script>
    $.extend(true, $.fn.dataTable.defaults, {
        "language": {
            "url": "https://cdn.datatables.net/plug-ins/1.10.16/i18n/Ukrainian.json"
        }
    });
</script>

<script>
    $(function () {
        /** add active class and stay opened when selected */
        var url = window.location;

        // for sidebar menu entirely but not cover treeview
        $('ul.sidebar-menu a').filter(function () {
            return this.href == url;
        }).parent().addClass('active');

        $('ul.treeview-menu a').filter(function () {
            return this.href == url;
        }).parent().addClass('active');

        // for treeview
        $('ul.treeview-menu a').filter(function () {
            return this.href == url;
        }).parentsUntil('.sidebar-menu > .treeview-menu').addClass('menu-open').css('display', 'block');
    });
</script>
<script src="{{ url('adminlte/js/location/min-max.js') }}"></script>

@yield('javascript')
