@foreach($data as $stkey=>$struc)
-
@if($struc['file_type']=="2")
{{$struc['name']}}
@elseif(($struc['file_type']=="3") && !empty($struc['link']))
{{$struc['name']}}
@elseif($struc['file_type']=="1")
{{$struc['name']}} sync
@else
{{$struc['name']}}
@endif
@if($permission['edit'])
create
@endif
@if($permission['destroy'])
delete
{!! Form::open([
'method' => 'DELETE',
'route' => [
$routePrefix . '.destroy',
$struc['id']
],
'style'=>'display:inline',
'id' => 'delete-form-' . $struc['id']
]) !!}
{!! Form::close() !!}
@endif
@if(count($struc['child'])>0)
@include('admin.manage-menu.child_structure',['data' => $struc['child'],'permission'=>$permission,'routePrefix'=>$routePrefix])
@endif
@endforeach