JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "a53c4900ce934d16a129a9233d5e7e67.php"

Full Path: /home2/yvrgircc/public_html/ariseskilltech.com/storage/framework/views/a53c4900ce934d16a129a9233d5e7e67.php
File size: 9.96 KB
MIME-type: text/x-php
Charset: utf-8

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


<?php $__env->startSection('content'); ?>
    <!-- Mani section header and breadcrumb -->
    <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>
                    <span><?php echo e(get_phrase('Coupon')); ?></span>
                </h4>
                <a href="javascript:void(0)" class="btn ol-btn-outline-secondary d-flex align-items-center cg-10px" onclick="ajaxModal('<?php echo e(route('modal', ['admin.coupon.create'])); ?>', '<?php echo e(get_phrase('Add Coupon')); ?>')">
                    <span class="fi-rr-plus"></span>
                    <span><?php echo e(get_phrase('Add Coupon')); ?></span>
                </a>
            </div>
        </div>
    </div>

    <!-- Start Admin area -->
    <div class="row">
        <div class="col-12">
            <div class="ol-card">
                <div class="ol-card-body p-3">
                    <div class="row print-d-none mb-3 mt-3 row-gap-3">
                        <div class="col-md-6 pt-2 pt-md-0">
                            <div class="custom-dropdown">
                                <button class="dropdown-header btn ol-btn-light">
                                    <?php echo e(get_phrase('Export')); ?>

                                    <i class="fi-rr-file-export ms-2"></i>
                                </button>
                                <ul class="dropdown-list">
                                    <li>
                                        <a class="dropdown-item" href="#" onclick="downloadPDF('.print-table', 'coupon-list')"><i class="fi-rr-file-pdf"></i> <?php echo e(get_phrase('PDF')); ?></a>
                                    </li>
                                    <li>
                                        <a class="dropdown-item" href="#" onclick="window.print();"><i class="fi-rr-print"></i> <?php echo e(get_phrase('Print')); ?></a>
                                    </li>
                                </ul>
                            </div>
                        </div>

                        <div class="col-md-6 mt-3 mt-md-0">
                            <form action="<?php echo e(route('admin.coupons')); ?>" method="get" class="d-flex gap-3 justify-content-end">
                                <div class="search-input flex-grow-1">
                                    <input type="text" name="search" value="<?php echo e(request('search')); ?>" placeholder="<?php echo e(get_phrase('Search coupon')); ?>" class="ol-form-control form-control" />

                                </div>
                                <button type="submit" class="btn ol-btn-primary" id="submit-button"><?php echo e(get_phrase('Search')); ?></button>
                            </form>
                        </div>
                    </div>
                    <!-- Table -->
                    <?php if(count($coupons) > 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($coupons) . ' ' . get_phrase('of') . ' ' . $coupons->total() . ' ' . get_phrase('data')); ?>

                            </p>
                        </div>
                        <div class="table-responsive course_list" id="course_list">
                            <table class="table eTable eTable-2 print-table">
                                <thead>
                                    <tr>
                                        <th scope="col">#</th>
                                        <th scope="col"><?php echo e(get_phrase('Coupon code')); ?></th>
                                        <th scope="col"><?php echo e(get_phrase('Discount')); ?></th>
                                        <th scope="col"><?php echo e(get_phrase('Expiry')); ?></th>
                                        <th scope="col"><?php echo e(get_phrase('Status')); ?></th>
                                        <th scope="col" class="print-d-none"><?php echo e(get_phrase('Options')); ?></th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php $__currentLoopData = $coupons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $coupon): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <th scope="row">
                                                <p class="row-number"><?php echo e(++$key); ?></p>
                                            </th>

                                            <td>
                                                <div class="dAdmin_profile d-flex align-items-center min-w-200px">
                                                    <div class="dAdmin_profile_name">
                                                        <h4 class="title fs-14px"><?php echo e($coupon->code); ?></h4>
                                                    </div>
                                                </div>
                                            </td>

                                            <td>
                                                <div class="dAdmin_info_name min-w-150px">
                                                    <p>
                                                        <?php echo e($coupon->discount); ?>

                                                        <?php echo e(get_phrase('%')); ?>

                                                    </p>
                                                </div>
                                            </td>

                                            <td>
                                                <div class="dAdmin_info_name min-w-150px">
                                                    <p><?php echo e(date('d-M-Y', $coupon->expiry)); ?></p>
                                                </div>
                                            </td>

                                            <td>
                                                <div class="dAdmin_info_name min-w-150px">
                                                    <p><span class="badge <?php echo e($coupon->status ? 'bg-success' : 'bg-danger'); ?> text-white"><?php echo e(get_phrase($coupon->status ? 'Active' : 'Inactive')); ?></span></p>
                                                </div>
                                            </td>

                                            <td class="print-d-none">
                                                <div class="dropdown ol-icon-dropdown ol-icon-dropdown-transparent">
                                                    <button class="btn ol-btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
                                                        <span class="fi-rr-menu-dots-vertical"></span>
                                                    </button>
                                                    <ul class="dropdown-menu">
                                                        <li><a class="dropdown-item" href="#" onclick="confirmModal('<?php echo e(route('admin.coupon.status', $coupon->id)); ?>')"><?php echo e(get_phrase($coupon->status ? 'Deactivate' : 'Activate')); ?></a></li>
                                                        <li><a class="dropdown-item" href="javascript:void(0);" onclick="ajaxModal('<?php echo e(route('modal', ['admin.coupon.edit', 'id' => $coupon->id])); ?>', '<?php echo e(get_phrase('Edit Coupon')); ?>')"><?php echo e(get_phrase('Edit')); ?></a></li>
                                                        <li><a class="dropdown-item" href="javascript:void(0);" onclick="confirmModal('<?php echo e(route('admin.coupon.delete', $coupon->id)); ?>')"><?php echo e(get_phrase('Delete')); ?></a></li>
                                                    </ul>
                                                </div>
                                            </td>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </tbody>
                            </table>
                        </div>
                    <?php else: ?>
                        <?php echo $__env->make('admin.no_data', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <?php endif; ?>
                    <!-- Data info and Pagination -->
                    <?php if(count($coupons) > 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($coupons) . ' ' . get_phrase('of') . ' ' . $coupons->total() . ' ' . get_phrase('data')); ?>

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

                        </div>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>
    <!-- End Admin area -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('js'); ?><?php $__env->stopPush(); ?>

<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\Arise\resources\views/admin/coupon/index.blade.php ENDPATH**/ ?>