Skip to content

Commit

Permalink
Check features on profile edit
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpl authored Mar 8, 2024
1 parent b7097af commit 13d75bb
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 13d75bb

Please sign in to comment.