<?php $__env->startSection('content'); ?>
<div class="container app-content pt-3">
    <h1 class="h3 mb-4">Split Offer Links</h1>
    <div class="py-3">
        <a href="<?php echo e(route('admin.split.create')); ?>" class="btn btn-success"><i class="mr-2 fa fa-plus"></i>Add Split</a>
    </div>
    <div class="card">
        <div class="table-responsive">
            <table class="table card-table table-vcenter">
                <thead class="thead-light">
                    <tr>
                        <th>Name</th>
                        <th>Country Code</th>
                        <th>Link Offer Register</th>
                        <th>Link Offer Play</th>
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $splits; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $split): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($split->name); ?></td>
                            <td><?php echo e(implode(', ', $split->country)); ?></td>
                            <td><?php echo e($split->link_reg); ?></td>
                            <td><?php echo e($split->link_play); ?></td>
                            <td>
                                <a href="<?php echo e(route('admin.split.edit', $split)); ?>" class="btn btn-warning btn-sm" type="button">Edit</a>
                                <a href="<?php echo e(route('admin.split.destroy', $split)); ?>" class="btn btn-danger btn-sm"
                                    onclick="event.preventDefault();document.getElementById('delete-<?php echo e($split->id); ?>').submit();">Delete</a>

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