<?php $__env->startSection('title','Languages'); ?>
<?php echo $__env->make('layouts.datatable', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-lg-12">
        <div class="tile">
            <div class="tile-title-w-btn">
                <h3 class="title"><i class="bi bi-list-ul"></i> <?php echo e(__('lang.languages')); ?></h3>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('languages.create')): ?>
                <?php if (isset($component)) { $__componentOriginal0a7c978cd57a73e12c6a9b8aa579663b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal0a7c978cd57a73e12c6a9b8aa579663b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.buttons.modal','data' => ['modal' => 'myModal','text' => '<i class=\'bi bi-plus\'></i>']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('buttons.modal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['modal' => 'myModal','text' => '<i class=\'bi bi-plus\'></i>']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal0a7c978cd57a73e12c6a9b8aa579663b)): ?>
<?php $attributes = $__attributesOriginal0a7c978cd57a73e12c6a9b8aa579663b; ?>
<?php unset($__attributesOriginal0a7c978cd57a73e12c6a9b8aa579663b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0a7c978cd57a73e12c6a9b8aa579663b)): ?>
<?php $component = $__componentOriginal0a7c978cd57a73e12c6a9b8aa579663b; ?>
<?php unset($__componentOriginal0a7c978cd57a73e12c6a9b8aa579663b); ?>
<?php endif; ?>
                <?php endif; ?>
            </div>
            <div class="tile-body">
                <div class="table-responsive">
                    <table class="table" id="my-table">
                        <thead class="table-primary">
                            <tr>
                                <th>#</th>
                                <th><?php echo e(__('lang.name')); ?></th>
                                <th><?php echo e(__('lang.action')); ?></th>
                            </tr>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>

    <!-- New Modal -->
    <?php if (isset($component)) { $__componentOriginal9f64f32e90b9102968f2bc548315018c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9f64f32e90b9102968f2bc548315018c = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.modal','data' => ['id' => 'myModal','title' => '<i class=\'bi bi-plus\'></i>'.e(__('lang.language')).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('modal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['id' => 'myModal','title' => '<i class=\'bi bi-plus\'></i>'.e(__('lang.language')).'']); ?>
        <form action="<?php echo e(route('languages.store')); ?>" method="post">
            <?php echo csrf_field(); ?>
            <?php echo $__env->make('language.partials._form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php if (isset($component)) { $__componentOriginalb6998a2a28ecb18ed045802822294d2a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb6998a2a28ecb18ed045802822294d2a = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.buttons.save','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('buttons.save'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalb6998a2a28ecb18ed045802822294d2a)): ?>
<?php $attributes = $__attributesOriginalb6998a2a28ecb18ed045802822294d2a; ?>
<?php unset($__attributesOriginalb6998a2a28ecb18ed045802822294d2a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb6998a2a28ecb18ed045802822294d2a)): ?>
<?php $component = $__componentOriginalb6998a2a28ecb18ed045802822294d2a; ?>
<?php unset($__componentOriginalb6998a2a28ecb18ed045802822294d2a); ?>
<?php endif; ?>
        </form>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9f64f32e90b9102968f2bc548315018c)): ?>
<?php $attributes = $__attributesOriginal9f64f32e90b9102968f2bc548315018c; ?>
<?php unset($__attributesOriginal9f64f32e90b9102968f2bc548315018c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9f64f32e90b9102968f2bc548315018c)): ?>
<?php $component = $__componentOriginal9f64f32e90b9102968f2bc548315018c; ?>
<?php unset($__componentOriginal9f64f32e90b9102968f2bc548315018c); ?>
<?php endif; ?>
</div>
<?php $__env->stopSection(); ?>

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

<script type="text/javascript">
    $("#myModal").on("shown.bs.modal",function(){
        $("#name").focus();
    });
    <?php if($errors->any()): ?>
    const myModal=new bootstrap.Modal("#myModal",{
        keyboard:false
    });
    myModal.show();
    <?php endif; ?>

    new DataTable('#my-table', {
        processing: true,
        serverSide: true,
        "ordering": false,
        ajax: {
            url: '<?php echo e(route('languages.dataTable')); ?>',
        },
        columns: [
            { data: 'id', name: 'id' },
            { data: 'name', name: 'name' },
            { data: 'action', name: 'action', searchable: false }
        ],
    });

</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\Laravel\mohe_library\resources\views/language/index.blade.php ENDPATH**/ ?>