<?php $__env->startSection('content'); ?>

<div class="page-heading">
        <div class="bread">
            <h4><?php echo e(__('web.packages')); ?></h4>
            <nav aria-label="breadcrumb">
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="<?php echo e(url(getCurrentLocale().'/')); ?>"><?php echo e(__('web.home')); ?></a></li>
                    <li class="breadcrumb-item active" aria-current="page"><?php echo e(__('web.packages')); ?></li>
                </ol>
            </nav>
        </div>
    </div>  
    <main>
        <!--Start packages-pg -->
        <section class="packages-pg">
            <div class="container">
                <div class="row">
                    <?php if(Session::has('error')): ?>
   <div class="col-12">
    <div  class="alert alert-danger">
<p style="color: black;"><?php echo e(Session::get('error')); ?></p>
</div>
</div>
<?php endif; ?>
<?php if(Session::has('success')): ?>
   <div class="col-12">
    <div  class="alert alert-success">
<p style="color: black;"><?php echo e(Session::get('success')); ?></p>
</div>
</div>
<?php endif; ?>
                    <?php $__currentLoopData = $sections; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="col-md-6 col-lg-6">
                        <div class="pcg_card <?php if(\Auth::user()): ?> <?php if(subscribed($row->id)): ?> active_card <?php endif; ?> <?php endif; ?>">
                            <div class="pcg_head">
                                <p class="name"><?php echo e(sectionname($row->id)); ?></p>
                                <h2 class="price"><?php echo e(sectionsar($row->id)); ?><small><?php echo e(__('web.sar')); ?></small></h2>
                                <h5 class="period"><?php echo e(sectionlength($row->id)); ?><?php echo e(__('web.months')); ?>  </h5>
                            </div>
                            <div class="card-body">
                                    <div class="cont">
                                        <?php $__currentLoopData = packages($row->id); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <div class="row no-gutters items">
                                             <div class="col-6">
                                                <p class="label"><?php echo e(packagename($item->id)); ?></p>
                                            </div>
                                            <div class="col-6">
                                                <p class="data"><?php echo e($item->cost); ?><small> <?php echo e(__('web.sar')); ?></small></p>
                                            </div>
                                             <div class="col-6">
                                                <p class="label"><?php echo e($item->consult); ?><small> <?php echo e(__('web.consult')); ?></small></p>
                                            </div>
                                            <div class="col-6">
                                                <p class="data"><?php echo e(__('web.free')); ?></p>
                                            </div>
                                        </div>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                
                                
                                <a  href="<?php echo e(url(getCurrentLocale().'/package/'.$row->id)); ?>" class="subscription_butn"><span> <?php echo e(__('web.details')); ?> </span></a>
                            </div>
                        </div>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
            </div>
            <img src="<?php echo e(url('')); ?>/assets/web/images/nawal-pattern.png" alt="" class="popular_pattern">
        </section>
    </main>
    <?php $__env->stopSection(); ?>
<?php echo $__env->make('web.layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/omaralyomhost/public_html/nawalgym/resources/views/web/pages/packages.blade.php ENDPATH**/ ?>