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

<div class="row">

   <div class="col-lg-7 col-xl-7">
      <div class="block block-themed" itemscope itemtype="http://schema.org/MobileApplication">
         <div class="block-header bg-light">
            <h3 class="block-title"><a href="<?php echo e(url('/')); ?>"><?php echo e(__('dcm.home')); ?></a> <?php echo e(__('dcm.breadcrumb_divider')); ?>

            <a href="#"> <?php echo e(__('dcm.categories_title')); ?></a> <?php echo e(__('dcm.breadcrumb_divider')); ?>  <?php echo e($category->title); ?></h3>
         </div>

         <div class="block-content block-content-hover block-content-no-pad row mb-4">
               <?php if(isset($apps) && !$apps->isEmpty()): ?>
                     <?php $__currentLoopData = $apps; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $app): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php echo $__env->make('web.app.partials._app',['item' => $app ], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                     <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                     <div class="mb-4 mt-4 col-md-12" style="margin:auto 0; position:relative;">
                           <?php echo e($apps->links()); ?>

                     </div>
               <?php else: ?>
                     <h3 class="block-title mb-4 text-center">
                        <?php echo e(__('dcm.no_app_connected_to_tags')); ?>

                     </h3>
               <?php endif; ?>
         </div>
         </div>
   </div>

   <div class="col-lg-5 col-xl-5">
      <div class="block block-rounded">
         <div class="block-content block-content-full bg-gd-lake-op text-center">
             <a class="item item-circle mx-auto bg-black-25" href="javascript:void(0)">
                 <i class="fa fa-2x fa-gamepad text-white"></i>
             </a>
             <p class="text-white font-size-h3 font-w300 mt-3 mb-0">
                 <?php echo e(__('dcm.category_menu_title')); ?>

             </p>
         </div>
         <div class="block-content block-content-full">
             <div class="block block-rounded">
                 <?php if(isset( $categories )): ?>
                     <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $parent): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                        <div class="block block-rounded ">

                              <ul class="nav nav-tabs nav-tabs-block js-tabs-enabled" data-toggle="tabs" role="tablist">
                                 <li class="nav-item">
                                    <a class="nav-link" href="#"><?php echo e($parent['title'] ?? ''); ?></a>
                                 </li>
                                 <li class="nav-item ml-auto">
                                    <a class="nav-link" href="#">
                                          <i class="fa fa-angle-right"></i>
                                    </a>
                                 </li>
                              </ul>
                              <div class="block-content tab-content">
                                 <div class="tab-pane active" id="btabs-static-home" role="tabpanel">
                                    <?php if(isset($parent['child_categories'])): ?>

                                       <ul class="list-unstyled row">
                                          <?php $__currentLoopData = $parent['child_categories']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                             <?php if( @$category['parent_id'] == @$parent['id']): ?>
                                                <li class="list-item col-6 py-3">
                                                   <a href="<?php echo e($category['page_url']); ?>" class="text-left">
                                                      <i class="<?php echo e((isset($category['icon']) && $category['icon']) ? $category['icon'] : 'fab fa-google-play text-primary'); ?> mr-1"></i>
                                                      <strong><?php echo e($category['title']); ?> </strong>
                                                   </a>
                                                </li>
                                             <?php endif; ?>
                                          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                       </ul>
                                    <?php endif; ?>
                                 </div>
                              </div>
                        </div>
                     <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                 <?php else: ?>
                     <div><?php echo e(__('dcm.no_categoriy_configured')); ?></div>
                 <?php endif; ?>
             </div>
         </div>
     </div>
   </div>
</div>




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


<?php $__env->startPush('javascript'); ?>

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

<?php echo $__env->make( "layouts.master", \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>