@@ -36,40 +36,40 @@ public static function configure(Schema $schema): Schema
3636
3737 TextInput::make ('email ' )
3838 ->label (__ ('Email ' ))
39- ->prefixIcon (fn (): BackedEnum => Heroicon::Envelope, true )
39+ ->prefixIcon (fn (): BackedEnum => Heroicon::Envelope, true )
4040 ->email ()
4141 ->required (),
4242
4343 Select::make ('roles ' )
4444 ->label (__ ('Roles ' ))
45- ->visible (fn (Page $ livewire ): bool => $ livewire instanceof CreateRecord)
46- ->relationship (titleAttribute: fn (): string => 'name ' )
47- ->prefixIcon (fn (): BackedEnum => RoleResource::getActiveNavigationIcon (), true )
48- ->prefixIconColor (fn (): string => 'primary ' )
45+ ->visible (fn (Page $ livewire ): bool => $ livewire instanceof CreateRecord)
46+ ->relationship (titleAttribute: fn (): string => 'name ' )
47+ ->prefixIcon (fn (): BackedEnum => RoleResource::getActiveNavigationIcon (), true )
48+ ->prefixIconColor (fn (): string => 'primary ' )
4949 ->preload ()
5050 ->multiple ()
5151 ->required ()
52- ->loadingMessage (fn (): string => __ ('Loading roles... ' ))
53- ->maxItemsMessage (fn (Select $ component ): string => __ ('You can select up to :count roles. ' , ['count ' => $ component ->getMaxItems ()]))
54- ->searchingMessage (fn (): string => __ ('Searching roles... ' ))
55- ->placeholder (fn (): string => __ ('Select roles ' ))
56- ->native (fn (): bool => false ),
52+ ->loadingMessage (fn (): string => __ ('Loading roles... ' ))
53+ ->maxItemsMessage (fn (Select $ component ): string => __ ('You can select up to :count roles. ' , ['count ' => $ component ->getMaxItems ()]))
54+ ->searchingMessage (fn (): string => __ ('Searching roles... ' ))
55+ ->placeholder (fn (): string => __ ('Select roles ' ))
56+ ->native (fn (): bool => false ),
5757
5858 TextInput::make ('password ' )
5959 ->password ()
60- ->hidden (fn (TextInput $ component ): bool => $ component ->getLivewire () instanceof CreateRecord)
61- ->prefixIcon (fn (): BackedEnum => Heroicon::LockClosed, true )
60+ ->hidden (fn (TextInput $ component ): bool => $ component ->getLivewire () instanceof CreateRecord)
61+ ->prefixIcon (fn (): BackedEnum => Heroicon::LockClosed, true )
6262 ->revealable ()
6363 ->inlinePrefix ()
64- ->inlineSuffix ()
64+ ->inlineSuffix (),
6565 ])
6666 ->columns (2 )
6767 ->columnSpanFull (),
6868 ])
6969 ->columnSpan (6 ),
7070
7171 Fieldset::make ()
72- ->hidden (fn (Fieldset $ component ): bool => $ component ->getLivewire () instanceof CreateRecord)
72+ ->hidden (fn (Fieldset $ component ): bool => $ component ->getLivewire () instanceof CreateRecord)
7373 ->schema ([
7474 Section::make (__ ('Email verification ' ))
7575 ->description (__ ('Email verification is required for users. ' ))
@@ -78,8 +78,8 @@ public static function configure(Schema $schema): Schema
7878 DateTimePicker::make ('email_verified_at ' )
7979 ->label (__ ('Email Verified ' ))
8080 ->live ()
81- ->prefixIcon (fn (DateTimePicker $ component ): BackedEnum => ! $ component ->getState () ? Heroicon::XCircle : Heroicon::CheckCircle, true )
82- ->prefixIconColor (fn (DateTimePicker $ component ): string => ! $ component ->getState () ? 'danger ' : 'success ' ),
81+ ->prefixIcon (fn (DateTimePicker $ component ): BackedEnum => ! $ component ->getState () ? Heroicon::XCircle : Heroicon::CheckCircle, true )
82+ ->prefixIconColor (fn (DateTimePicker $ component ): string => ! $ component ->getState () ? 'danger ' : 'success ' ),
8383 ])
8484 ->columns (1 )
8585 ->columnSpanFull (),
0 commit comments