|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/erp.theinteractive.co.in/storage/framework/views/ |
Upload File : |
<?php
$dir = asset(Storage::url('uploads/plan'));
?>
<?php $__env->startSection('page-title'); ?>
<?php echo e(__('Manage Plan')); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('breadcrumb'); ?>
<li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>"><?php echo e(__('Dashboard')); ?></a></li>
<li class="breadcrumb-item active" aria-current="page"><?php echo e(__('Plan')); ?></li>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('action-btn'); ?>
<div class="float-end">
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('create plan')): ?>
<?php if(isset($admin_payment_setting) && !empty($admin_payment_setting)): ?>
<?php if(
$admin_payment_setting['is_manually_payment_enabled'] == 'on' ||
$admin_payment_setting['is_bank_transfer_enabled'] == 'on' ||
$admin_payment_setting['is_stripe_enabled'] == 'on' ||
$admin_payment_setting['is_paypal_enabled'] == 'on' ||
$admin_payment_setting['is_paystack_enabled'] == 'on' ||
$admin_payment_setting['is_flutterwave_enabled'] == 'on' ||
$admin_payment_setting['is_razorpay_enabled'] == 'on' ||
$admin_payment_setting['is_mercado_enabled'] == 'on' ||
$admin_payment_setting['is_paytm_enabled'] == 'on' ||
$admin_payment_setting['is_mollie_enabled'] == 'on' ||
$admin_payment_setting['is_skrill_enabled'] == 'on' ||
$admin_payment_setting['is_coingate_enabled'] == 'on' ||
$admin_payment_setting['is_paymentwall_enabled'] == 'on' ||
$admin_payment_setting['is_toyyibpay_enabled'] == 'on' ||
$admin_payment_setting['is_payfast_enabled'] == 'on' ||
$admin_payment_setting['is_iyzipay_enabled'] == 'on' ||
$admin_payment_setting['is_sspay_enabled'] == 'on' ||
$admin_payment_setting['is_paytab_enabled'] == 'on' ||
$admin_payment_setting['is_benefit_enabled'] == 'on' ||
$admin_payment_setting['is_cashfree_enabled'] == 'on' ||
$admin_payment_setting['is_aamarpay_enabled'] == 'on' ||
$admin_payment_setting['is_paytr_enabled'] == 'on' ||
$admin_payment_setting['is_yookassa_enabled'] == 'on'): ?>
<a href="#" data-size="lg" data-url="<?php echo e(route('plans.create')); ?>" data-ajax-popup="true"
data-bs-toggle="tooltip" title="<?php echo e(__('Create')); ?>" data-title="<?php echo e(__('Create New Plan')); ?>"
class="btn btn-sm btn-primary">
<i class="ti ti-plus"></i>
</a>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="row">
<?php $__currentLoopData = $plans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $plan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="plan_card">
<div class="card price-card price-1 wow animate__fadeInUp" data-wow-delay="0.2s"
style="
visibility: visible;
animation-delay: 0.2s;
animation-name: fadeInUp;
">
<div class="card-body">
<span class="price-badge bg-primary"><?php echo e($plan->name); ?></span>
<?php if(\Auth::user()->type == 'company' && \Auth::user()->plan == $plan->id): ?>
<div class="d-flex flex-row-reverse m-0 p-0 active-tag">
<span class=" align-items-right">
<i class="f-10 lh-1 fas fa-circle text-primary"></i>
<span class="ms-2"><?php echo e(__('Active')); ?></span>
</span>
</div>
<?php endif; ?>
<?php if(\Auth::user()->type == 'super admin' && $plan->price > 0): ?>
<div class="d-flex flex-row-reverse m-0 p-0 active-tag">
<div class="form-check form-switch custom-switch-v1 float-end">
<input type="checkbox" name="plan_disable"
class="form-check-input input-primary is_disable" value="1"
data-id='<?php echo e($plan->id); ?>'
data-name="<?php echo e(__('plan')); ?>"
<?php echo e($plan->is_disable == 1 ? 'checked' : ''); ?>>
<label class="form-check-label" for="plan_disable"></label>
</div>
</div>
<?php endif; ?>
<h1 class="mb-4 f-w-600 ">
<?php echo e(isset($admin_payment_setting['currency_symbol']) ? $admin_payment_setting['currency_symbol'] : '$'); ?><?php echo e(number_format($plan->price)); ?>
<small class="text-sm">/<?php echo e(__(\App\Models\Plan::$arrDuration[$plan->duration])); ?></small>
</h1>
<p class="mb-0">
<?php echo e(__('Free Trial Days : ') . __($plan->trial_days ? $plan->trial_days : 0)); ?><br />
</p>
<div class="row ">
<div class="col-6">
<ul class="list-unstyled my-5">
<li class="white-sapce-nowrap"><span class="theme-avtar"><i
class="text-primary ti ti-circle-plus"></i></span><?php echo e($plan->max_users == -1 ? __('Unlimited') : $plan->max_users); ?>
<?php echo e(__('Users')); ?></li>
<li class="text-wrap"><span class="theme-avtar"><i
class="text-primary ti ti-circle-plus"></i></span><?php echo e($plan->max_customers == -1 ? __('Unlimited') : $plan->max_customers); ?>
<?php echo e(__('Customers')); ?></li>
<li class="white-sapce-nowrap"><span class="theme-avtar"><i
class="text-primary ti ti-circle-plus"></i></span><?php echo e($plan->max_venders == -1 ? __('Unlimited') : $plan->max_venders); ?>
<?php echo e(__('Vendors')); ?></li>
<li class="white-sapce-nowrap"><span class="theme-avtar"><i
class="text-primary ti ti-circle-plus"></i></span><?php echo e($plan->max_clients == -1 ? __('Unlimited') : $plan->max_clients); ?>
<?php echo e(__('Clients')); ?></li>
<li class="white-sapce-nowrap"><span class="theme-avtar"><i
class="text-primary ti ti-circle-plus"></i></span><?php echo e($plan->storage_limit == -1 ? __('Unlimited') : $plan->storage_limit . ' MB'); ?>
<?php echo e(__('Storage')); ?></li>
</ul>
</div>
<div class="col-6">
<ul class="list-unstyled my-5">
<li class="white-sapce-nowrap"><span class="theme-avtar"><i
class="text-primary ti ti-circle-plus"></i></span><?php echo e($plan->account == 1 ? __('Enable') : __('Disable')); ?>
<?php echo e(__('Account')); ?></li>
<li class="white-sapce-nowrap"><span class="theme-avtar"><i
class="text-primary ti ti-circle-plus"></i></span><?php echo e($plan->crm == 1 ? __('Enable') : __('Disable')); ?>
<?php echo e(__('CRM')); ?></li>
<li class="white-sapce-nowrap"><span class="theme-avtar"><i
class="text-primary ti ti-circle-plus"></i></span><?php echo e($plan->hrm == 1 ? __('Enable') : __('Disable')); ?>
<?php echo e(__('HRM')); ?></li>
<li class="white-sapce-nowrap"><span class="theme-avtar"><i
class="text-primary ti ti-circle-plus"></i></span><?php echo e($plan->project == 1 ? __('Enable') : __('Disable')); ?>
<?php echo e(__('Project')); ?></li>
<li class="white-sapce-nowrap"><span class="theme-avtar"><i
class="text-primary ti ti-circle-plus"></i></span><?php echo e($plan->pos == 1 ? __('Enable') : __('Disable')); ?>
<?php echo e(__('POS')); ?></li>
<li class="white-sapce-nowrap"><span class="theme-avtar"><i
class="text-primary ti ti-circle-plus"></i></span><?php echo e($plan->chatgpt == 1 ? __('Enable') : __('Disable')); ?>
<?php echo e(__('Chat GPT')); ?></li>
</ul>
</div>
</div>
<?php if(\Auth::user()->type == 'super admin'): ?>
<div class="row align-items-center">
<div class="col-3"></div>
<div class="col-2 me-3">
<a title="<?php echo e(__('Edit Plan')); ?>" href="#" class="btn btn-primary btn-icon m-1"
data-url="<?php echo e(route('plans.edit', $plan->id)); ?>" data-ajax-popup="true"
data-title="<?php echo e(__('Edit Plan')); ?>" data-size="lg" data-toggle="tooltip"
data-original-title="<?php echo e(__('Edit')); ?>">
<i class="ti ti-edit"></i>
</a>
</div>
<?php if($plan->price > 0): ?>
<div class="col-3">
<?php echo Form::open([
'method' => 'DELETE',
'route' => ['plans.destroy', $plan->id],
'id' => 'delete-form-' . $plan->id,
]); ?>
<a href="#!" class="bs-pass-para btn btn-danger btn-icon m-1">
<i class="ti ti-trash"></i>
</a>
<?php echo Form::close(); ?>
</div>
<?php endif; ?>
<div class="col-3"></div>
</div>
<?php endif; ?>
<?php if(isset($admin_payment_setting) && !empty($admin_payment_setting)): ?>
<?php if(
$admin_payment_setting['is_manually_payment_enabled'] == 'on' ||
$admin_payment_setting['is_bank_transfer_enabled'] == 'on' ||
$admin_payment_setting['is_stripe_enabled'] == 'on' ||
$admin_payment_setting['is_paypal_enabled'] == 'on' ||
$admin_payment_setting['is_paystack_enabled'] == 'on' ||
$admin_payment_setting['is_flutterwave_enabled'] == 'on' ||
$admin_payment_setting['is_razorpay_enabled'] == 'on' ||
$admin_payment_setting['is_mercado_enabled'] == 'on' ||
$admin_payment_setting['is_paytm_enabled'] == 'on' ||
$admin_payment_setting['is_mollie_enabled'] == 'on' ||
$admin_payment_setting['is_skrill_enabled'] == 'on' ||
$admin_payment_setting['is_coingate_enabled'] == 'on' ||
$admin_payment_setting['is_paymentwall_enabled'] == 'on' ||
$admin_payment_setting['is_paymentwall_enabled'] == 'on' ||
$admin_payment_setting['is_toyyibpay_enabled'] == 'on' ||
$admin_payment_setting['is_payfast_enabled'] == 'on' ||
$admin_payment_setting['is_iyzipay_enabled'] == 'on' ||
$admin_payment_setting['is_sspay_enabled'] == 'on' ||
$admin_payment_setting['is_paytab_enabled'] == 'on' ||
$admin_payment_setting['is_benefit_enabled'] == 'on' ||
$admin_payment_setting['is_cashfree_enabled'] == 'on' ||
$admin_payment_setting['is_aamarpay_enabled'] == 'on' ||
$admin_payment_setting['is_paytr_enabled'] == 'on' ||
$admin_payment_setting['is_yookassa_enabled'] == 'on' ||
$admin_payment_setting['is_midtrans_enabled'] == 'on' ||
$admin_payment_setting['is_xendit_enabled'] == 'on'): ?>
<?php if(\Auth::user()->type != 'super admin'): ?>
<?php if(
$plan->price > 0 &&
\Auth::user()->trial_plan == 0 &&
\Auth::user()->plan != $plan->id && $plan->trial == 1): ?>
<a href="<?php echo e(route('plan.trial', \Illuminate\Support\Facades\Crypt::encrypt($plan->id))); ?>"
class="btn btn-lg btn-primary btn-icon m-1"><?php echo e(__('Start Free Trial')); ?></a>
<?php endif; ?>
<?php if($plan->id != \Auth::user()->plan): ?>
<?php if($plan->price > 0): ?>
<a href="<?php echo e(route('stripe', \Illuminate\Support\Facades\Crypt::encrypt($plan->id))); ?>"
class="btn btn-lg btn-primary btn-icon m-1"><?php echo e(__('Buy Plan')); ?></a>
<?php endif; ?>
<?php endif; ?>
<?php if($plan->id != 1 && $plan->id != \Auth::user()->plan): ?>
<?php if(\Auth::user()->requested_plan != $plan->id): ?>
<a href="<?php echo e(route('send.request', [\Illuminate\Support\Facades\Crypt::encrypt($plan->id)])); ?>"
class="btn btn-lg btn-primary btn-icon m-1"
data-title="<?php echo e(__('Send Request')); ?>" data-bs-toggle="tooltip"
title="<?php echo e(__('Send Request')); ?>">
<span class="btn-inner--icon"><i class="ti ti-corner-up-right"></i></span>
</a>
<?php else: ?>
<a href="<?php echo e(route('request.cancel', \Auth::user()->id)); ?>"
class="btn btn-danger btn-icon m-1"
data-title="<?php echo e(__('`Cancle Request')); ?>" data-bs-toggle="tooltip"
title="<?php echo e(__('Cancle Request')); ?>">
<span class="btn-inner--icon"><i class="ti ti-x"></i></span>
</a>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php if(\Auth::user()->type == 'company' && \Auth::user()->trial_expire_date): ?>
<?php if(\Auth::user()->type == 'company' && \Auth::user()->trial_plan == $plan->id): ?>
<p class="display-total-time mb-0">
<?php echo e(__('Plan Trial Expired : ')); ?>
<?php echo e(!empty(\Auth::user()->trial_expire_date) ? \Auth::user()->dateFormat(\Auth::user()->trial_expire_date) : 'lifetime'); ?>
</p>
<?php endif; ?>
<?php else: ?>
<?php if(\Auth::user()->type == 'company' && \Auth::user()->plan == $plan->id): ?>
<p class="display-total-time mb-0">
<?php echo e(__('Plan Expired : ')); ?>
<?php echo e(!empty(\Auth::user()->plan_expire_date) ? \Auth::user()->dateFormat(\Auth::user()->plan_expire_date) : 'lifetime'); ?>
</p>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('script-page'); ?>
<script>
$(document).on('change', '#trial', function() {
if ($(this).is(':checked')) {
$('.plan_div').removeClass('d-none');
$('#trial_days').attr("required", true);
} else {
$('.plan_div').addClass('d-none');
$('#trial_days').removeAttr("required");
}
});
</script>
<script>
$(document).on("click", ".is_disable", function() {
var id = $(this).attr('data-id');
var is_disable = ($(this).is(':checked')) ? $(this).val() : 0;
$.ajax({
url: '<?php echo e(route('plan.disable')); ?>',
type: 'POST',
data: {
"is_disable": is_disable,
"id": id,
"_token": "<?php echo e(csrf_token()); ?>",
},
success: function(data) {
if (data.success) {
show_toastr('success', data.success);
} else {
show_toastr('error', data.error);
}
}
});
});
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/erp.theinteractive.co.in/resources/views/plan/index.blade.php ENDPATH**/ ?>