= c680c1ae6e Feat: implement role and app management
- Added services (`RoleService`, `AppRoleService`, `AppsPermissionService`) to handle role creation, app assignments, and permissions.
- Introduced new Livewire forms for creating roles and assigning apps (`CreateRoleForm`, `AssignAppToRoleForm`).
- Built dynamic Blade views for role and app management, including modals and reusable components.
- Removed outdated `fluxui-development` skill documentation.
2026-05-19 11:13:35 +00:00

37 lines
1.3 KiB
PHP

@props([
'label' => 'Select Items',
'model', // Livewire property
'options', // The data collection passed from the parent
'searchFunction', // The parent method to call for searching
'selectAllAction', // The parent method to call for selecting all
'clearAction', // The parent method to call for clearing
'placeholder' => 'Search...',
'noResultText' => 'No items found.'
])
<fieldset class="fieldset">
<legend class="fieldset-legend w-full mb-1 flex items-end justify-between">
<label class="text-xs font-semibold text-">{{ $label }}</label>
<div class="flex gap-3 text-xs">
<button type="button" wire:click="{{ $selectAllAction }}" class="text-primary hover:underline">
Select All
</button>
<button type="button" wire:click="{{ $clearAction }}" class="text-error hover:underline">
Clear
</button>
</div>
</legend>
<x-mary-choices
wire:model="{{ $model }}"
:options="$options"
search-function="{{ $searchFunction }}"
option-label="name"
option-value="id"
:no-result-text="$noResultText"
:placeholder="$placeholder"
searchable
/>
</fieldset>