@extends('layouts.admin') @push('styles') @endpush @section('content')

Permissins assign to {{$role->name}}

Permissins assign to {{$role->name}}

@csrf
@php $menus = [ 'Dashboard', 'Sale', 'Inventory', 'Report', 'Purchase', 'Product', 'Master Settings', 'Settings', 'invoice_cancel', 'Control Panel' ]; @endphp @foreach($permissionList as $permission) @endforeach
All Name
@if($permission->role_id == $role->id) @else @endif @if(in_array($permission->name, $menus, true)) {{ $permission->name }} @else

{{ $permission->name }}

@endif @php $role_id = $role->id; $id = $permission->id; $parent_id = $permission->parent_id; $permList = Helper::permiAssign($role_id,$id); @endphp @if( isset($permList) && ( count($permList->toArray()) > 0 )) @foreach($permList as $perms) @php $rol = Helper::findRole($role_id,$perms->id); if($rol){ $rolId = $rol->role_id; }else{ $rolId = ''; } @endphp @endforeach
@if( $rolId == $role_id ) @else @endif {{ $perms->name }}
@endif
@endsection @push('scripts') @endpush