<?php $__env->startSection('title', translate('Premium membership', 'premium')); ?>
<?php $__env->startSection('content'); ?>
    <div class="section">
        <?php if (isset($component)) { $__componentOriginal6af478c7ec7046868d2234c9526963584eafd3a9 = $component; } ?>
<?php $component = App\View\Components\Ad::resolve(['alias' => 'other_pages_top'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('ad'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Ad::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\Illuminate\Support\Arr::toCssClasses('ad-728x90 mb-5'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal6af478c7ec7046868d2234c9526963584eafd3a9)): ?>
<?php $component = $__componentOriginal6af478c7ec7046868d2234c9526963584eafd3a9; ?>
<?php unset($__componentOriginal6af478c7ec7046868d2234c9526963584eafd3a9); ?>
<?php endif; ?>
        <div class="container">
            <div class="section-inner">
                <div class="section-header">
                    <h2 class="section-title"><?php echo e(translate('Our Plans', 'premium')); ?></h2>
                    <p class="section-text text-muted lead">
                        <?php echo e(translate('premium membership plans description', 'premium')); ?></p>
                </div>
                <div class="section-body">
                    <div class="plans">
                        <div
                            class="row row-cols-1 row-cols-md-2 row-cols-lg-3 justify-content-center align-items-center g-3">
                            <?php $__currentLoopData = $plans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $plan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="col">
                                    <div class="plan <?php echo e($plan->isPremium() ? 'premium' : ''); ?>">
                                        <?php if(auth()->guard()->check()): ?>
                                            <?php if($plan->id == subscription()->plan->id): ?>
                                                <div class="plan-badge"><?php echo e(translate('Your Plan', 'premium')); ?></div>
                                            <?php endif; ?>
                                        <?php endif; ?>
                                        <div class="plan-header">
                                            <h4 class="plan-header-title">
                                                <?php if($plan->isPremium()): ?>
                                                    <i class="fa-solid fa-crown"></i>
                                                <?php endif; ?>
                                                <span><?php echo e($plan->name); ?></span>
                                            </h4>
                                            <p class="plan-header-text"><?php echo e($plan->short_description); ?></p>
                                        </div>
                                        <div class="plan-body">
                                            <div class="plan-features">
                                                <div class="plan-feature">
                                                    <?php echo e(translate('Storage Space', 'premium')); ?>

                                                    <span><?php echo e($plan->storageSpaceFormatted()); ?></span>
                                                </div>
                                                <div class="plan-feature">
                                                    <?php echo e(translate('Maximum file size', 'premium')); ?>

                                                    <span><?php echo e($plan->maxFileSizeFormatted()); ?></span>
                                                </div>
                                                <div class="plan-feature">
                                                    <?php echo e(translate('Download waiting time', 'premium')); ?>

                                                    <span><?php echo e($plan->downloadWaitingTimeFormatted()); ?></span>
                                                </div>
                                                <div class="plan-feature">
                                                    <?php echo e(translate('No download Captcha', 'premium')); ?>

                                                    <span>
                                                        <?php if($plan->download_captcha): ?>
                                                            <i class="fa fa-times"></i>
                                                        <?php else: ?>
                                                            <i class="fa fa-check"></i>
                                                        <?php endif; ?>
                                                    </span>
                                                </div>
                                                <div class="plan-feature">
                                                    <?php echo e(translate('No Advertisements', 'premium')); ?>

                                                    <span>
                                                        <?php if($plan->advertisements): ?>
                                                            <i class="fa fa-times"></i>
                                                        <?php else: ?>
                                                            <i class="fa fa-check"></i>
                                                        <?php endif; ?>
                                                    </span>
                                                </div>
                                                <div class="plan-feature">
                                                    <?php echo e(translate('When are your files deleted?', 'premium')); ?>

                                                    <?php if($plan->file_expiry_days): ?>
                                                        <span><?php echo e(str(translate('{expiry_days} after last download', 'premium'))->replace('{expiry_days}', $plan->fileExpiryDaysFormatted())); ?></span>
                                                    <?php else: ?>
                                                        <span><?php echo e($plan->fileExpiryDaysFormatted()); ?></span>
                                                    <?php endif; ?>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="plan-footer">
                                            <?php if($plan->isPremium()): ?>
                                                <button class="btn btn-light btn-md radius radius-md w-100 text-primary"
                                                    data-link="#choosePlan"><?php echo e(translate('Choose', 'premium')); ?></button>
                                            <?php endif; ?>
                                            <?php if($plan->isForUsers() && !auth()->user()): ?>
                                                <a href="<?php echo e(route('register')); ?>"
                                                    class="btn btn-secondary btn-md radius radius-md w-100"><?php echo e(translate('Sign Up', 'auth')); ?></a>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    </div>
                    <div id="choosePlan" class="choose-plan">
                        <h3 class="choose-plan-title text-center">
                            <i class="fa fa-lock text-success me-2"></i>
                            <span><?php echo e(translate('Payments are 100% secure', 'premium')); ?></span>
                        </h3>
                        <div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4 g-3 justify-content-center">
                            <?php $__currentLoopData = $premiumPlans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $premiumPlan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="col">
                                    <div class="pricing">
                                        <div class="pricing-header">
                                            <div class="pricing-duration">
                                                <?php if($premiumPlan->interval == 1): ?>
                                                    <?php echo e($premiumPlan->interval . ' ' . translate('day', 'premium')); ?>

                                                <?php else: ?>
                                                    <?php echo e($premiumPlan->interval . ' ' . translate('days', 'premium')); ?>

                                                <?php endif; ?>
                                            </div>
                                            <div class="pricing-amount"><?php echo e(priceSymbol($premiumPlan->price)); ?></div>
                                        </div>
                                        <div class="pricing-body">
                                            <form action="<?php echo e(route('premium.subscribe')); ?>" method="POST">
                                                <?php echo csrf_field(); ?>
                                                <input type="hidden" name="plan_id" value="<?php echo e($premiumPlan->id); ?>">
                                                <?php $__currentLoopData = $paymentGateways; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $paymentGateway): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <button class="pricing-btn w-100" name="payment_method"
                                                        value="<?php echo e($paymentGateway->id); ?>">
                                                        <img src="<?php echo e(asset($paymentGateway->logo)); ?>"
                                                            alt="<?php echo e($paymentGateway->name); ?>" />
                                                    </button>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php if (isset($component)) { $__componentOriginal6af478c7ec7046868d2234c9526963584eafd3a9 = $component; } ?>
<?php $component = App\View\Components\Ad::resolve(['alias' => 'other_pages_bottom'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('ad'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Ad::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\Illuminate\Support\Arr::toCssClasses('ad-728x90 mt-5'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal6af478c7ec7046868d2234c9526963584eafd3a9)): ?>
<?php $component = $__componentOriginal6af478c7ec7046868d2234c9526963584eafd3a9; ?>
<?php unset($__componentOriginal6af478c7ec7046868d2234c9526963584eafd3a9); ?>
<?php endif; ?>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('themes.basic.layouts.single', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/neofiles.codenine.biz.id/resources/views/themes/basic/premium/index.blade.php ENDPATH**/ ?>