@extends('layouts.app') @section('title', isset($role) ? 'Edit Role' : 'Create Role') @section('breadcrumb') @endsection @section('content')
@csrf @if(isset($role)) @method('PUT') @endif
Role Details
is_system ? 'readonly style=background:#f8f9fa' : '' }} required>
Lowercase, no spaces. Used internally.
@error('name')
{{ $message }}
@enderror
Cancel
Permissions
@php $moduleLabels = [ 'accounts' => 'Chart of Accounts', 'vouchers' => 'Accounting Vouchers', 'ar' => 'Accounts Receivable (AR)', 'ap' => 'Accounts Payable (AP)', 'inventory' => 'Inventory', 'manufacturing' => 'Manufacturing', 'reports' => 'Reports', 'settings' => 'Settings', 'users' => 'Users & Roles', 'audit' => 'Audit Trail', 'budget' => 'Budget', 'banking' => 'Banking', ]; @endphp @foreach($permissions as $module => $modulePerms)
{{ $moduleLabels[$module] ?? ucfirst($module) }}
@foreach($modulePerms as $perm)
id, old('permissions', $rolePermissionIds ?? [])) ? 'checked' : '' }}>
@endforeach
@endforeach
@endsection @push('scripts') @endpush