@@ -36,29 +36,29 @@ 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 ])
6464 ->columns (2 )
@@ -67,7 +67,7 @@ public static function configure(Schema $schema): Schema
6767 ->columnSpan (6 ),
6868
6969 Fieldset::make ()
70- ->hidden (fn (Fieldset $ component ): bool => $ component ->getLivewire () instanceof CreateRecord)
70+ ->hidden (fn (Fieldset $ component ): bool => $ component ->getLivewire () instanceof CreateRecord)
7171 ->schema ([
7272 Section::make (__ ('Email verification ' ))
7373 ->description (__ ('Email verification is required for users. ' ))
@@ -76,8 +76,8 @@ public static function configure(Schema $schema): Schema
7676 DateTimePicker::make ('email_verified_at ' )
7777 ->label (__ ('Email Verified ' ))
7878 ->live ()
79- ->prefixIcon (fn (DateTimePicker $ component ): BackedEnum => ! $ component ->getState () ? Heroicon::XCircle : Heroicon::CheckCircle, true )
80- ->prefixIconColor (fn (DateTimePicker $ component ): string => ! $ component ->getState () ? 'danger ' : 'success ' ),
79+ ->prefixIcon (fn (DateTimePicker $ component ): BackedEnum => ! $ component ->getState () ? Heroicon::XCircle : Heroicon::CheckCircle, true )
80+ ->prefixIconColor (fn (DateTimePicker $ component ): string => ! $ component ->getState () ? 'danger ' : 'success ' ),
8181 ])
8282 ->columns (1 )
8383 ->columnSpanFull (),
0 commit comments