@extends(decide_template()) @section('title', $pageTitle) @section('page_styles') @endsection @section(decide_content()) @if (Session::has('msg')) @endif @if (Session::has('error-msg'))
| @lang("api.view.table_heading.role_name") | @lang("common.table_heading.description") | @lang("common.table_heading.action") |
|---|---|---|
|
|
||
| @lang("api.view.table_heading.role_name") | @lang("common.table_heading.description") | @lang("common.table_heading.action") |
|---|---|---|
@lang("api.view.modal.label.allowes_api_actions")
@php
$permissions = getApiRolePermission($role->id);
$role_permissions = $permissions['role_permission'];
@endphp
@foreach($permissions['api_permission'] as $permission)
@php
$children = $permission->apiChildrenAll;
$per = [];
foreach ($children as $child)
$per[]= $child->id;
$result = array_intersect($per, $role_permissions);
@endphp
@if(!empty($result))
@foreach($children as $child)
@if(in_array($child->id,$role_permissions))
{{$child->title}}
@endif
@endforeach
@endif
@endforeach
|
||