@if($hasChild)
@endif
@if(isset($m['children']) && count($m['children']) > 0)
@foreach($m['children'] as $c)
@php
$checked = false;
if(isset($permission) && in_array($c['id'], $permission)) {
$checked = true;
}
@endphp
@endforeach
@endif
|