diff --git a/app/Livewire/PilsiProfileComponent.php b/app/Livewire/PilsiProfileComponent.php new file mode 100644 index 0000000..2bfbbf5 --- /dev/null +++ b/app/Livewire/PilsiProfileComponent.php @@ -0,0 +1,35 @@ +getNameComponent(), + $this->getEmailComponent(), + $this->getLocationComponent(), + ])->columnSpan(2); + + return ($this->hasAvatars) + ? [filament('filament-breezy')->getAvatarUploadComponent(), $groupFields] + : [$groupFields]; + } + + protected function getLocationComponent(): TextInput + { + return TextInput::make('location') + ->required() + ->label(__('Location')); + } +} diff --git a/app/Pages/PilsiProfilePage.php b/app/Pages/PilsiProfilePage.php new file mode 100644 index 0000000..0101ab2 --- /dev/null +++ b/app/Pages/PilsiProfilePage.php @@ -0,0 +1,10 @@ +myProfileComponents([ + 'personal_info' => PilsiProfileComponent::class, + ]) + ->customMyProfilePage(PagesPilsiProfilePage::class), ]) ->navigationGroups([ 'My PilSi',