
<?php $__env->startPush('title'); ?>
    <?php echo e($pageTitle); ?>

<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
    <div class="page-content-wrapper bda-pb-100 bda-pt-30 bda-px-18">
        <div class="bda-mb-30">
            <!-- breadcrumb  -->
            <nav aria-label="breadcrumb">
                <ol class="breadcrumb bda-breadcrumb">
                    <li class="breadcrumb-item "><a href="<?php echo e(route('admin.dashboard')); ?>"
                                                    class="title-light"><?php echo e($breadcrumb); ?></a></li>
                </ol>
            </nav>
        </div>
        <div class="overflow-x-auto">
            <div class="bda-card-area-box">

                <div class="bda-card-box bda-w-1300">
                    <ul class="nav nav-pills gap-3 justify-content-center flex-wrap bda-mb-30" id="pills-tab"
                        role="tablist">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $orderStatuses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $status): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li class="nav-item" role="presentation">
                                <button
                                    class="nav-link bda-tab-bot-button social-tab-btu <?php if($loop->first): ?> active <?php endif; ?>"
                                    id="pills-social-tab-<?php echo e($status['key']); ?>" data-bs-toggle="pill"
                                    data-bs-target="#pills-social-<?php echo e($status['key']); ?>" type="button" role="tab"
                                    aria-controls="pills-social-<?php echo e($status['key']); ?>"
                                    aria-selected="<?php echo e($loop->first ? 'true' : 'false'); ?>"
                                    data-tab-id="<?php echo e($status['key']); ?>"><?php echo e($status['name']); ?> <span class="showCount">(<?php echo e($status['count']); ?>)</span>
                                </button>
                            </li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </ul>
                    <div class="tab-content" id="pills-tabContent">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $orderStatuses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $status): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="tab-pane fade social-tab-content <?php if($loop->first): ?> show active <?php endif; ?>"
                                 id="pills-social-<?php echo e($status['key']); ?>" role="tabpanel"
                                 aria-labelledby="pills-social-tab-<?php echo e($status['key']); ?>">
                                <div
                                    class="d-flex justify-content-between align-items-center gap-3 flex-wrap bda-mb-30">
                                    <div class="bda-table-search">
                                        <input type="text" placeholder="<?php echo e(__('Search')); ?>"
                                               id="<?php echo e($status['key']); ?>Search">
                                        <button type="button" class="bda-btu-search">
                                            <img src="<?php echo e(getImageUrl('assets/images/icon/Search.svg')); ?>"
                                                 alt="<?php echo e(__('Search Icon')); ?>">
                                        </button>
                                    </div>
                                </div>

                                <div class="table-responsive overflow-scroll-991">
                                    <table class="table bda-data-table-box"
                                           id="<?php echo e($status['key']); ?>SubscriberDataTable">
                                        <thead>
                                        <tr>
                                            <th class="text-start"><?php echo e(__('SN')); ?></th>
                                            <th class="text-start"><?php echo e(__('Subscriber Name')); ?></th>
                                            <th class="text-start"><?php echo e(__('Package Name')); ?></th>
                                            <th class="text-start"><?php echo e(__('Start Date')); ?></th>
                                            <th class="text-start"><?php echo e(__('End Date')); ?></th>
                                            <th class="text-start"><?php echo e(__('Price')); ?></th>
                                            <th class="text-start"><?php echo e(__('Status')); ?></th>
                                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($status['key'] === 'expiry_soon'): ?>
                                                <th class="text-start"><?php echo e(__('Last Notification Sent')); ?></th>
                                            <?php elseif($status['key'] === 'cancel'): ?>
                                                <th class="text-start"><?php echo e(__('Canceled By')); ?></th>
                                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                            <th class="text-end"><?php echo e(__('Action')); ?></th>
                                        </tr>
                                        </thead>
                                    </table>
                                </div>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>

    
    <div class="modal viewModal bda-z-i-999 fade" id="bd-support-table-modal" tabindex="-1" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content bda-card-area-box p-5">
                <h6 class="bda-fs-24 title-light"><?php echo e(__('Subscriber Details')); ?></h6>
                <div class="bda-pt-30 overflow-auto" id="subscriberDataShow">

                </div>
            </div>
        </div>
    </div>
    
    <div class="modal editModal bda-z-i-999 fade" tabindex="-1" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content bda-card-area-box p-5">
                <h6 class="bda-fs-24 title-light"><?php echo e(__('Change Subscriber Status')); ?></h6>
                <form class="ajax bda-mt-30" action="<?php echo e(route('admin.subscribers.status')); ?>" method="POST"
                      enctype="multipart/form-data" data-callback="subscriberStatusFormResponse">
                    <?php echo csrf_field(); ?>
                    <input type="hidden" name="updateId" id="updateId">
                    <div class="col-md-12">
                        <div class="bda-from-box">
                            <label class="bda-text-label"><?php echo e(__('Change Status')); ?></label>
                            <select name="status" id="status"
                                    class="bda-from-control w-100 <?php $__errorArgs = ['status'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                                <option selected disabled><?php echo e(__('Choose One')); ?></option>
                                <option value="<?php echo e(SUBSCRIBER_STATUS_CANCEL); ?>"><?php echo e(__('Cancel')); ?></option>
                            </select>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['status'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <span class="invalid-feedback mb-3 mt-0 pt-0" role="alert">
                                <strong><?php echo e($message); ?></strong>
                            </span>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </div>
                    </div>
                    <div>
                        <button class="bda-btu-theme"><?php echo e(__('Submit')); ?></button>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <input type="hidden" value="<?php echo e(route('admin.subscribers.getData')); ?>" id="getRoute">
    <input type="hidden" value="<?php echo e(route('admin.subscribers.sentEmail')); ?>" id="getSentEmailRoute">
    <input type="hidden" value="<?php echo e(route('admin.subscribers.view')); ?>" id="getViewRoute">
    <input type="hidden" value="<?php echo e(route('admin.subscribers.status')); ?>" id="getStatusRoute">
<?php $__env->stopSection(); ?>
<?php $__env->startPush('script'); ?>
    <script src="<?php echo e(asset('assets/js/custom/admin/subscribers.js')); ?>"></script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/www/voizur.bdcoder.com/resources/views/admin/subscribers/index.blade.php ENDPATH**/ ?>