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


<div class="page-heading">
        <div class="bread">
            <h4><?php echo e(packagename($subscribe->package_id)); ?></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(packagename($subscribe->package_id)); ?></li>
                </ol>
            </nav>
        </div>
    </div>  
    <main>
        <!--Start  single-package -->
        <section class="single-package">
            <div class="container">
                <ul class="nav nav-pills mb-3" id="pills-tab" role="tablist">
                    <li class="nav-item" role="presentation">
                        <a class="nav-link active" id="pills-tab1-tab" data-toggle="pill" href="#pills-tab1" role="tab" aria-controls="pills-tab1" aria-selected="true"><?php echo e(__('web.videos')); ?></a>
                    </li>
                    <li class="nav-item" role="presentation">
                        <a class="nav-link" id="pills-tab2-tab" data-toggle="pill" href="#pills-tab2" role="tab" aria-controls="pills-tab2" aria-selected="false"><?php echo e(__('web.files')); ?></a>
                    </li>
                    <li class="nav-item" role="presentation">
                        <a class="nav-link" id="pills-tab3-tab" data-toggle="pill" href="#pills-tab3" role="tab" aria-controls="pills-tab3" aria-selected="false"><?php echo e(__('web.recipe')); ?></a>
                    </li>
                    <li class="nav-item" role="presentation">
                        <a class="nav-link" id="pills-tab4-tab" data-toggle="pill" href="#pills-tab4" role="tab" aria-controls="pills-tab4" aria-selected="false"><?php echo e(__('web.advice')); ?></a>
                    </li>
                </ul>
                <div class="tab-content" id="pills-tabContent">
                    <div class="tab-pane fade show active" id="pills-tab1" role="tabpanel" aria-labelledby="pills-tab1-tab">
                        <div class="tab-wrapper videos-tab">
                            <div class="responsive-table">
                                <table class="table">
                                    
                                    <?php $__currentLoopData = days($subscribe->package_id); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php if($key%7 == 0): ?>
                                    <?php $x = $key; ?>
                                    <tr>
                                    <?php endif; ?>
                                    <?php if($row->type == '1'): ?>
                                        <td><a href="<?php echo e(url(getCurrentLocale().'/video/'.$row->id)); ?>" class="day-label"><?php echo e(__('web.day')); ?> <?php echo e($key+1); ?></a></td>
                                        <?php else: ?>
                                        <td><span class="day-label disable-td">إجازة</span></td>
                                        <?php endif; ?>
                                    
                                     <?php if($key%7 == 0 && $key == $x+7): ?>
                                    </tr>
                                    <?php endif; ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane fade" id="pills-tab2" role="tabpanel" aria-labelledby="pills-tab2-tab">
                        <div class="tab-wrapper files-tab">
                            <div class="row">
                                <?php $__currentLoopData = files($subscribe->package_id); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $file): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="col-md-6 col-lg-3">
                                    <a <?php if($file->type == '1'): ?> href="<?php echo e(asset($file->file)); ?>" data-fancybox="<?php echo e(url('')); ?>/assets/web/images" <?php else: ?> href="<?php echo e(url(getCurrentLocale().'/downloadFile/'.$file->id)); ?>"  <?php endif; ?> >
                                        <div class="file_card">
                                            <div class="img-box">
                                                <?php $arr = explode('.',$file->file); ?>
                                                <?php $ext = $arr[1]; ?>
                                                <?php if($ext == 'pdf'): ?>
                                                <img src="<?php echo e(url('')); ?>/assets/web/images/icons/pdf.png" alt="" class="main-img">
                                                <?php else: ?>
                                                <img src="<?php echo e(asset($file->file)); ?>" alt="" class="main-img">
                                                <?php endif; ?>
                                            </div>
                                            <div class="card-body">
                                                <p class="title"><?php echo e(filename($file->id)); ?></p>
                                            </div>
                                        </div>
                                    </a>
                                </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane fade" id="pills-tab3" role="tabpanel" aria-labelledby="pills-tab3-tab">
                        <div class="tab-wrapper files-tab">
                            <div class="row">
                                <?php $__currentLoopData = recipes($subscribe->package_id); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $recipe): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="col-md-6 col-lg-3">
                                    <a href="<?php echo e(url(getCurrentLocale().'/downloadRecipe/'.$recipe->id)); ?>">
                                        <div class="file_card">
                                            <div class="img-box">
                                                <img src="<?php echo e(asset($recipe->image)); ?>" alt="" class="main-img">
                                            </div>
                                            <div class="card-body">
                                                <p class="title"><?php echo e(recipename($recipe->id)); ?></p>
                                            </div>
                                        </div>
                                    </a>
                                </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane fade" id="pills-tab4" role="tabpanel" aria-labelledby="pills-tab4-tab">
                        <div class="tab-wrapper files-tab">
                            <div class="row">
                                <?php $__currentLoopData = advices($subscribe->package_id); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $advice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="col-md-6 col-lg-3">
                                    <a href="https://player.vimeo.com/video/<?php echo e($advice->link); ?>" data-fancybox>
                                        <div class="file_card">
                                            <div class="img-box">
                                                <img src="<?php echo e(asset($advice->image)); ?>" alt="" class="main-img">
                                            </div>
                                            <div class="card-body">
                                                <p class="title"><?php echo e(advicename($advice->id)); ?></p>
                                            </div>
                                        </div>
                                    </a>
                                </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </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/subscribe.blade.php ENDPATH**/ ?>