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

Create New Role

Define role name and assign permissions.

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

Assign Permissions
Select All Permissions
@php $permissionExists = isset($permission); $permissionCount = $permissionExists ? $permission->count() : 0; @endphp @if($permissionExists && $permissionCount > 0)
@foreach($permission as $value)
@endforeach
@else
No Permissions Found!

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

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