⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
public_html
/
storage
/
framework
/
views
/
View File Name :
8e658a658da936e3ec83e15d00d47b93f8d88140.php
<?php if(Session::has('admin_lang')): ?> <?php $admin_lang = Session::get('admin_lang'); $cd = str_replace('admin_', '', $admin_lang); $default = \App\Models\Language::where('code', $cd)->first(); ?> <?php else: ?> <?php $default = \App\Models\Language::where('is_default', 1)->first(); ?> <?php endif; ?> <?php $__env->startSection('content'); ?> <div class="page-header"> <h4 class="page-title"><?php echo e(__('Coupons')); ?></h4> <ul class="breadcrumbs"> <li class="nav-home"> <a href="<?php echo e(route('admin.dashboard') . '?language=' . $default->code); ?>"> <i class="flaticon-home"></i> </a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#"><?php echo e(__('Packages')); ?></a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#"><?php echo e(__('Coupons')); ?></a> </li> </ul> </div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="row"> <div class="col-lg-8"> <div class="card-title d-inline-block"><?php echo e(__('Coupons')); ?></div> </div> <div class="col-lg-4 mt-2 mt-lg-0"> <a href="#" class="btn btn-primary float-right btn-sm" data-toggle="modal" data-target="#createModal"><i class="fas fa-plus"></i> <?php echo e(__('Add New')); ?></a> </div> </div> </div> <div class="card-body"> <div class="row"> <div class="col-lg-12"> <?php if(count($coupons) == 0): ?> <h3 class="text-center"><?php echo e(__('NO COUPON FOUND')); ?></h3> <?php else: ?> <div class="table-responsive"> <table class="table table-striped mt-3"> <thead> <tr> <th scope="col"><?php echo e(__('Name')); ?></th> <th scope="col"><?php echo e(__('Code')); ?></th> <th scope="col"><?php echo e(__('Discount')); ?></th> <th scope="col"><?php echo e(__('Status')); ?></th> <th scope="col"><?php echo e(__('Created')); ?></th> <th scope="col"><?php echo e(__('Actions')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $coupons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $coupon): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($coupon->name); ?></td> <td><?php echo e($coupon->code); ?></td> <td><?php echo e($coupon->type == 'fixed' && $be->base_currency_symbol_position == 'left' ? $be->base_currency_symbol : ''); ?><?php echo e($coupon->value); ?><?php echo e($coupon->type == 'percentage' ? '%' : ''); ?><?php echo e($coupon->type == 'fixed' && $be->base_currency_symbol_position == 'right' ? $be->base_currency_symbol : ''); ?> </td> <td> <?php $end = Carbon\Carbon::parse($coupon->end_date); $start = Carbon\Carbon::parse($coupon->start_date); $now = Carbon\Carbon::now(); $diff = $end->diffInDays($now); ?> <?php if($start->greaterThan($now)): ?> <h3 class="d-inline-block badge badge-warning"> <?php echo e(__('Pending')); ?></h3> <?php else: ?> <?php if($now->lessThan($end)): ?> <h3 class="d-inline-block badge badge-success"> <?php echo e(__('Active')); ?></h3> <?php else: ?> <h3 class="d-inline-block badge badge-danger"> <?php echo e(__('Expired')); ?></h3> <?php endif; ?> <?php endif; ?> </td> <td> <?php $created = Carbon\Carbon::parse($coupon->created_at); $diff = $created->diffInDays($now); ?> <?php echo e($created->subDays($diff)->diffForHumans()); ?> </td> <td> <a href="<?php echo e(route('admin.coupon.edit', $coupon->id)); ?>" class="btn btn-warning btn-sm"><?php echo e(__('Edit')); ?></a> <form class="d-inline-block deleteform" action="<?php echo e(route('admin.coupon.delete')); ?>" method="POST"> <?php echo csrf_field(); ?> <input type="hidden" name="coupon_id" value="<?php echo e($coupon->id); ?>"> <button type="submit" class="btn btn-danger btn-sm deletebtn"><?php echo e(__('Delete')); ?></button> </form> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <?php endif; ?> </div> </div> </div> <div class="card-footer"> <div class="row"> <div class="d-inline-block mx-auto"> <?php echo e($coupons->links()); ?> </div> </div> </div> </div> </div> </div> <!-- Create Service Category Modal --> <div class="modal fade" id="createModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-lg" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle"><?php echo e(__('Add Coupon')); ?></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form id="ajaxForm" class="modal-form" action="<?php echo e(route('admin.coupon.store')); ?>" method="POST"> <?php echo csrf_field(); ?> <div class="row no-gutters"> <div class="col-lg-6"> <div class="form-group"> <label for=""><?php echo e(__('Name')); ?> **</label> <input type="text" class="form-control" name="name" value="" placeholder="<?php echo e(__('Enter name')); ?>"> <p id="errname" class="mb-0 text-danger em"></p> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label for=""><?php echo e(__('Code')); ?> **</label> <input type="text" class="form-control" name="code" value="" placeholder="<?php echo e(__('Enter code')); ?>"> <p id="errcode" class="mb-0 text-danger em"></p> </div> </div> </div> <div class="row no-gutters"> <div class="col-lg-6"> <div class="form-group"> <label for=""><?php echo e(__('Type')); ?> **</label> <select name="type" id="" class="form-control"> <option value="percentage"><?php echo e(__('Percentage')); ?></option> <option value="fixed"><?php echo e(__('Fixed')); ?></option> </select> <p id="errtype" class="mb-0 text-danger em"></p> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label for=""><?php echo e(__('Value')); ?> **</label> <input type="text" class="form-control" name="value" value="" placeholder="<?php echo e(__('Enter value')); ?>" autocomplete="off"> <p id="errvalue" class="mb-0 text-danger em"></p> </div> </div> </div> <div class="row no-gutters"> <div class="col-lg-6"> <div class="form-group"> <label for=""><?php echo e(__('Start Date')); ?> **</label> <input type="text" class="form-control datepicker" name="start_date" value="" placeholder="<?php echo e(__('Enter start date')); ?>" autocomplete="off"> <p id="errstart_date" class="mb-0 text-danger em"></p> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label for=""><?php echo e(__('End Date')); ?> **</label> <input type="text" class="form-control datepicker" name="end_date" value="" placeholder="<?php echo e(__('Enter end date')); ?>" autocomplete="off"> <p id="errend_date" class="mb-0 text-danger em"></p> </div> </div> </div> <div class="row no-gutters"> <div class="col-lg-6"> <div class="form-group"> <label for=""><?php echo e(__('Packages')); ?></label> <select class="select2 form-control w-100" name="packages[]" multiple="multiple"> <?php $__currentLoopData = $packages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $package): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($package->id); ?>"> <?php echo e($package->title); ?> <?php echo e(ucfirst($package->term)); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <p class="mb-0 text-warning"><?php echo e(__('This coupon can be applied to these packages')); ?> </p> <p class="mb-0 text-warning"><?php echo e(__('Leave this field blank for all packages')); ?></p> <p id="errpackages" class="mb-0 text-danger em"></p> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label for=""><?php echo e(__('Maximum uses limit')); ?> **</label> <input type="number" class="form-control " name="maximum_uses_limit" value="" placeholder="<?php echo e(__('Enter Maximum uses limit')); ?>" autocomplete="off"> <p id="errmaximum_uses_limit" class="mb-0 text-danger em"></p> <p class="mb-0 text-warning"><?php echo e(__('Enter 999999 to make it unlimited')); ?></p> </div> </div> </div> </form> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(__('Close')); ?></button> <button id="" data-form="ajaxForm" type="button" class="submitBtn btn btn-primary"><?php echo e(__('Submit')); ?></button> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('admin.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/id/public_html/resources/views/admin/packages/coupons/index.blade.php ENDPATH**/ ?>