install
This commit is contained in:
42
resources/views/vendor/filament-panels/widgets/account-widget.blade.php
vendored
Normal file
42
resources/views/vendor/filament-panels/widgets/account-widget.blade.php
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
@php
|
||||
$user = filament()->auth()->user();
|
||||
@endphp
|
||||
|
||||
<x-filament-widgets::widget class="fi-account-widget">
|
||||
<x-filament::section>
|
||||
<x-filament-panels::avatar.user
|
||||
size="lg"
|
||||
:user="$user"
|
||||
loading="lazy"
|
||||
/>
|
||||
|
||||
<div class="fi-account-widget-main">
|
||||
<h2 class="fi-account-widget-heading">
|
||||
{{ __('filament-panels::widgets/account-widget.welcome', ['app' => config('app.name')]) }}
|
||||
</h2>
|
||||
|
||||
<p class="fi-account-widget-user-name">
|
||||
{{ filament()->getUserName($user) }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<form
|
||||
action="{{ filament()->getLogoutUrl() }}"
|
||||
method="post"
|
||||
class="fi-account-widget-logout-form"
|
||||
>
|
||||
@csrf
|
||||
|
||||
<x-filament::button
|
||||
color="gray"
|
||||
:icon="\Filament\Support\Icons\Heroicon::ArrowLeftEndOnRectangle"
|
||||
:icon-alias="\Filament\View\PanelsIconAlias::WIDGETS_ACCOUNT_LOGOUT_BUTTON"
|
||||
labeled-from="sm"
|
||||
tag="button"
|
||||
type="submit"
|
||||
>
|
||||
{{ __('filament-panels::widgets/account-widget.actions.logout.label') }}
|
||||
</x-filament::button>
|
||||
</form>
|
||||
</x-filament::section>
|
||||
</x-filament-widgets::widget>
|
||||
Reference in New Issue
Block a user