?>
</td>
                        </tr>
                   			
                        <?php 
$modelChild = Menu::whereParentId($row->id)->get();
?>
                   		
                      	@yield($noC = 0)
                        @foreach($modelChild as $rowC)
                        @yield($noC++)
                          <tr>
                           <td style="text-align:center">{{ $no.".".$noC }}</td>
                           <td>{{ $rowC->title }}</td>
                           <td>{{ $rowC->controller }}</td>
                           <td>{{ $rowC->order }}</td>
                           <td><?php 
echo Scaffolding::buttons(['update', 'delete'], $rowC->id);
?>
</td>
                        </tr>

                        @endforeach

                     @endforeach
                    </tbody>
                </table>
                
            </div><!--maincontentinner-->
        </div><!--maincontent-->
@endsection
<?php

use oblagio\Helpers\Scaffolding;
use oblagio\Models\Role;
?>
@extends('layouts.backend')
@section('content')
  <?php 
echo Scaffolding::widgetTableWithPage(['primaryKey' => 'id', 'model' => Role::orderBy('id', 'desc'), 'field' => ['id', 'title'], 'search' => ['title', 'id'], 'buttons' => ['create', 'update', 'delete'], 'pageSize' => 10]);
?>
@endsection