<?php
/**
* File          : subscription-plans.blade.php
----------------------------------------------------------------------------- */
?>

<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('users.partials.header', [
    'title' => __tr('Subscription Plans') . ' '. auth()->user()->name,
    'description' => '',
    'class' => 'col-lg-12'
    ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
    <!-- Start of Page Wrapper -->
    <div class="container-fluid accordion" id="lwSubscriptionPlansContainer">
        <div class="row">
            
            <div class="col-xl-12 mb-5">
                <div class="card lw-subscription-cards ">
                    <h3 class="card-header" data-toggle="collapse" data-target="#lwFreePlanBlock" aria-expanded="true"
                    aria-controls="lwFreePlanBlock">
                        <?php echo e(__tr('Free Plan Configurations')); ?>

                    </h3>
                    <div class="card-body collapse" id="lwFreePlanBlock" data-parent="#lwSubscriptionPlansContainer">
                        <?php
                            $freeFeatures = $freePlan['features'];
                        ?>
                        <!--  Add New Plan Form -->
                        <?php if (isset($component)) { $__componentOriginald0b55ee435ec3aeeadffee8b0df479da = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald0b55ee435ec3aeeadffee8b0df479da = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.form','data' => ['id' => 'lwAddNewPlanForm-Free','action' => route('manage.configuration.subscription-plans.write.update')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.form'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['id' => 'lwAddNewPlanForm-Free','action' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('manage.configuration.subscription-plans.write.update'))]); ?>
                            <!-- form fields form fields -->
                            <input type="hidden" name="config_plan_id" value="free">
                            <?php if (isset($component)) { $__componentOriginal85a79a3f590ffcc2d6473eb3120eb493 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.checkbox','data' => ['dataLwPlugin' => 'lwSwitchery','id' => 'selectFreePlan','name' => 'enabled','checked' => $freePlan['enabled'],'label' => __tr('Enable this Plan')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.checkbox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['data-lw-plugin' => 'lwSwitchery','id' => 'selectFreePlan','name' => 'enabled','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($freePlan['enabled']),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Enable this Plan'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493)): ?>
<?php $attributes = $__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493; ?>
<?php unset($__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal85a79a3f590ffcc2d6473eb3120eb493)): ?>
<?php $component = $__componentOriginal85a79a3f590ffcc2d6473eb3120eb493; ?>
<?php unset($__componentOriginal85a79a3f590ffcc2d6473eb3120eb493); ?>
<?php endif; ?>
                            <hr class="my-3">
                            <!-- Title -->
                            <?php if (isset($component)) { $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.input-field','data' => ['type' => 'text','id' => 'free_title','name' => 'title','label' => __tr('Title'),'required' => true,'placeholder' => ''.e(__tr('your plan title')).'','value' => ''.e(strtr($freePlan['title'] ?? '', ['__title__' => '']) ?? '').'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.input-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'text','id' => 'free_title','name' => 'title','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Title')),'required' => true,'placeholder' => ''.e(__tr('your plan title')).'','value' => ''.e(strtr($freePlan['title'] ?? '', ['__title__' => '']) ?? '').'']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $attributes = $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $component = $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
                            <div class="">
                                <h3 class="text-danger mt-4"><?php echo e(__tr('Feature Limits')); ?></h3>
                                <div class="row pl-3">
                                    <?php if(!__isEmpty($freeFeatures)): ?>
                                        <?php $__currentLoopData = $freeFeatures; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $featureKey => $feature): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <?php
                                            $structureFeature = $freePlanStructure['features'][$featureKey];
                                        ?>
                                            <fieldset class="col-xl-3 mr-4 float-left">
                                                <legend><?php echo e($structureFeature['description']); ?></legend>
                                                <!-- Description -->
                                                <?php if(isset($structureFeature['type']) and ($structureFeature['type'] == 'switch')): ?>
                                                <input type="hidden" name="<?php echo e($featureKey); ?>_limit" value="0">
                                                <?php if (isset($component)) { $__componentOriginal85a79a3f590ffcc2d6473eb3120eb493 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.checkbox','data' => ['id' => 'free_'.e($featureKey).'_limit','name' => ''.e($featureKey).'_limit','dataLwPlugin' => 'lwSwitchery','checked' => $feature['limit'],'label' => __tr('Enable __itemDescription__', [
                                                    '__itemDescription__' => $structureFeature['description']
                                                ]),'value' => '1']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.checkbox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['id' => 'free_'.e($featureKey).'_limit','name' => ''.e($featureKey).'_limit','data-lw-plugin' => 'lwSwitchery','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($feature['limit']),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Enable __itemDescription__', [
                                                    '__itemDescription__' => $structureFeature['description']
                                                ])),'value' => '1']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493)): ?>
