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



Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation