<?php $__env->startSection('content'); ?>
<div class="container app-content pt-3">
    <h1 class="h3 mb-4">Languages</h1>
    <div class="py-3">
        <a href="<?php echo e(route('admin.language.create')); ?>" class="btn btn-success"><i class="mr-2 fa fa-plus"></i>Add Language</a>
    </div>
    <div class="card">
        <div class="table-responsive">
            <table class="table table-hover">
                <thead class="thead-light">
                    <tr>
                        <th>Id</th>
                        <th>Locale</th>
                        <th>Name</th>
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($language->id); ?></td>
                            <td><?php echo e($language->locale); ?></td>
                            <td><?php echo e($language->name); ?></td>
                            <td>
                                <a href="<?php echo e(route('admin.language.edit', $language)); ?>" class="btn btn-warning btn-sm" type="button">Edit</a>
                                <a href="<?php echo e(route('admin.language.destroy', $language)); ?>" class="btn btn-danger btn-sm"
                                    onclick="event.preventDefault();document.getElementById('delete-<?php echo e($language->id); ?>').submit();">Delete</a>

                                <form id="delete-<?php echo e($language->id); ?>" action="<?php echo e(route('admin.language.destroy', $language)); ?>" method="POST" style="display: none;">
                                    <?php echo csrf_field(); ?>
                                    <?php echo method_field('DELETE'); ?>
                                </form>
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
        <?php if($languages->hasPages()): ?>
            <div class="card-footer">
                <?php echo e($languages->links()); ?>

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

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\mopie-14\engine\resources\views/languages/index.blade.php ENDPATH**/ ?>