Current File : /home/tradevaly/www/storage/framework/views/dee52728b903d66be4c4fda008efe9d7ff11c304.php

<?php $__env->startPush('title','Income Lists'); ?>

<?php $__env->startSection('title'); ?> Income Lists <?php $__env->stopSection(); ?>
<?php $__env->startSection('css'); ?>
    <!-- DataTables -->
    <link href="<?php echo e(asset('/assets/libs/datatables/datatables.min.css')); ?>" rel="stylesheet" type="text/css"/>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>

    <?php $__env->startComponent('components.breadcrumb'); ?>
        <?php $__env->slot('li_1'); ?> Dashboard <?php $__env->endSlot(); ?>
        <?php $__env->slot('title'); ?>All Advertisment <?php $__env->endSlot(); ?>
    <?php echo $__env->renderComponent(); ?>
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table" id="datatable-buttons">
                            <thead>
                            <tr>
                                <th class="text-center">#</th>
                                <th>Advertisment Position</th>
                                <th>Photo</th>
                                <th>Link</th>
                                <th>start</th>
                                <th>end</th>
                                <th>Status</th>
                                <th>Action</th>
                            </tr>
                            </thead>
                            <tbody>

                            <?php $__currentLoopData = $advertisments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $advertisment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td class="text-center"><?php echo e($loop->iteration); ?></td>
                                    <td>
                                        <?php echo e($advertisment->position); ?> 
                                    </td>
                                    <td>
                                        <img height="50" src="<?php echo e(asset('storage/images/admin/banner/'.$advertisment->image)); ?>" alt="" class='img-fluid'>
                                    </td>
                                    <td>
                                        <?php echo e($advertisment->link); ?>

                                    </td>
                                    <td>
                                        <?php echo e($advertisment->start); ?>

                                    </td>
                                    <td>
                                        <?php echo e($advertisment->end); ?>

                                    </td>
                                    <td>
                                        <?php if($advertisment->isActive == 1): ?>
                                        <span class="badge bg-success">Active</span>
                                        <?php else: ?>
                                        <span class="badge bg-warning">Pending</span>
                                        <?php endif; ?>
                                    </td>
                                    <td>
                                       <div class="btn-group" role="group" aria-label="Basic example">
                                          <a href="<?php echo e(route('user.advertisment.edit',$advertisment->id)); ?>" class="btn btn-info btn-sm">Update</a>
                                          <!--<a href="<?php echo e(route('user.advertisment.renew',$advertisment->id)); ?>" class="btn btn-primary btn-sm">Renew</a>-->
                                        </div>
                                    </td>
                                    
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>

                </div>
            </div>
        </div>
    </div>
    <!-- end row -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
    <!-- Required datatable js -->
    <script src="<?php echo e(asset('/assets/libs/datatables/datatables.min.js')); ?>"></script>
    <script src="<?php echo e(asset('/assets/libs/jszip/jszip.min.js')); ?>"></script>
    <script src="<?php echo e(asset('/assets/libs/pdfmake/pdfmake.min.js')); ?>"></script>
    <!-- Datatable init js -->
    <script>
        let advertiser_buttons = document.querySelectorAll('.advertiser_buttons');

        advertiser_buttons.addEventListener("click", updateFunction);

        function updateFunction() {
            console.log('mehedi');
        }
    </script>
    <script type="text/javascript">
        $(function () {


            $(document).ready(function () {

                var table = $('#datatable-buttons').DataTable({
                    lengthChange: false,
                    processing: true,
                    dom: 'Bfrtip',

                    buttons: ['copy', 'excel', 'pdf', 'colvis']
                });
                table.buttons().container().appendTo('#datatable-buttons_wrapper .col-md-6:eq(0)');
                $(".dataTables_length select").addClass('form-select form-select-sm');
            });
        });
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('user.ayaan.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tradevaly/public_html/resources/views/user/pages/advertisment/index.blade.php ENDPATH**/ ?>