<?php $__env->startSection('section'); ?>
<style>
        img {
            object-fit: contain !important;
            width: 200px;
            height: 100px;
        }

        .sponsorsTable :is(th, td) {
            vertical-align: middle;
        }

    </style>

    <div class="content-wrapper">
        <section class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1>Sponsors Listing</h1>
                    </div>
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-right">
                            <li class="breadcrumb-item"><a href="<?php echo e(url('admin/dashboard')); ?>">Home</a></li>
                            <li class="breadcrumb-item active">Sponsor</li>
                        </ol>
                    </div>
                </div>
            </div>
        </section>

        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-12">
                            <a href="<?php echo e(route('admin.sponsors.create')); ?>" class="btn btn-primary mb-2 ">Create Sponsor</a>
                        <table id="ordertable" class="table table-bordered dt-responsive nowrap sponsorsTable"
                               style="border-collapse: collapse; border-spacing: 0; width: 100%;">
                            <thead>
                            <tr>
                                <th>Image</th>
                                <th widht="50%">Link</th>
                                <th>Actions</th>

                            </tr>
                            </thead>
                        </table>
                    </div>

                </div>
            </div>
        </section>
    </div>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script>
        $(document).ready(function () {
            $('#ordertable').DataTable({
                ordering: false,
                processing: true,
                serverSide: true,
                ajax: {
                    url: '<?php echo e(route('admin.sponsors.datatables')); ?>',
                    data: function (data) {
                        data._token = '<?php echo e(csrf_token()); ?>';
                    }
                },
                columns: [
                    {data: 'sponsor_image', name: 'sponsor_image'},
                    {data: 'sponsor_link', name: 'sponsor_link'},
                    {data: 'action', name: 'action', orderable: false, searchable: false},

                ]
            });
        });
    </script>



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

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/servicedemoweb/public_html/global-man-cave/resources/views/admin/sponsor/index.blade.php ENDPATH**/ ?>