@extends('layouts.app') @section('content')

{{ __('Roles & Permissions') }}

{{ __('Roles') }}

@hasPermission('admin.role.create') @endhasPermission
@foreach ($roles as $role) @endforeach

{{ __('Permissions') }}

@if (request()->routeIs('admin.role.permission'))
{{ count($role->permissions) }} {{ __('Permissions Selected') }}
{{ __('Clear') }}
@csrf
@foreach ($allPermissionArray as $adminType => $allPermissions) @php $type = $adminType == 'adminMultiShop' ? 'admin' : $adminType; @endphp
{{ $type }}
@foreach ($allPermissions as $permissionName => $permissionValues)
{{ permissionName($permissionName) }}
@if ($activeRole == 'root')
@foreach ($permissionValues as $permission)
@endforeach
@else
@foreach ($permissionValues as $permission)
@endforeach
@endif
@endforeach
@endforeach @hasPermission('admin.role.permission.update')
@endhasPermission
@else
{{ __('No Permissions Available') }}
@endif
@endsection @push('css') @endpush @push('scripts') @endpush