<?php
use App\Models\WorkDepartments;
use App\Models\Employess;
?>


      <?php $__currentLoopData = $Subs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sub): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="folder">
          <details>
            <summary><?php echo e(app()->getLocale() == 'ar' ?$sub->Arabic_Name :$sub->English_Name); ?></summary>
            <div class="folder">
                    <?php    $Emps=Employess::where('Department',$sub->id)->orderBy('id','asc')->get(); ?>
          <?php $__currentLoopData = $Emps; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $emp): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          <li style="font-size: 20px; color: darkred">
                
              <?php echo e(app()->getLocale() == 'ar' ?$emp->Name :$emp->NameEn); ?>    
                </li>
          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
              
          <?php   $Subs=WorkDepartments::where('Parent',$sub->id)->get();  ?>
          
            <?php echo $__env->make('admin.HR.ChildsWorkDepartment',['Subs' => $Subs], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    
              
          </details>
        </div>
          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php /**PATH /home/klarapps/public_html/test.klarapps.com/resources/views/admin/HR/ChildsWorkDepartment.blade.php ENDPATH**/ ?>