@foreach ($permissions as $main_section => $main_section_permission) @php // Ugh, this sucks, but we need to special case reports to map to reports.view $sectionPermission = $main_section_permission[0]; if ((str_slug($main_section)) == 'reports') { $section_name = 'reports.view'; } else { $section_name = str_slug($main_section); } @endphp
{{ trans('permissions.'.str_slug($main_section).'.note') }}
@endif{{ trans('permissions.'.str_slug($this_permission['permission']).'.note') }}
@endif