⚝
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 :
7b90021fb4f70c29803af17a7e3ea0fbac27530a.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 use App\Models\Language; $selLang = Language::where('code', request()->input('language'))->first(); ?> <?php if(!empty($selLang->language) && $selLang->language->rtl == 1): ?> <?php $__env->startSection('styles'); ?> <style> form input, form textarea, form select { direction: rtl; } form .note-editor.note-frame .note-editing-area .note-editable { direction: rtl; text-align: right; } </style> <?php $__env->stopSection(); ?> <?php endif; ?> <?php $__env->startSection('content'); ?> <div class="page-header"> <h4 class="page-title"><?php echo e(__('Edit package')); ?> </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(__('Edit')); ?> </a> </li> </ul> </div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="card-title d-inline-block"><?php echo e(__('Edit package')); ?></div> <a class="btn btn-info btn-sm float-right d-inline-block" href="<?php echo e(route('admin.package.index')); ?>"> <span class="btn-label"> <i class="fas fa-backward"></i> </span> <?php echo e(__('Back')); ?> </a> </div> <div class="card-body pt-5 pb-5"> <div class="row"> <div class="col-lg-6 offset-lg-3"> <form id="ajaxEditForm" class="" action="<?php echo e(route('admin.package.update')); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <input type="hidden" name="package_id" value="<?php echo e($package->id); ?>"> <div class="form-group"> <label for="title"><?php echo e(__('Package title')); ?>*</label> <input id="title" type="text" class="form-control" name="title" value="<?php echo e($package->title); ?>" placeholder="<?php echo e(__('Enter Package title')); ?>"> <p id="eerrtitle" class="mb-0 text-danger em"></p> </div> <div class="form-group"> <label for="price"><?php echo e(__('Price')); ?> (<?php echo e($bex->base_currency_text); ?>)*</label> <input id="price" type="number" class="form-control" name="price" placeholder="<?php echo e(__('Enter Package price')); ?>" value="<?php echo e($package->price); ?>"> <p class="text-warning"><small><?php echo e(__('If price is 0 , than it will appear as free')); ?></small></p> <p id="eerrprice" class="mb-0 text-danger em"></p> </div> <div class="form-group"> <label for="plan_term"><?php echo e(__('Package term')); ?>*</label> <select id="plan_term" name="term" class="form-control"> <option value="" selected disabled><?php echo e(__('Choose a Package term')); ?></option> <option value="monthly" <?php echo e($package->term == 'monthly' ? 'selected' : ''); ?>> <?php echo e(__('monthly')); ?></option> <option value="yearly" <?php echo e($package->term == 'yearly' ? 'selected' : ''); ?>> <?php echo e(__('yearly')); ?></option> <option value="lifetime" <?php echo e($package->term == 'lifetime' ? 'selected' : ''); ?>> <?php echo e(__('lifetime')); ?></option> </select> <p id="eerrterm" class="mb-0 text-danger em"></p> </div> <?php $permissions = $package->features; if (!empty($package->features)) { $permissions = json_decode($permissions, true); } ?> <div class="form-group"> <label class="form-label"><?php echo e(__('Package Features')); ?></label> <div class="selectgroup selectgroup-pills"> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="Custom Domain" class="selectgroup-input" <?php if(is_array($permissions) && in_array('Custom Domain', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('Custom Domain')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="Subdomain" class="selectgroup-input" <?php if(is_array($permissions) && in_array('Subdomain', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('Subdomain')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="QR Builder" class="selectgroup-input" <?php if(is_array($permissions) && in_array('QR Builder', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('QR Builder')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="vCard" class="selectgroup-input" <?php if(is_array($permissions) && in_array('vCard', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('vCard')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="Online CV & Export" class="selectgroup-input" <?php if(is_array($permissions) && in_array('Online CV & Export', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('Online CV & Export')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="Follow/Unfollow" class="selectgroup-input" <?php if(is_array($permissions) && in_array('Follow/Unfollow', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('Follow/Unfollow')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="Blog" class="selectgroup-input" <?php if(is_array($permissions) && in_array('Blog', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('Blog')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="Portfolio" class="selectgroup-input" <?php if(is_array($permissions) && in_array('Portfolio', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('Portfolio')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="Achievements" class="selectgroup-input" <?php if(is_array($permissions) && in_array('Achievements', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('Achievements')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="Skill" class="selectgroup-input" <?php if(is_array($permissions) && in_array('Skill', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('Skill')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="Service" class="selectgroup-input" <?php if(is_array($permissions) && in_array('Service', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('Service')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="Experience" class="selectgroup-input" <?php if(is_array($permissions) && in_array('Experience', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('Experience')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="Testimonial" class="selectgroup-input" <?php if(is_array($permissions) && in_array('Testimonial', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('Testimonial')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="Appointment" class="selectgroup-input" <?php if(is_array($permissions) && in_array('Appointment', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('Appointment')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="Google Analytics" class="selectgroup-input" <?php if(is_array($permissions) && in_array('Google Analytics', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('Google Analytics')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="Disqus" class="selectgroup-input" <?php if(is_array($permissions) && in_array('Disqus', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('Disqus')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="WhatsApp" class="selectgroup-input" <?php if(is_array($permissions) && in_array('WhatsApp', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('WhatsApp')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="Facebook Pixel" class="selectgroup-input" <?php if(is_array($permissions) && in_array('Facebook Pixel', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('Facebook Pixel')); ?></span> </label> <label class="selectgroup-item"> <input type="checkbox" name="features[]" value="Tawk.to" class="selectgroup-input" <?php if(is_array($permissions) && in_array('Tawk.to', $permissions)): ?> checked <?php endif; ?>> <span class="selectgroup-button"><?php echo e(__('Tawk.to')); ?></span> </label> </div> </div> <div class="form-group"> <label class="form-label"><?php echo e(__('Featured')); ?> *</label> <div class="selectgroup w-100"> <label class="selectgroup-item"> <input type="radio" name="featured" value="1" class="selectgroup-input" <?php echo e($package->featured == 1 ? 'checked' : ''); ?>> <span class="selectgroup-button"><?php echo e(__('Yes')); ?></span> </label> <label class="selectgroup-item"> <input type="radio" name="featured" value="0" class="selectgroup-input" <?php echo e($package->featured == 0 ? 'checked' : ''); ?>> <span class="selectgroup-button"><?php echo e(__('No')); ?></span> </label> </div> </div> <div class="form-group"> <label class="form-label"><?php echo e(__('Trial')); ?> *</label> <div class="selectgroup w-100"> <label class="selectgroup-item"> <input type="radio" name="is_trial" value="1" class="selectgroup-input" <?php echo e($package->is_trial == 1 ? 'checked' : ''); ?>> <span class="selectgroup-button"><?php echo e(__('Yes')); ?></span> </label> <label class="selectgroup-item"> <input type="radio" name="is_trial" value="0" class="selectgroup-input" <?php echo e($package->is_trial == 0 ? 'checked' : ''); ?>> <span class="selectgroup-button"><?php echo e(__('No')); ?></span> </label> </div> </div> <?php if($package->is_trial == 1): ?> <div class="form-group" id="trial_day" style="display: block"> <label for="trial_days_2"><?php echo e(__('Trial days')); ?>*</label> <input id="trial_days_2" type="number" class="form-control" name="trial_days" placeholder="<?php echo e(__('Enter trial days')); ?>" value="<?php echo e($package->trial_days); ?>"> </div> <?php else: ?> <div class="form-group" id="trial_day" style="display: none"> <label for="trial_days_1"><?php echo e(__('Trial days')); ?>*</label> <input id="trial_days_1" type="number" class="form-control" name="trial_days" placeholder="<?php echo e(__('Enter trial days')); ?>" value="<?php echo e($package->trial_days); ?>"> </div> <?php endif; ?> <p id="eerrtrial_days" class="mb-0 text-danger em"></p> <div class="form-group"> <label for="status"><?php echo e(__('Status')); ?> *</label> <select id="status" class="form-control ltr" name="status"> <option value="" selected disabled><?php echo e(__('Select a status')); ?></option> <option value="1" <?php echo e($package->status == '1' ? 'selected' : ''); ?>><?php echo e(__('Active')); ?> </option> <option value="0" <?php echo e($package->status == '0' ? 'selected' : ''); ?>><?php echo e(__('Deactive')); ?> </option> </select> <p id="eerrstatus" class="mb-0 text-danger em"></p> </div> <div class="form-group <?php if(is_array($permissions) && in_array('vCard', $permissions)): ?> <?php else: ?> vcrd-none <?php endif; ?> v-card-box "> <label for=""><?php echo e(__('Number of vcards')); ?> * </label> <input type="number" class="form-control" name="number_of_vcards" value="<?php echo e($package->number_of_vcards); ?>"> <p class="text-warning"><?php echo e(__('Enter 999999 , then it will appear as unlimited')); ?></p> </div> <div class="form-group"> <label for="meta_keywords"><?php echo e(__('Meta Keywords')); ?></label> <input id="meta_keywords" type="text" class="form-control" name="meta_keywords" value="<?php echo e($package->meta_keywords); ?>" data-role="tagsinput"> </div> <div class="form-group"> <label for="meta_description"><?php echo e(__('Meta Description')); ?></label> <textarea id="meta_description" type="text" class="form-control" name="meta_description" rows="5"><?php echo e($package->meta_description); ?></textarea> </div> </form> </div> </div> </div> <div class="card-footer"> <div class="form"> <div class="form-group from-show-notify row"> <div class="col-12 text-center"> <button type="submit" id="updateBtn" class="btn btn-success "><?php echo e(__('Update')); ?></button> </div> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script src="<?php echo e(asset('assets/admin/js/packages.js')); ?>"></script> <script src="<?php echo e(asset('assets/admin/js/edit-package.js')); ?>"></script> <?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/edit.blade.php ENDPATH**/ ?>