<?php $__env->startSection('title'); ?>
    <?php echo e(__('plans')); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="content-wrapper">
        <div class="page-header">
            <h3 class="page-title">
                <?php echo e(__('manage') . ' ' . __('subscription')); ?>

            </h3>
        </div>
        <div class="row">
            <div class="col-md-12 grid-margin stretch-card">
                <div class="card">
                    <div class="card-body">
                        <div class="row pricing-table">
                            <?php $__currentLoopData = $packages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $package): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="col-md-6 col-xl-4 grid-margin stretch-card pricing-card">
                                    <div
                                        class="card <?php if($package->highlight): ?> border-success ribbon <?php else: ?> border-primary <?php endif; ?>  border pricing-card-body">

                                        <div class="text-center pricing-card-head mb-2">
                                            <h3><?php echo e($package->name); ?></h3>
                                            <p><?php echo e($package->description); ?></p>
                                            <h1 class="font-weight-normal mb-2"></h1>
                                            <hr>
                                            <div class="row">
                                                <?php if($package->is_trial == 1): ?>
                                                    <div class="col-sm-12 col-md-12">
                                                        <b>Package Information</b>
                                                    </div>
                                                    <div class="col-sm-12 col-md-12 mt-3 text-small">
                                                        Student Limit : <?php echo e($settings['student_limit']); ?>

                                                    </div>

                                                    <div class="col-sm-12 col-md-12 mt-1 text-small">
                                                        Staff Limit : <?php echo e($settings['staff_limit']); ?>

                                                    </div>
                                                <?php else: ?>
                                                    <div class="col-sm-12 col-md-12">
                                                        <b>Package Price Information</b>
                                                    </div>
                                                    <div class="col-sm-12 col-md-12 mt-3 text-small">
                                                        Per student charges : <?php echo e($settings['currency_symbol']); ?> <?php echo e($package->student_charge); ?>

                                                    </div>

                                                    <div class="col-sm-12 col-md-12 mt-1 text-small">
                                                        Per Staff charges : <?php echo e($settings['currency_symbol']); ?> <?php echo e($package->staff_charge); ?>

                                                    </div>
                                                <?php endif; ?>

                                                <div class="col-sm-12 col-md-12 mt-2">
                                                    <?php if($package->is_trial == 1): ?>
                                                        <?php echo e($settings['trial_days']); ?> / Days
                                                    <?php else: ?>
                                                        <?php echo e($settings['billing_cycle_in_days']); ?> / Days
                                                    <?php endif; ?>

                                                </div>
                                            </div>
                                        </div>
                                        <hr>

                                        <ul class="list-unstyled">
                                            <?php $__currentLoopData = $features; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $feature): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <?php if(str_contains($package->package_feature->pluck('feature_id'), $feature->id)): ?>
                                                    <li><i class="fa fa-check check mr-2"></i><?php echo e($feature->name); ?></li>
                                                <?php else: ?>
                                                    <li><i class="fa fa-times no-feature mr-2"></i><span
                                                            class="text-decoration-line-through"><?php echo e($feature->name); ?></span>
                                                    </li>
                                                <?php endif; ?>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </ul>
                                        <?php if($current_plan): ?>
                                            <?php if($package->id == $current_plan->package_id): ?>
                                                <div class="wrapper mb-3">
                                                    <a href="#" class="btn disabled <?php if($package->highlight): ?> btn-success <?php else: ?> btn-outline-primary <?php endif; ?> btn-block select-plan" data-id="<?php echo e($package->id); ?>"><?php echo e(__('current_active_plan')); ?></a>
                                                </div>

                                                
                                                <div class="col-sm-12 col-md-12">
                                                    <a href="#" class="btn <?php if($package->highlight): ?> btn-outline-success <?php else: ?> btn-outline-primary <?php endif; ?> btn-block select-plan" data-id="<?php echo e($package->id); ?>"><?php echo e(__('update_upcoming_plan')); ?></a>
                                                </div>
                                            <?php else: ?>
                                                <div class="row">
                                                    <div class="col-sm-12 col-md-12 mb-3">
                                                        
                                                        <a href="#" class="btn start-immediate-plan <?php if($package->highlight): ?> btn-success <?php else: ?> btn-primary <?php endif; ?> btn-block" data-id="<?php echo e($package->id); ?>"><?php echo e(__('update_current_plan')); ?></a>
                                                    </div>

                                                    
                                                    <div class="col-sm-12 col-md-12">
                                                        <a href="#" class="btn <?php if($package->highlight): ?> btn-outline-success <?php else: ?> btn-outline-primary <?php endif; ?> btn-block select-plan" data-id="<?php echo e($package->id); ?>"><?php echo e(__('update_upcoming_plan')); ?></a>
                                                    </div>
                                                </div>
                                            <?php endif; ?>
                                        <?php else: ?>
                                            <div class="wrapper">
                                                <a href="#" class="btn <?php if($package->highlight): ?> btn-success <?php else: ?> btn-outline-primary <?php endif; ?> btn-block select-plan" data-id="<?php echo e($package->id); ?>"><?php echo e(__('get_start')); ?></a>
                                            </div>
                                        <?php endif; ?>
                                    </div>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/mimeld/mxul.mimeld.com/resources/views/subscription/index.blade.php ENDPATH**/ ?>