<?php $attributes = $__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493; ?>
<?php unset($__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal85a79a3f590ffcc2d6473eb3120eb493)): ?>
<?php $component = $__componentOriginal85a79a3f590ffcc2d6473eb3120eb493; ?>
<?php unset($__componentOriginal85a79a3f590ffcc2d6473eb3120eb493); ?>
<?php endif; ?>
                                                <?php else: ?>
                                                <!-- limit -->
                                                <?php if (isset($component)) { $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.input-field','data' => ['appendText' => $structureFeature['limit_duration_title'] ?? '','type' => 'number','id' => 'free_'.e($featureKey).'_limit','name' => ''.e($featureKey).'_limit','label' => $structureFeature['description'],'required' => true,'min' => '-1','placeholder' => ''.e($feature['description']).'','value' => ''.e(is_numeric($feature['limit'] ?? '') ? $feature['limit'] : '').'','helpText' => __tr('Use -1 for unlimited')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.input-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['appendText' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($structureFeature['limit_duration_title'] ?? ''),'type' => 'number','id' => 'free_'.e($featureKey).'_limit','name' => ''.e($featureKey).'_limit','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($structureFeature['description']),'required' => true,'min' => '-1','placeholder' => ''.e($feature['description']).'','value' => ''.e(is_numeric($feature['limit'] ?? '') ? $feature['limit'] : '').'','helpText' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Use -1 for unlimited'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $attributes = $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $component = $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
                                                    <?php endif; ?>
                                            </fieldset>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <?php endif; ?>
                                </div>

                            </div>
                            <div class="mt-5">
                                <!-- Submit Button -->
                                <button type="submit" class="btn btn-primary"><?php echo e(__tr('Update')); ?></button>
                            </div>
                            <!-- form footer -->
                         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald0b55ee435ec3aeeadffee8b0df479da)): ?>
<?php $attributes = $__attributesOriginald0b55ee435ec3aeeadffee8b0df479da; ?>
<?php unset($__attributesOriginald0b55ee435ec3aeeadffee8b0df479da); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald0b55ee435ec3aeeadffee8b0df479da)): ?>
<?php $component = $__componentOriginald0b55ee435ec3aeeadffee8b0df479da; ?>
<?php unset($__componentOriginald0b55ee435ec3aeeadffee8b0df479da); ?>
<?php endif; ?>
                        <!--/  Add New Plan Form -->
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <?php $__currentLoopData = $planStructure; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $planKey => $plan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                    $savedPlan = $planDetails[$planKey];
                    $planId = $plan['id'];
                    $features = $plan['features'];
                ?>
                <div class="col-xl-12 mb-5">
                    <div class="card lw-subscription-cards">
                        <h3 class="card-header" data-toggle="collapse" data-target="#lwPaidBlock<?php echo e($planId); ?>" aria-expanded="true"
                        aria-controls="lwPaidBlock<?php echo e($planId); ?>">
                            #<?php echo e($planId); ?> <?php echo e(__tr('Plan Configurations')); ?>

                        </h3>
                        <div class="card-body collapse" id="lwPaidBlock<?php echo e($planId); ?>" data-parent="#lwSubscriptionPlansContainer">
                            <!--  Add New Plan Form -->
                            <?php if (isset($component)) { $__componentOriginald0b55ee435ec3aeeadffee8b0df479da = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald0b55ee435ec3aeeadffee8b0df479da = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.form','data' => ['id' => 'lwAddNewPlanForm-'.e($planId).'','action' => route('manage.configuration.subscription-plans.write.update')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.form'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['id' => 'lwAddNewPlanForm-'.e($planId).'','action' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('manage.configuration.subscription-plans.write.update'))]); ?>
                                <!-- form fields form fields -->
                                <input type="hidden" name="config_plan_id" value="<?php echo e($planId); ?>">
                                <?php if (isset($component)) { $__componentOriginal85a79a3f590ffcc2d6473eb3120eb493 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.checkbox','data' => ['id' => 'select_'.e($planId).'','name' => 'enabled','checked' => $savedPlan['enabled'],'dataLwPlugin' => 'lwSwitchery','label' => __tr('Enable this Plan')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.checkbox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['id' => 'select_'.e($planId).'','name' => 'enabled','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($savedPlan['enabled']),'data-lw-plugin' => 'lwSwitchery','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Enable this Plan'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493)): ?>
