@extends('layouts.app') @section('title',$role->exists?'Edit Role':'New Role') @section('page_title',$role->exists?'Edit Role':'New Role') @section('content')
@csrf @if($role->exists)@method('put')@endif
is_system) required>
@php($selected=old('permission_ids',$role->exists?$role->permissions->pluck('id')->all():[]))

Permission Matrix

@foreach($permissions as $module=>$items)@endforeach
ModuleAllowed actions
{{ ucwords(str_replace('_',' ',$module)) }}
@foreach($items as $permission)@endforeach
@if($role->exists)
@csrf @method('delete')
@endif @push('scripts')@endpush @endsection