@extends('backEnd.layouts.master') @section('title','Edit Role') @section('css') @endsection @section('content')

Edit Role

Modify role name and update permissions.

Back to Roles
@csrf
@error('name')
{{ $message }}
@enderror

Manage Permissions
Select All Permissions
@if(isset($permission) && $permission->count() > 0)
@foreach($permission as $value) @php // Check if this permission is assigned to the role $isChecked = $edit_data->permissions->contains('id', $value->id); @endphp
@endforeach
@else
No Permissions Found!

Please create permissions in the system first with guard_name = 'admin'.

@endif
@endsection @section('script') @endsection