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

                                <form id="delete-<?php echo e($template->id); ?>" action="<?php echo e(route('admin.template.destroy', $template)); ?>" 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($templates->hasPages()): ?>
            <div class="card-footer">
                <?php echo e($templates->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/templates/index.blade.php ENDPATH**/ ?>