7dea0eb58af7192fdb06eba29d63c12eb08bd011.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php if(Admin::user()->visible(\Illuminate\Support\Arr::get($item, 'roles', [])) && Admin::user()->can(\Illuminate\Support\Arr::get($item, 'permission'))): ?>
  2. <?php if(!isset($item['children'])): ?>
  3. <li>
  4. <?php if(url()->isValidUrl($item['uri'])): ?>
  5. <a href="<?php echo e($item['uri'], false); ?>" target="_blank">
  6. <?php else: ?>
  7. <a href="<?php echo e(admin_url($item['uri']), false); ?>">
  8. <?php endif; ?>
  9. <i class="fa <?php echo e($item['icon'], false); ?>"></i>
  10. <?php if(Lang::has($titleTranslation = 'admin.menu_titles.' . trim(str_replace(' ', '_', strtolower($item['title']))))): ?>
  11. <span><?php echo e(__($titleTranslation), false); ?></span>
  12. <?php else: ?>
  13. <span><?php echo e(admin_trans($item['title']), false); ?></span>
  14. <?php endif; ?>
  15. </a>
  16. </li>
  17. <?php else: ?>
  18. <li class="treeview">
  19. <a href="#">
  20. <i class="fa <?php echo e($item['icon'], false); ?>"></i>
  21. <?php if(Lang::has($titleTranslation = 'admin.menu_titles.' . trim(str_replace(' ', '_', strtolower($item['title']))))): ?>
  22. <span><?php echo e(__($titleTranslation), false); ?></span>
  23. <?php else: ?>
  24. <span><?php echo e(admin_trans($item['title']), false); ?></span>
  25. <?php endif; ?>
  26. <i class="fa fa-angle-left pull-right"></i>
  27. </a>
  28. <ul class="treeview-menu">
  29. <?php $__currentLoopData = $item['children']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  30. <?php if($item["id"] != 40): ?>
  31. <?php echo $__env->make('admin::partials.menu', $item, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
  32. <?php endif; ?>
  33. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  34. </ul>
  35. </li>
  36. <?php endif; ?>
  37. <?php endif; ?>
  38. <?php /**PATH C:\phpstudy_pro\WWW\cydsyy-api\vendor\encore\laravel-admin\src/../resources/views/partials/menu.blade.php ENDPATH**/ ?>