@extends('template.layouts.template-base') @section('title') Create Customer | {{ config('app.name') }} @endsection @section('content')
Role Information
Permissions
@csrf
@foreach ($modules as $moduleName => $permissions) @endforeach
Modules Permission
{{ $moduleName }}
@foreach ($permissions as $permission) {{-- @dd($permission,$role) --}} @php $hasPermission = $role->permissions->contains($permission); @endphp
@if ($hasPermission) @else @endif {{ ucfirst($permission->name) }}
@endforeach
@endsection @section('scripts') @endsection