<?php $attributes = $__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493; ?>
<?php unset($__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal85a79a3f590ffcc2d6473eb3120eb493)): ?>
<?php $component = $__componentOriginal85a79a3f590ffcc2d6473eb3120eb493; ?>
<?php unset($__componentOriginal85a79a3f590ffcc2d6473eb3120eb493); ?>
<?php endif; ?>
                                <hr class="my-3">
                                <!-- Title -->
                                <?php if (isset($component)) { $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.input-field','data' => ['type' => 'text','id' => ''.e($planId).'_title','name' => 'title','label' => __tr('Title'),'required' => true,'placeholder' => ''.e(__tr('your plan title')).'','value' => ''.e(strtr($savedPlan['title'] ?? $plan['title'] ?? '', ['__title__' => '']) ?? '').'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.input-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'text','id' => ''.e($planId).'_title','name' => 'title','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Title')),'required' => true,'placeholder' => ''.e(__tr('your plan title')).'','value' => ''.e(strtr($savedPlan['title'] ?? $plan['title'] ?? '', ['__title__' => '']) ?? '').'']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $attributes = $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $component = $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
                                <h3 class="text-danger mt-4"><?php echo e(__tr('Feature Limits')); ?></h3>
                                <div class="row pl-3">
                                    <?php if(!__isEmpty($features)): ?>
                                        <?php $__currentLoopData = $features; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $featureKey => $feature): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php
                                                $structureFeature = $feature;
                                                $feature = $savedPlan['features'][$featureKey];
                                            ?>
                                            <fieldset class="col-xl-3 mr-4 float-left">
                                                <legend><?php echo e($structureFeature['description']); ?></legend>
                                                <!-- Description -->
                                                <?php if(isset($structureFeature['type']) and ($structureFeature['type'] == 'switch')): ?>
                                                <input type="hidden" name="<?php echo e($featureKey); ?>_limit" value="0">
                                                <?php if (isset($component)) { $__componentOriginal85a79a3f590ffcc2d6473eb3120eb493 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.checkbox','data' => ['id' => ''.e($planId).'_'.e($featureKey).'_limit','name' => ''.e($featureKey).'_limit','dataLwPlugin' => 'lwSwitchery','checked' => $feature['limit'],'label' => __tr('Enable __itemDescription__', [
                                                    '__itemDescription__' => $structureFeature['description']
                                                ]),'value' => '1']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.checkbox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['id' => ''.e($planId).'_'.e($featureKey).'_limit','name' => ''.e($featureKey).'_limit','data-lw-plugin' => 'lwSwitchery','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($feature['limit']),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Enable __itemDescription__', [
                                                    '__itemDescription__' => $structureFeature['description']
                                                ])),'value' => '1']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493)): ?>
<?php $attributes = $__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493; ?>
<?php unset($__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal85a79a3f590ffcc2d6473eb3120eb493)): ?>
<?php $component = $__componentOriginal85a79a3f590ffcc2d6473eb3120eb493; ?>
<?php unset($__componentOriginal85a79a3f590ffcc2d6473eb3120eb493); ?>
<?php endif; ?>
                                                <?php else: ?>
                                                <?php if (isset($component)) { $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.input-field','data' => ['appendText' => $structureFeature['limit_duration_title'] ?? '','type' => 'number','id' => ''.e($planId).'_'.e($featureKey).'_limit','name' => ''.e($featureKey).'_limit','label' => $structureFeature['description'],'required' => true,'min' => '-1','placeholder' => ''.e($feature['description']).'','value' => ''.e(is_numeric($feature['limit'] ?? '') ? $feature['limit'] : '').'','helpText' => __tr('Use -1 for unlimited')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.input-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['appendText' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($structureFeature['limit_duration_title'] ?? ''),'type' => 'number','id' => ''.e($planId).'_'.e($featureKey).'_limit','name' => ''.e($featureKey).'_limit','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($structureFeature['description']),'required' => true,'min' => '-1','placeholder' => ''.e($feature['description']).'','value' => ''.e(is_numeric($feature['limit'] ?? '') ? $feature['limit'] : '').'','helpText' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Use -1 for unlimited'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $attributes = $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $component = $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
                                                    <?php endif; ?>
                                            </fieldset>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <?php endif; ?>

                                </div>
                                <h3 class="text-danger mt-4"><?php echo e(__tr('Charges')); ?></h3>
                                <!-- Use to show some notes regarding charges or payment gateway -->
                                <?php echo $__env->yieldPushContent('chargesNoteStack'); ?>
                                <!-- /Use to show some notes regarding charges or payment gateway -->
                                <?php if(!__isEmpty($plan['charges'])): ?>
                                    <div class="row">
                                        <div class="col-xl-12">
                                            <?php $__currentLoopData = $plan['charges']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $itemKey => $itemValue): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <?php
                                                    $itemValue = $planDetails[$planKey]['charges'][$itemKey];
                                                ?>
                                                <fieldset class="col-xl-3 float-left mr-4">
                                                    <legend><?php echo e($itemKey); ?></legend>
                                                    <?php if (isset($component)) { $__componentOriginal85a79a3f590ffcc2d6473eb3120eb493 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.checkbox','data' => ['id' => 'select_'.e($planId).'_'.e($itemKey).'','name' => ''.e($itemKey).'_enabled','checked' => $itemValue['enabled'],'dataLwPlugin' => 'lwSwitchery','label' => __tr('Enable this Charge')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.checkbox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['id' => 'select_'.e($planId).'_'.e($itemKey).'','name' => ''.e($itemKey).'_enabled','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($itemValue['enabled']),'data-lw-plugin' => 'lwSwitchery','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Enable this Charge'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493)): ?>
