Current File : /home/tradevaly/public_html/storage/framework/views/629dcf24ba0a32606d73b6c72529006234ff3a8c.php

<?php $__env->startPush('title'); ?> Subscribers | B2B Admin <?php $__env->stopPush(); ?>
<?php $__env->startSection('css'); ?>
    <style>
        .th-white-space th {
            white-space: nowrap;
        }
    </style>
    <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'); ?> Subscribers <?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 th-white-space" id="datatable-buttons">
                            <thead>
                            <tr>
                                <th class="text-center">SL</th>
                                <th><?php echo e(translate('Name')); ?></th>
                                <th><?php echo e(translate('Member ID')); ?></th>
                                <th>Start</th>
                                <th>End</th>
                                <th><?php echo e(translate('Package')); ?></th>
                                <th><?php echo e(translate('Status')); ?></th>
                                <th><?php echo e(translate('Action')); ?></th>
                            </tr>
                            </thead>
                            <tbody>

                            <?php $__currentLoopData = $subscribers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subscriber): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>

                                    <td class="text-center"><?php echo e($loop->iteration); ?></td>
                                    <td>
                                        <?php echo e($subscriber->user? $subscriber->user->name:"User Not Exists"); ?>

                                    </td>
                                    
                                    <td>
                                        <?php echo e($subscriber->id); ?>

                                    </td>
                                    <td>
                                        <?php echo e(\Carbon\Carbon::parse($subscriber->start)->format('d M Y h:i')); ?>

                                    </td>
                                    <td>
                                        <?php echo e(\Carbon\Carbon::parse($subscriber->end)->format('d M Y h:i')); ?>

                                    </td>

                                    <td>
                                        <?php if($subscriber->package): ?>
                                            <img style="height: 50px; width:50px; border-radius:50%;"
                                                 src="<?php echo e(asset('storage/images/admin/package/'.$subscriber->package->image)); ?>"
                                                 alt="">

                                        <?php endif; ?>
                                    </td>
                                     <td>
                                        <span class="badge bg-<?php echo e($subscriber->status == 'active' ? 'success' : 'secondary'); ?>"><?php echo e($subscriber->status); ?></span>
                                    </td>
                                    <td>
                                        <a class="btn btn-success btn-sm d-block mb-2"
                                           href="<?php echo e(route('admin.subscriber.invoice_details',$subscriber->id)); ?>">
                                            Invoice
                                        </a>

                                        <?php if($subscriber->payment_status == 'paid'): ?>
                                            <a style="white-space: nowrap;" class="btn btn-warning mb-2 btn-sm d-block"
                                               href="<?php echo e(route('admin.subscriber.money_receipt',$subscriber->id)); ?>">
                                                Money Receipt
                                            </a>
                                        <?php endif; ?>
                                        <!--<a  class="btn btn-danger btn-sm d-block mb-2"-->
                                        <!--   href="<?php echo e(route('admin.subscriber.delete',$subscriber->id)); ?>">-->
                                        <!--    Delete-->
                                        <!--</a>-->
                                    </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 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('backend.ayaan.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tradevaly/public_html/resources/views/backend/pages/subscriber/index.blade.php ENDPATH**/ ?>