Skip to content

Commit

Permalink
Merge pull request #4 from fabpl/edit-profile-features
Browse files Browse the repository at this point in the history
Check features on profile edit
  • Loading branch information
stephenjude authored Mar 9, 2024
2 parents d0351e2 + 13d75bb commit bbca6c2
Showing 1 changed file with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions stubs/resources/views/filament/pages/edit-profile.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,35 @@
<x-filament-panels::page>
@livewire(Laravel\Jetstream\Http\Livewire\UpdateProfileInformationForm::class)
@livewire(Laravel\Jetstream\Http\Livewire\UpdatePasswordForm::class)
@livewire(Laravel\Jetstream\Http\Livewire\TwoFactorAuthenticationForm::class)
@livewire(Laravel\Jetstream\Http\Livewire\LogoutOtherBrowserSessionsForm::class)
@livewire(Laravel\Jetstream\Http\Livewire\DeleteUserForm::class)
@if (Laravel\Fortify\Features::canUpdateProfileInformation())
@livewire(Laravel\Jetstream\Http\Livewire\UpdateProfileInformationForm::class)

<x-section-border/>
@endif

@if (Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::updatePasswords()))
<div class="mt-10 sm:mt-0">
@livewire(Laravel\Jetstream\Http\Livewire\UpdatePasswordForm::class)
</div>

<x-section-border/>
@endif

@if (Laravel\Fortify\Features::canManageTwoFactorAuthentication())
<div class="mt-10 sm:mt-0">
@livewire(Laravel\Jetstream\Http\Livewire\TwoFactorAuthenticationForm::class)
</div>

<x-section-border/>
@endif

<div class="mt-10 sm:mt-0">
@livewire(Laravel\Jetstream\Http\Livewire\LogoutOtherBrowserSessionsForm::class)
</div>

@if (Laravel\Jetstream\Jetstream::hasAccountDeletionFeatures())
<x-section-border/>

<div class="mt-10 sm:mt-0">
@livewire(Laravel\Jetstream\Http\Livewire\DeleteUserForm::class)
</div>
@endif
</x-filament-panels::page>

0 comments on commit bbca6c2

Please sign in to comment.