<?php $attributes = $__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493; ?>
<?php unset($__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal85a79a3f590ffcc2d6473eb3120eb493)): ?>
<?php $component = $__componentOriginal85a79a3f590ffcc2d6473eb3120eb493; ?>
<?php unset($__componentOriginal85a79a3f590ffcc2d6473eb3120eb493); ?>
<?php endif; ?>
                                                    <hr class="my-2">
                                                    <?php if (isset($component)) { $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.input-field','data' => ['type' => 'text','id' => ''.e($planId).'_'.e($itemKey).'_plan_price_id','name' => ''.e($itemKey).'_plan_price_id','label' => __tr('Stripe Plan Price ID'),'placeholder' => ''.e(__tr('stripe plan price id')).'','value' => ''.e($itemValue['price_id']).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.input-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'text','id' => ''.e($planId).'_'.e($itemKey).'_plan_price_id','name' => ''.e($itemKey).'_plan_price_id','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Stripe Plan Price ID')),'placeholder' => ''.e(__tr('stripe plan price id')).'','value' => ''.e($itemValue['price_id']).'']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $attributes = $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $component = $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
                                                    <?php if (isset($component)) { $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.input-field','data' => ['type' => 'number','id' => ''.e($planId).'_'.e($itemKey).'_charge','name' => ''.e($itemKey).'_charge','label' => __tr('Charge Amount'),'min' => '0','placeholder' => ''.e(__tr('Charge Amount')).'','value' => ''.e($itemValue['charge']).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.input-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'number','id' => ''.e($planId).'_'.e($itemKey).'_charge','name' => ''.e($itemKey).'_charge','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Charge Amount')),'min' => '0','placeholder' => ''.e(__tr('Charge Amount')).'','value' => ''.e($itemValue['charge']).'']); ?>
                                                         <?php $__env->slot('prependText', null, []); ?> 
                                                            <?php echo e(getCurrencySymbol()); ?>

                                                         <?php $__env->endSlot(); ?>
                                                         <?php $__env->slot('appendText', null, []); ?> 
                                                            <?php echo e(getCurrency()); ?>

                                                         <?php $__env->endSlot(); ?>
                                                     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $attributes = $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $component = $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
                                                </fieldset>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </div>
                                    </div>
                                <?php endif; ?>
                                <div class="text-left mt-3 pb-3">
                                    <input type="hidden" name="charges">
                                </div>
                                <div class="mt-5">
                                    <!-- Submit Button -->
                                    <button type="submit" class="btn btn-primary"><?php echo e(__tr('Update')); ?></button>
                                </div>
                                <!-- form footer -->
                             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald0b55ee435ec3aeeadffee8b0df479da)): ?>
<?php $attributes = $__attributesOriginald0b55ee435ec3aeeadffee8b0df479da; ?>
<?php unset($__attributesOriginald0b55ee435ec3aeeadffee8b0df479da); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald0b55ee435ec3aeeadffee8b0df479da)): ?>
<?php $component = $__componentOriginald0b55ee435ec3aeeadffee8b0df479da; ?>
<?php unset($__componentOriginald0b55ee435ec3aeeadffee8b0df479da); ?>
<?php endif; ?>
                            <!--/  Add New Plan Form -->
                        </div>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', ['title' => ($pageTitle ?? '')], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\waba9\resources\views/configuration/subscription-plans.blade.php ENDPATH**/ ?>