2022-12-18

Nested menu in table with laravel 8

I need to show nested notes if were exist into my table, I have worked it these way, it works only for first row, and I can't know what i did wrong. this is my code:

<td>
  @inject('Common', 'App\Http\Controllers\AuditYearController')
  @if($Common->has_entry_note($entry->id) == 'true')
     <ul id="treeview1"><a href="#">الملاحظات</a>
     @foreach($entry_notes=$Common->get_entry_notes($entry->id) as $es)
       <li>
           <ul>
               <li></li>
               <li></li>
           </ul>
       </li>
     @endforeach
     </ul>
  @else
     لا يوجد ملاحظات
  @endif
</td>

and this is the result. enter image description here



No comments:

Post a Comment