{{-- Vendor Scripts --}}
<script>
    var currency = "<?php echo env("CURRENCY_CODE") ?>";
    var currency_symbol = "<?php echo env("CURRENCY_SYMBOL") ?>";
    var pageLength = 25;
</script>
@yield('vendor-script')
{{-- Theme Scripts --}}
<script src="{{ asset(mix('admin/js/core/app-menu.js')) }}"></script>
<script src="{{ asset(mix('admin/js/core/app.js')) }}"></script>
<script src="{{ asset(mix('admin/js/scripts/components.js')) }}"></script>
@if($configData['blankPage'] == false)
<script src="{{ asset(mix('admin/js/scripts/customizer.js')) }}"></script>
<script src="{{ asset(mix('admin/js/scripts/footer.js')) }}"></script>
@endif
<script src="{{ asset(mix('admin/js/scripts/common.js')) }}"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.form/4.3.0/jquery.form.min.js"></script>
<!--
<script src="https://www.jqueryscript.net/demo/Bootstrap-4-Tag-Input-Plugin-jQuery/tagsinput.js"></script>
-->
<script>

    $(document).ready(function () {
        $('#listing').DataTable({
            "orderCellsTop": true,
            "fixedHeader": true,
            "pageLength": pageLength,
            "responsive": true,
            "lengthMenu": [[10, 25, 50, -1], [10, 25, 50, 100]], // page length options
            "dom": 'Bfrtip',
            "order": [[ 0, "desc" ]],
            "buttons": {
                "buttons": [
                    {
                        extend: "pageLength",
                        className: 'form-control',
                    }
                ],
                dom: {
                    button: {
                        tag: "button",
                        className: "select-btn"
                    },
                    buttonLiner: {
                        tag: null
                    }
                }
            }
        });
        
        $(document).on('click', '.mediaModel', function (event) {
            $.ajax({
                url: "<?php echo url('/admin/media/get') ?>",
                cache: false,
                success: function (response) {
                    $(document).find('#mediadata').html('');
                    $(document).find('#mediadata').append(response);
                }
            });
        });
    });
</script>
