<?php $__env->startSection('content'); ?>
    <main>
      <section class="sub-header">
        <div class="container">
          <div class="contain">
            <h1>
                <?php echo e(__('messages.categories')); ?>

            </h1>

            <ul class="list">
                <li>
                    <a href="<?php echo e(route('home')); ?>">
                        <?php echo e(__('messages.home')); ?>

                    </a>
                </li>
              </li>

              <li>
                <span>
                    <?php echo e(__('messages.categories')); ?>

                </span>
              </li>
            </ul>
          </div>
        </div>
      </section>

      <section class="category general-section gray-bk">
        <div class="container">
          <div class="data-heading">
            <div class="custom-heading">
              <h1>
                <?php echo e(__('messages.categories')); ?>

              </h1>


            </div>
          </div>

          <div class="row">
            <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $categ): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="col-lg-3 col-6 mb-4">
              <a href="<?php echo e(route('categ_details', $categ->id)); ?>" class="box">
                <img
                  src="<?php echo e(asset('department_images/' . $categ->photo)); ?>"
                  loading="lazy"

                  alt=""
                />

                <h2>
                    <?php if(App::getLocale() == 'ar'): ?>
                    <?php echo e($categ->ar_name); ?>

                <?php else: ?>
                    <?php echo e($categ->en_name); ?>

                <?php endif; ?>
                </h2>

                <p>   <?php if(App::getLocale() == 'ar'): ?>
                    <?php echo e($categ->ar_summary); ?>

                <?php else: ?>
                    <?php echo e($categ->en_summary); ?>

                <?php endif; ?>
            </p>
        </a>
    </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>



<div class="col-12">
    <?php echo e($categories->links()); ?>

</div>
</div>
</section>
</main>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\cementstate\resources\views/category.blade.php ENDPATH**/ ?>