<?php $__env->startSection('title', __('dashboard.languages')); ?>

<?php $__env->startSection('content'); ?>
<?php if (isset($component)) { $__componentOriginalcb19cb35a534439097b02b8af91726ee = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalcb19cb35a534439097b02b8af91726ee = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.page-header','data' => ['title' => ''.e(__('dashboard.languages')).'','breadcrumbs' => [__('dashboard.languages') => route('admin.languages.index')]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin.page-header'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => ''.e(__('dashboard.languages')).'','breadcrumbs' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([__('dashboard.languages') => route('admin.languages.index')])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalcb19cb35a534439097b02b8af91726ee)): ?>
<?php $attributes = $__attributesOriginalcb19cb35a534439097b02b8af91726ee; ?>
<?php unset($__attributesOriginalcb19cb35a534439097b02b8af91726ee); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalcb19cb35a534439097b02b8af91726ee)): ?>
<?php $component = $__componentOriginalcb19cb35a534439097b02b8af91726ee; ?>
<?php unset($__componentOriginalcb19cb35a534439097b02b8af91726ee); ?>
<?php endif; ?>

<div class="row">
    <div class="col-lg-12 p-0">
        <div class="card">
            <div class="card-header pb-0 card-no-border">
                <?php if (isset($component)) { $__componentOriginalf5b623a7325ae57cf9722df84a31fcb7 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalf5b623a7325ae57cf9722df84a31fcb7 = $attributes; } ?>
<?php $component = App\View\Components\Add::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('add'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\Add::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['route' => ''.e(route('admin.languages.create')).'','label' => ''.e(__('dashboard.add_language')).'']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalf5b623a7325ae57cf9722df84a31fcb7)): ?>
<?php $attributes = $__attributesOriginalf5b623a7325ae57cf9722df84a31fcb7; ?>
<?php unset($__attributesOriginalf5b623a7325ae57cf9722df84a31fcb7); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalf5b623a7325ae57cf9722df84a31fcb7)): ?>
<?php $component = $__componentOriginalf5b623a7325ae57cf9722df84a31fcb7; ?>
<?php unset($__componentOriginalf5b623a7325ae57cf9722df84a31fcb7); ?>
<?php endif; ?>

                <div class="filter-section">
                    <div class="row g-3 align-items-end">

                        <div class="col-12">
                            <?php if (isset($component)) { $__componentOriginal88f696f67fbaf98c7316dd2aa568a321 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal88f696f67fbaf98c7316dd2aa568a321 = $attributes; } ?>
<?php $component = App\View\Components\Report::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('report'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\Report::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'report']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal88f696f67fbaf98c7316dd2aa568a321)): ?>
<?php $attributes = $__attributesOriginal88f696f67fbaf98c7316dd2aa568a321; ?>
<?php unset($__attributesOriginal88f696f67fbaf98c7316dd2aa568a321); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal88f696f67fbaf98c7316dd2aa568a321)): ?>
<?php $component = $__componentOriginal88f696f67fbaf98c7316dd2aa568a321; ?>
<?php unset($__componentOriginal88f696f67fbaf98c7316dd2aa568a321); ?>
<?php endif; ?>
                        </div>

                        <div class="col-6">
                            <?php if (isset($component)) { $__componentOriginal15383539b2d1b46c5eb99afc32b06bae = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal15383539b2d1b46c5eb99afc32b06bae = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.status-filter','data' => ['name' => 'is_active','enum' => \App\Enums\StatusEnum::class]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('status-filter'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'is_active','enum' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\App\Enums\StatusEnum::class)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal15383539b2d1b46c5eb99afc32b06bae)): ?>
<?php $attributes = $__attributesOriginal15383539b2d1b46c5eb99afc32b06bae; ?>
<?php unset($__attributesOriginal15383539b2d1b46c5eb99afc32b06bae); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal15383539b2d1b46c5eb99afc32b06bae)): ?>
<?php $component = $__componentOriginal15383539b2d1b46c5eb99afc32b06bae; ?>
<?php unset($__componentOriginal15383539b2d1b46c5eb99afc32b06bae); ?>
<?php endif; ?>
                        </div>

                        <?php if (isset($component)) { $__componentOriginalbf566fc26595b9cc6779e170beef8a5a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalbf566fc26595b9cc6779e170beef8a5a = $attributes; } ?>
