<?php $__env->startPush('title', get_phrase('Newsletter')); ?>
<?php $__env->startPush('meta'); ?><?php $__env->stopPush(); ?>
<?php $__env->startPush('css'); ?><?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>

    <div class="ol-card radius-8px">
        <div class="ol-card-body my-3 py-12px px-20px">
            <div class="d-flex align-items-center justify-content-between gap-3 flex-wrap flex-md-nowrap">
                <h4 class="title fs-16px">
                    <i class="fi-rr-settings-sliders me-2"></i>
                    <?php echo e(get_phrase('Newsletter')); ?>

                </h4>

                <a onclick="ajaxModal('<?php echo e(route('modal', ['admin.newsletter.create'])); ?>', '<?php echo e(get_phrase('Add Newsletter')); ?>')" href="#" class="btn ol-btn-outline-secondary d-flex align-items-center cg-10px">
                    <span class="fi-rr-plus"></span>
                    <span><?php echo e(get_phrase('Add Newsletter')); ?></span>
                </a>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-12">
            <div id="accordion" class="custom-accordion mb-4">
                <div class="ol-card p-20px">
                    <div class="ol-card-body">
                        <ul class="ol-my-accordion">
                            <?php if(count($newsletters) > 0): ?>
                                <?php $__currentLoopData = $newsletters; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $newsletter): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li class="single-accor-item">
                                    <div class="accordion-btn-wrap">
                                        <div class="accordion-btn-title d-flex align-items-center">
                                            <img src="assets/images/icons/firstline-gray-16.svg" alt="">
                                            <h4 class="title"><?php echo e($key+1); ?>. <?php echo e($newsletter->subject); ?></h4>
                                        </div>
                                        <div class="accordion-button-buttons">
                                            <a onclick="ajaxModal('<?php echo e(route('modal', ['admin.newsletter.send', 'id' => $newsletter->id])); ?>', '<?php echo e(get_phrase('Send newsletter')); ?>')" data-bs-toggle="tooltip" title="<?php echo e(get_phrase('Send Newsletter')); ?>" href="#" class="edit"><span class="fi-rr-paper-plane"></span></a>
                                            <a onclick="ajaxModal('<?php echo e(route('modal', ['admin.newsletter.edit', 'id' => $newsletter->id])); ?>', '<?php echo e(get_phrase('Edit Newsletter')); ?>')" data-bs-toggle="tooltip" title="<?php echo e(get_phrase('Edit')); ?>" href="#" class="edit"><span class="fi fi-rr-pen-clip"></span></a>
                                            <a onclick="confirmModal('<?php echo e(route('admin.newsletter.delete', $newsletter->id)); ?>')" data-bs-toggle="tooltip" title="<?php echo e(get_phrase('Delete')); ?>" href="#" class="delete"><span class="fi-rr-trash"></span></a>
                                        </div>
                                    </div>
                                    <div class="accoritem-body d-hidden">
                                        <div class="py-10px">
                                            <?php echo removeScripts($newsletter->description); ?>

                                        </div>
                                    </div>
                                </li>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                <?php if(count($newsletters) > 0): ?>
                                    <div
                                        class="admin-tInfo-pagi d-flex justify-content-between justify-content-center align-items-center flex-wrap gr-15">
                                        <p class="admin-tInfo">
                                            <?php echo e(get_phrase('Showing') . ' ' . count($newsletters) . ' ' . get_phrase('of') . ' ' . $newsletters->total() . ' ' . get_phrase('data')); ?>

                                        </p>
                                        <?php echo e($newsletters->links()); ?>

                                    </div>
                                <?php endif; ?>
                            <?php else: ?>
                                <?php echo $__env->make('admin.no_data', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            <?php endif; ?>
                        </ul>

                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('js'); ?>

    <script type="text/javascript">
        "use strict";
        
        function stopProp(event) {
            event.stopPropagation();
        }
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/payraty/lms_main/resources/views/admin/newsletter/index.blade.php ENDPATH**/ ?>