@php $configData = Helper::appClasses(); @endphp @extends('layouts/layoutMaster') @section('title', $mode === 'create' ? 'Crear Rol' : 'Editar Rol') @section('content')

{{ $mode === 'create' ? 'Crear Rol' : 'Editar Rol' }}

@csrf @if($mode==='edit') @method('PUT') @endif
is_admin ?? false) ? 'checked' : '' }}>
@foreach($actions as $action) @endforeach @foreach($modules as $module) @foreach($actions as $action) @php $pid = $permissionsMap[$module][$action] ?? null; @endphp @endforeach @endforeach
Módulo{{ str_replace('_',' ', $action) }}
{{ ucwords(str_replace('_',' ', $module)) }} @if($pid) @else @endif
@if($mode==='edit') @endif Cancelar @if($mode==='edit') @endif
@if($mode==='edit')
@csrf @method('DELETE')
@endif @push('scripts') @if($mode==='edit') @endif @endpush @endsection