<?php $component = App\View\Components\Select::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\Select::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['col' => '3','name' => 'orderBy-filter','label' => ''.e(__('dashboard.orderBy')).'','options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\App\Enums\OrderByEnum::labels())]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalbf566fc26595b9cc6779e170beef8a5a)): ?>
<?php $attributes = $__attributesOriginalbf566fc26595b9cc6779e170beef8a5a; ?>
<?php unset($__attributesOriginalbf566fc26595b9cc6779e170beef8a5a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalbf566fc26595b9cc6779e170beef8a5a)): ?>
<?php $component = $__componentOriginalbf566fc26595b9cc6779e170beef8a5a; ?>
<?php unset($__componentOriginalbf566fc26595b9cc6779e170beef8a5a); ?>
<?php endif; ?>

                        <?php if (isset($component)) { $__componentOriginal981b320513511d7b9affa90d6802addb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal981b320513511d7b9affa90d6802addb = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.date-range','data' => ['name' => 'range-date','label' => ''.e(__('dashboard.date_range')).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('date-range'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'range-date','label' => ''.e(__('dashboard.date_range')).'']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal981b320513511d7b9affa90d6802addb)): ?>
<?php $attributes = $__attributesOriginal981b320513511d7b9affa90d6802addb; ?>
<?php unset($__attributesOriginal981b320513511d7b9affa90d6802addb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal981b320513511d7b9affa90d6802addb)): ?>
<?php $component = $__componentOriginal981b320513511d7b9affa90d6802addb; ?>
<?php unset($__componentOriginal981b320513511d7b9affa90d6802addb); ?>
<?php endif; ?>

                        <div class="col-12 d-flex justify-content-end gap-2 mt-2">
                            <div id="export-buttons-wrapper"></div>
                        </div>
                    </div>
                </div>

                <div class="mt-3">
                    <?php if (isset($component)) { $__componentOriginal4efa133987d0d67ec1c32af7d4a86bfd = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal4efa133987d0d67ec1c32af7d4a86bfd = $attributes; } ?>
<?php $component = App\View\Components\Bulk::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('bulk'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\Bulk::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal4efa133987d0d67ec1c32af7d4a86bfd)): ?>
<?php $attributes = $__attributesOriginal4efa133987d0d67ec1c32af7d4a86bfd; ?>
<?php unset($__attributesOriginal4efa133987d0d67ec1c32af7d4a86bfd); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal4efa133987d0d67ec1c32af7d4a86bfd)): ?>
<?php $component = $__componentOriginal4efa133987d0d67ec1c32af7d4a86bfd; ?>
<?php unset($__componentOriginal4efa133987d0d67ec1c32af7d4a86bfd); ?>
<?php endif; ?>
                </div>
            </div>

            <div class="card-body">
                <div class="table-responsive custom-scrollbar server-side-table">
                    <?php echo $dataTable->table(['class' => 'table table-bordered', 'id' => 'languages-table']); ?>

                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('scripts'); ?>
    <?php echo $dataTable->scripts(); ?>


    <script>
        document.addEventListener('DOMContentLoaded', function () {
            const table = $('#languages-table').DataTable();

            $('.report').on('click', function() {
                $('.report').removeClass('active');
                $(this).addClass('active');
                table.draw();
            });

            $('.status-filter').on('click', function() {
                table.draw();
            });

            $('#orderBy-filter').on('change', function() {
                table.draw();
            });

            $('#range-date').on('change', function() {
                table.draw();
            });

            initDataTableFilters({
                tableId: 'languages-table',
                csrf: '<?php echo e(csrf_token()); ?>',

                filters: [
                    '#orderBy-filter',
                    '#range-date'
                ],

                buttons: {
                    apply: '#apply-filters',
                    clear: '#clear-filters'
                },

                selectAll: '#check-all',

                bulk: {
                    actions: '#bulk-actions',
                    delete: '#bulk-delete',
                    activate: '#bulk-activate',
                    deactivate: '#bulk-deactivate'
                },

                routes: {
                    delete: '<?php echo e(route("admin.languages.bulkDelete")); ?>',
                    status: '<?php echo e(route("admin.languages.bulkStatus")); ?>'
                }
            });

            const dtSearch = document.querySelector('#languages-table_filter');
            const target = document.getElementById('datatable-search-wrapper');

            if (dtSearch && target) {
                target.appendChild(dtSearch);
                dtSearch.classList.remove('text-end');
            }
        });
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/takwgzfj/montsportscamp.com/resources/views/admin/languages/index.blade.php ENDPATH**/ ?>