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

{{ __('Employee Permissions') }}

{{ __('Employee Information') }}

{{ $user?->name }}

{{ $user?->phone }}

{{ $user?->email }}

{{ $role->name }}

{{ __('Permissions') }}

@csrf
{{ count($userAvailablePermissions) }} {{ __('Permissions Selected') }}
@hasPermission('shop.employee.permission.update') @endhasPermission {{ __('Clear') }}
@foreach ($allPermissionArray as $adminType => $allPermissions) @php $type = $adminType == 'adminMultiShop' ? 'admin' : $adminType; @endphp
{{ $type }}
@foreach ($allPermissions as $permissionName => $permissionValues)
{{ permissionName($permissionName) }}
@foreach ($permissionValues ?? [] as $permission)
@endforeach
@endforeach
@endforeach @hasPermission('shop.employee.permission.update')
@endhasPermission
@endsection @push('css') @endpush @push('scripts') @endpush