@extends('adminlayout.dashadmin') @section('content')

Edit permission

@if (session('success')) @endif
@csrf @foreach($sidebar_data['all_data'] as $group)
@php $ppermName = strtolower($group['id']) . '_' . 'view'; @endphp
{{ $group['title'] }}
@if(!empty($group['children'])) @foreach($group['children'] as $child)
{{ $child['title'] }}
@php if($child['actions']) $actions = explode(",", $child['actions']); else $actions = []; @endphp @foreach($actions as $action) @php $permName = strtolower($child['id']) . '_' . $action; @endphp
@endforeach
@endforeach @endif
@endforeach
@endsection