presseportale/resources/views/components/portal/user-role-fields.blade.php
Kevin Adametz 349991a4e8 5.2: User-Formular-Feldraster in Blade-Components (role/billing) extrahiert
role- und billing-Feldgrids aus create+edit in <x-portal.user-role-fields> und <x-portal.user-billing-fields> gezogen (nur das innere Grid; Panel-/Card-Wrapper bleiben pro Seite). Nebenbei-Bugfix: create zeigt jetzt den billing.name-Validierungsfehler (Feld wurde via userBillingRules() schon validiert, Fehler aber nie gerendert). company-link-picker + contact-fields bleiben bewusst inline (divergiert bzw. nur in edit).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 10:43:05 +00:00

14 lines
549 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@props(['roles'])
{{--
Rollenzuweisungs-Grid für die User-Formulare (create/edit).
Rendert nur das innere Grid – der umgebende Panel-/Card-Wrapper bleibt
bewusst in der jeweiligen Seite (create nutzt das Portal-„panel"-Design,
edit das Flux-„card"-Design).
--}}
<div class="grid gap-3 sm:grid-cols-2 lg:grid-cols-3">
@foreach ($roles as $role)
<flux:checkbox wire:model="selectedRoles" value="{{ $role->name }}" label="{{ $role->name }}" />
@endforeach
</div>
<flux:error name="selectedRoles" class="mt-4" />