mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Use constants instead
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
x-on:focus-first-global-search-result.stop="$el.querySelector('.fi-global-search-result-link')?.focus()"
|
||||
class="fi-global-search flex items-center"
|
||||
>
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::global-search.start') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_GLOBAL_SEARCH_START) }}
|
||||
|
||||
<div class="sm:relative">
|
||||
<x-filament-panels::global-search.field />
|
||||
@@ -15,5 +15,5 @@
|
||||
@endif
|
||||
</div>
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::global-search.end') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_GLOBAL_SEARCH_END) }}
|
||||
</div>
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
@endif
|
||||
</div>
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::page.header.actions.before', scopes: $this->getRenderHookScopes()) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_PAGE_HEADER_ACTIONS_BEFORE, scopes: $this->getRenderHookScopes()) }}
|
||||
|
||||
@if ($actions)
|
||||
<x-filament::actions
|
||||
@@ -43,5 +43,5 @@
|
||||
/>
|
||||
@endif
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::page.header.actions.after', scopes: $this->getRenderHookScopes()) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_PAGE_HEADER_ACTIONS_AFTER, scopes: $this->getRenderHookScopes()) }}
|
||||
</header>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
])
|
||||
>
|
||||
<head>
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::head.start') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_HEAD_START) }}
|
||||
|
||||
<meta charset="utf-8" />
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}" />
|
||||
@@ -27,7 +27,7 @@
|
||||
{{ filament()->getBrandName() }}
|
||||
</title>
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::styles.before') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_STYLES_BEFORE) }}
|
||||
|
||||
<style>
|
||||
[x-cloak=''],
|
||||
@@ -64,7 +64,7 @@
|
||||
|
||||
@stack('styles')
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::styles.after') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_STYLES_AFTER) }}
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
@@ -74,7 +74,7 @@
|
||||
if (! activeSidebarItem) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
const sidebarWrapper = document.querySelector('.fi-sidebar-nav')
|
||||
|
||||
if (! sidebarWrapper) {
|
||||
@@ -109,7 +109,7 @@
|
||||
</script>
|
||||
@endif
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::head.end') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_HEAD_END) }}
|
||||
</head>
|
||||
|
||||
<body
|
||||
@@ -123,13 +123,13 @@
|
||||
])
|
||||
}}
|
||||
>
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::body.start') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_BODY_START) }}
|
||||
|
||||
{{ $slot }}
|
||||
|
||||
@livewire(Filament\Livewire\Notifications::class)
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::scripts.before') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_SCRIPTS_BEFORE) }}
|
||||
|
||||
@filamentScripts(withCore: true)
|
||||
|
||||
@@ -143,8 +143,8 @@
|
||||
|
||||
@stack('scripts')
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::scripts.after') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_SCRIPTS_AFTER) }}
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::body.end') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_BODY_END) }}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -44,11 +44,11 @@
|
||||
])
|
||||
>
|
||||
@if (filament()->hasTopbar())
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::topbar.before') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_TOPBAR_BEFORE) }}
|
||||
|
||||
<x-filament-panels::topbar :navigation="$navigation" />
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::topbar.after') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_TOPBAR_AFTER) }}
|
||||
@endif
|
||||
|
||||
<main
|
||||
@@ -80,14 +80,14 @@
|
||||
},
|
||||
])
|
||||
>
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::content.start') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_CONTENT_START) }}
|
||||
|
||||
{{ $slot }}
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::content.end') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_CONTENT_END) }}
|
||||
</main>
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::footer') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_FOOTER) }}
|
||||
</div>
|
||||
</div>
|
||||
</x-filament-panels::layout.base>
|
||||
|
||||
@@ -47,6 +47,6 @@
|
||||
</main>
|
||||
</div>
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::footer') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_FOOTER) }}
|
||||
</div>
|
||||
</x-filament-panels::layout.base>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
])
|
||||
}}
|
||||
>
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::page.start', scopes: $this->getRenderHookScopes()) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_PAGE_START, scopes: $this->getRenderHookScopes()) }}
|
||||
|
||||
<section
|
||||
@class([
|
||||
@@ -71,7 +71,7 @@
|
||||
'h-full' => $fullHeight,
|
||||
])
|
||||
>
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::page.header-widgets.before', scopes: $this->getRenderHookScopes()) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_PAGE_HEADER_WIDGETS_BEFORE, scopes: $this->getRenderHookScopes()) }}
|
||||
|
||||
@if ($headerWidgets = $this->getVisibleHeaderWidgets())
|
||||
<x-filament-widgets::widgets
|
||||
@@ -82,11 +82,11 @@
|
||||
/>
|
||||
@endif
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::page.header-widgets.after', scopes: $this->getRenderHookScopes()) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_PAGE_HEADER_WIDGETS_AFTER, scopes: $this->getRenderHookScopes()) }}
|
||||
|
||||
{{ $slot }}
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::page.footer-widgets.before', scopes: $this->getRenderHookScopes()) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_PAGE_FOOTER_WIDGETS_BEFORE, scopes: $this->getRenderHookScopes()) }}
|
||||
|
||||
@if ($footerWidgets = $this->getVisibleFooterWidgets())
|
||||
<x-filament-widgets::widgets
|
||||
@@ -97,7 +97,7 @@
|
||||
/>
|
||||
@endif
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::page.footer-widgets.after', scopes: $this->getRenderHookScopes()) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_PAGE_FOOTER_WIDGETS_AFTER, scopes: $this->getRenderHookScopes()) }}
|
||||
</div>
|
||||
|
||||
@if ($subNavigation && $subNavigationPosition === SubNavigationPosition::End)
|
||||
@@ -126,7 +126,7 @@
|
||||
></div>
|
||||
@endif
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::page.end', scopes: $this->getRenderHookScopes()) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_PAGE_END, scopes: $this->getRenderHookScopes()) }}
|
||||
|
||||
<x-filament-panels::unsaved-action-changes-alert />
|
||||
</div>
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
@endphp
|
||||
|
||||
<x-filament::tabs>
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::resource.tabs.start', scopes: $renderHookScopes) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::resource.pages.list-records.tabs.start', scopes: $renderHookScopes) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_RESOURCE_TABS_START, scopes: $renderHookScopes) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_RESOURCE_PAGES_LIST_RECORDS_TABS_START, scopes: $renderHookScopes) }}
|
||||
|
||||
@foreach ($tabs as $tabKey => $tab)
|
||||
@php
|
||||
@@ -25,7 +25,7 @@
|
||||
</x-filament::tabs.item>
|
||||
@endforeach
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::resource.tabs.end', scopes: $renderHookScopes) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::resource.pages.list-records.tabs.end', scopes: $renderHookScopes) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_RESOURCE_TABS_END, scopes: $renderHookScopes) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_RESOURCE_PAGES_LIST_RECORDS_TABS_END, scopes: $renderHookScopes) }}
|
||||
</x-filament::tabs>
|
||||
@endif
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
class="fi-sidebar-nav flex-grow flex flex-col gap-y-7 overflow-y-auto overflow-x-hidden px-6 py-8"
|
||||
style="scrollbar-gutter: stable"
|
||||
>
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::sidebar.nav.start') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_SIDEBAR_NAV_START) }}
|
||||
|
||||
@if (filament()->hasTenancy() && filament()->hasTenantMenu())
|
||||
<div
|
||||
@@ -167,9 +167,9 @@
|
||||
})
|
||||
</script>
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::sidebar.nav.end') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_SIDEBAR_NAV_END) }}
|
||||
</nav>
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::sidebar.footer') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_SIDEBAR_FOOTER) }}
|
||||
</aside>
|
||||
{{-- format-ignore-end --}}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
$items = \Illuminate\Support\Arr::except($items, ['billing', 'profile', 'register']);
|
||||
@endphp
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::tenant-menu.before') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_TENANT_MENU_BEFORE) }}
|
||||
|
||||
<x-filament::dropdown
|
||||
placement="bottom-start"
|
||||
@@ -158,4 +158,4 @@
|
||||
@endif
|
||||
</x-filament::dropdown>
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::tenant-menu.after') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_TENANT_MENU_AFTER) }}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<nav
|
||||
class="flex h-16 items-center gap-x-4 bg-white px-4 shadow-sm ring-1 ring-gray-950/5 md:px-6 lg:px-8 dark:bg-gray-900 dark:ring-white/10"
|
||||
>
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::topbar.start') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_TOPBAR_START) }}
|
||||
|
||||
@if (filament()->hasNavigation())
|
||||
<x-filament::icon-button
|
||||
@@ -122,13 +122,13 @@
|
||||
x-persist="topbar.end"
|
||||
class="ms-auto flex items-center gap-x-4"
|
||||
>
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::global-search.before') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_GLOBAL_SEARCH_BEFORE) }}
|
||||
|
||||
@if (filament()->isGlobalSearchEnabled())
|
||||
@livewire(Filament\Livewire\GlobalSearch::class, ['lazy' => true])
|
||||
@endif
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::global-search.after') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_GLOBAL_SEARCH_AFTER) }}
|
||||
|
||||
@if (filament()->auth()->check())
|
||||
@if (filament()->hasDatabaseNotifications())
|
||||
@@ -139,6 +139,6 @@
|
||||
@endif
|
||||
</div>
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::topbar.end') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_TOPBAR_END) }}
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
$items = \Illuminate\Support\Arr::except($items, ['account', 'logout', 'profile']);
|
||||
@endphp
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::user-menu.before') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_USER_MENU_BEFORE) }}
|
||||
|
||||
<x-filament::dropdown
|
||||
placement="bottom-end"
|
||||
@@ -33,7 +33,7 @@
|
||||
</x-slot>
|
||||
|
||||
@if ($profileItem?->isVisible() ?? true)
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::user-menu.profile.before') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_USER_MENU_PROFILE_BEFORE) }}
|
||||
|
||||
@if ($hasProfileItem)
|
||||
<x-filament::dropdown.list>
|
||||
@@ -56,7 +56,7 @@
|
||||
</x-filament::dropdown.header>
|
||||
@endif
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::user-menu.profile.after') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_USER_MENU_PROFILE_AFTER) }}
|
||||
@endif
|
||||
|
||||
@if (filament()->hasDarkMode() && (! filament()->hasDarkModeForced()))
|
||||
@@ -90,4 +90,4 @@
|
||||
</x-filament::dropdown.list>
|
||||
</x-filament::dropdown>
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::user-menu.after') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_USER_MENU_AFTER) }}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<x-filament-panels::page.simple>
|
||||
@if (filament()->hasRegistration())
|
||||
<x-slot name="subheading">
|
||||
{{ __('filament-panels::pages/auth/login.actions.register.before') }}
|
||||
{{ __('filament-panels::pages/auth/login.actions.register_BEFORE) }}
|
||||
|
||||
{{ $this->registerAction }}
|
||||
</x-slot>
|
||||
@endif
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::auth.login.form.before') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_AUTH_LOGIN_FORM_BEFORE) }}
|
||||
|
||||
<x-filament-panels::form wire:submit="authenticate">
|
||||
{{ $this->form }}
|
||||
@@ -18,5 +18,5 @@
|
||||
/>
|
||||
</x-filament-panels::form>
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::auth.login.form.after') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_AUTH_LOGIN_FORM_AFTER) }}
|
||||
</x-filament-panels::page.simple>
|
||||
|
||||
+3
-3
@@ -4,8 +4,8 @@
|
||||
{{ $this->loginAction }}
|
||||
</x-slot>
|
||||
@endif
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::auth.password-reset.request.form.before') }}
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_AUTH_PASSWORD_RESET_REQUEST_FORM_BEFORE) }}
|
||||
|
||||
<x-filament-panels::form wire:submit="request">
|
||||
{{ $this->form }}
|
||||
@@ -16,5 +16,5 @@
|
||||
/>
|
||||
</x-filament-panels::form>
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::auth.password-reset.request.form.after') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_AUTH_PASSWORD_RESET_REQUEST_FORM_AFTER) }}
|
||||
</x-filament-panels::page.simple>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<x-filament-panels::page.simple>
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::auth.password-reset.reset.form.before') }}
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_AUTH_PASSWORD_RESET_RESET_FORM_BEFORE) }}
|
||||
|
||||
<x-filament-panels::form wire:submit="resetPassword">
|
||||
{{ $this->form }}
|
||||
|
||||
@@ -10,5 +10,5 @@
|
||||
/>
|
||||
</x-filament-panels::form>
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::auth.password-reset.reset.form.after') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_AUTH_PASSWORD_RESET_RESET_FORM_AFTER) }}
|
||||
</x-filament-panels::page.simple>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<x-filament-panels::page.simple>
|
||||
@if (filament()->hasLogin())
|
||||
<x-slot name="subheading">
|
||||
{{ __('filament-panels::pages/auth/register.actions.login.before') }}
|
||||
{{ __('filament-panels::pages/auth/register.actions.login_BEFORE) }}
|
||||
|
||||
{{ $this->loginAction }}
|
||||
</x-slot>
|
||||
@endif
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::auth.register.form.before') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_AUTH_REGISTER_FORM_BEFORE) }}
|
||||
|
||||
<x-filament-panels::form wire:submit="register">
|
||||
{{ $this->form }}
|
||||
@@ -18,5 +18,5 @@
|
||||
/>
|
||||
</x-filament-panels::form>
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::auth.register.form.after') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_AUTH_REGISTER_FORM_AFTER) }}
|
||||
</x-filament-panels::page.simple>
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
<div class="flex flex-col gap-y-6">
|
||||
<x-filament-panels::resources.tabs />
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::resource.pages.list-records.table.before', scopes: $this->getRenderHookScopes()) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_RESOURCE_PAGES_LIST_RECORDS_TABLE_BEFORE, scopes: $this->getRenderHookScopes()) }}
|
||||
|
||||
{{ $this->table }}
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::resource.pages.list-records.table.after', scopes: $this->getRenderHookScopes()) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_RESOURCE_PAGES_LIST_RECORDS_TABLE_AFTER, scopes: $this->getRenderHookScopes()) }}
|
||||
</div>
|
||||
</x-filament-panels::page>
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
<div class="flex flex-col gap-y-6">
|
||||
<x-filament-panels::resources.tabs />
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::resource.pages.manage-related-records.table.before', scopes: $this->getRenderHookScopes()) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_RESOURCE_PAGES_MANAGE_RELATED_RECORDS_TABLE_BEFORE, scopes: $this->getRenderHookScopes()) }}
|
||||
|
||||
{{ $this->table }}
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::resource.pages.manage-related-records.table.after', scopes: $this->getRenderHookScopes()) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_RESOURCE_PAGES_MANAGE_RELATED_RECORDS_TABLE_AFTER, scopes: $this->getRenderHookScopes()) }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<div class="fi-resource-relation-manager flex flex-col gap-y-6">
|
||||
<x-filament-panels::resources.tabs />
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::resource.relation-manager.before', scopes: $this->getRenderHookScopes()) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_RESOURCE_RELATION_MANAGER_BEFORE, scopes: $this->getRenderHookScopes()) }}
|
||||
|
||||
{{ $this->table }}
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('panels::resource.relation-manager.after', scopes: $this->getRenderHookScopes()) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::PANELS_RESOURCE_RELATION_MANAGER_AFTER, scopes: $this->getRenderHookScopes()) }}
|
||||
|
||||
<x-filament-panels::unsaved-action-changes-alert />
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
<?php
|
||||
|
||||
namespace Filament\Support\View;
|
||||
|
||||
class RenderHook
|
||||
{
|
||||
const PANELS_AUTH_LOGIN_FORM_AFTER = 'panels::auth.login.form.after';
|
||||
|
||||
const PANELS_AUTH_LOGIN_FORM_BEFORE = 'panels::auth.login.form.before';
|
||||
|
||||
const PANELS_AUTH_PASSWORD_RESET_REQUEST_FORM_AFTER = 'panels::auth.password-reset.request.form.after';
|
||||
|
||||
const PANELS_AUTH_PASSWORD_RESET_REQUEST_FORM_BEFORE = 'panels::auth.password-reset.request.form.before';
|
||||
|
||||
const PANELS_AUTH_PASSWORD_RESET_RESET_FORM_AFTER = 'panels::auth.password-reset.reset.form.after';
|
||||
|
||||
const PANELS_AUTH_PASSWORD_RESET_RESET_FORM_BEFORE = 'panels::auth.password-reset.reset.form.before';
|
||||
|
||||
const PANELS_AUTH_REGISTER_FORM_AFTER = 'panels::auth.register.form.after';
|
||||
|
||||
const PANELS_AUTH_REGISTER_FORM_BEFORE = 'panels::auth.register.form.before';
|
||||
|
||||
const PANELS_BODY_END = 'panels::body.end';
|
||||
|
||||
const PANELS_BODY_START = 'panels::body.start';
|
||||
|
||||
const PANELS_CONTENT_END = 'panels::content.end';
|
||||
|
||||
const PANELS_CONTENT_START = 'panels::content.start';
|
||||
|
||||
const PANELS_FOOTER = 'panels::footer';
|
||||
|
||||
const PANELS_GLOBAL_SEARCH_AFTER = 'panels::global-search.after';
|
||||
|
||||
const PANELS_GLOBAL_SEARCH_BEFORE = 'panels::global-search.before';
|
||||
|
||||
const PANELS_GLOBAL_SEARCH_END = 'panels::global-search.end';
|
||||
|
||||
const PANELS_GLOBAL_SEARCH_START = 'panels::global-search.start';
|
||||
|
||||
const PANELS_HEAD_END = 'panels::head.end';
|
||||
|
||||
const PANELS_HEAD_START = 'panels::head.start';
|
||||
|
||||
const PANELS_PAGE_END = 'panels::page.end';
|
||||
|
||||
const PANELS_PAGE_FOOTER_WIDGETS_AFTER = 'panels::page.footer-widgets.after';
|
||||
|
||||
const PANELS_PAGE_FOOTER_WIDGETS_BEFORE = 'panels::page.footer-widgets.before';
|
||||
|
||||
const PANELS_PAGE_HEADER_ACTIONS_AFTER = 'panels::page.header.actions.after';
|
||||
|
||||
const PANELS_PAGE_HEADER_ACTIONS_BEFORE = 'panels::page.header.actions.before';
|
||||
|
||||
const PANELS_PAGE_HEADER_WIDGETS_AFTER = 'panels::page.header-widgets.after';
|
||||
|
||||
const PANELS_PAGE_HEADER_WIDGETS_BEFORE = 'panels::page.header-widgets.before';
|
||||
|
||||
const PANELS_PAGE_START = 'panels::page.start';
|
||||
|
||||
const PANELS_RESOURCE_PAGES_LIST_RECORDS_TABLE_AFTER = 'panels::resource.pages.list-records.table.after';
|
||||
|
||||
const PANELS_RESOURCE_PAGES_LIST_RECORDS_TABLE_BEFORE = 'panels::resource.pages.list-records.table.before';
|
||||
|
||||
const PANELS_RESOURCE_PAGES_LIST_RECORDS_TABS_END = 'panels::resource.pages.list-records.tabs.end';
|
||||
|
||||
const PANELS_RESOURCE_PAGES_LIST_RECORDS_TABS_START = 'panels::resource.pages.list-records.tabs.start';
|
||||
|
||||
const PANELS_RESOURCE_RELATION_MANAGER_AFTER = 'panels::resource.relation-manager.after';
|
||||
|
||||
const PANELS_RESOURCE_RELATION_MANAGER_BEFORE = 'panels::resource.relation-manager.before';
|
||||
|
||||
const PANELS_SCRIPTS_AFTER = 'panels::scripts.after';
|
||||
|
||||
const PANELS_SCRIPTS_BEFORE = 'panels::scripts.before';
|
||||
|
||||
const PANELS_SIDEBAR_NAV_END = 'panels::sidebar.nav.end';
|
||||
|
||||
const PANELS_SIDEBAR_NAV_START = 'panels::sidebar.nav.start';
|
||||
|
||||
const PANELS_SIDEBAR_FOOTER = 'panels::sidebar.footer';
|
||||
|
||||
const PANELS_STYLES_AFTER = 'panels::styles.after';
|
||||
|
||||
const PANELS_STYLES_BEFORE = 'panels::styles.before';
|
||||
|
||||
const PANELS_TENANT_MENU_AFTER = 'panels::tenant-menu.after';
|
||||
|
||||
const PANELS_TENANT_MENU_BEFORE = 'panels::tenant-menu.before';
|
||||
|
||||
const PANELS_TOPBAR_AFTER = 'panels::topbar.after';
|
||||
|
||||
const PANELS_TOPBAR_BEFORE = 'panels::topbar.before';
|
||||
|
||||
const PANELS_TOPBAR_END = 'panels::topbar.end';
|
||||
|
||||
const PANELS_TOPBAR_START = 'panels::topbar.start';
|
||||
|
||||
const PANELS_USER_MENU_AFTER = 'panels::user-menu.after';
|
||||
|
||||
const PANELS_USER_MENU_BEFORE = 'panels::user-menu.before';
|
||||
|
||||
const PANELS_USER_MENU_PROFILE_AFTER = 'panels::user-menu.profile.after';
|
||||
|
||||
const PANELS_USER_MENU_PROFILE_BEFORE = 'panels::user-menu.profile.before';
|
||||
|
||||
const TABLES_TOOLBAR_END = 'tables::toolbar.end';
|
||||
|
||||
const TABLES_TOOLBAR_GROUPING_SELECTOR_AFTER = 'tables::toolbar.grouping-selector.after';
|
||||
|
||||
const TABLES_TOOLBAR_GROUPING_SELECTOR_BEFORE = 'tables::toolbar.grouping-selector.before';
|
||||
|
||||
const TABLES_TOOLBAR_REORDER_TRIGGER_AFTER = 'tables::toolbar.reorder-trigger.after';
|
||||
|
||||
const TABLES_TOOLBAR_REORDER_TRIGGER_BEFORE = 'tables::toolbar.reorder-trigger.before';
|
||||
|
||||
const TABLES_TOOLBAR_SEARCH_AFTER = 'tables::toolbar.search.after';
|
||||
|
||||
const TABLES_TOOLBAR_SEARCH_BEFORE = 'tables::toolbar.search.before';
|
||||
|
||||
const TABLES_TOOLBAR_START = 'tables::toolbar.start';
|
||||
|
||||
const TABLES_TOOLBAR_TOGGLE_COLUMN_TRIGGER_AFTER = 'tables::toolbar.toggle-column-trigger.after';
|
||||
|
||||
const TABLES_TOOLBAR_TOGGLE_COLUMN_TRIGGER_BEFORE = 'tables::toolbar.toggle-column-trigger.before';
|
||||
|
||||
const WIDGETS_TABLE_WIDGET_END = 'widgets::table-widget.end';
|
||||
|
||||
const WIDGETS_TABLE_WIDGET_START = 'widgets::table-widget.start';
|
||||
}
|
||||
@@ -169,10 +169,10 @@
|
||||
x-show="@js($hasHeaderToolbar) || (selectedRecords.length && @js(count($bulkActions)))"
|
||||
class="fi-ta-header-toolbar flex items-center justify-between gap-x-4 px-4 py-3 sm:px-6"
|
||||
>
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('tables::toolbar.start', scopes: static::class) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::TABLES_TOOLBAR_START, scopes: static::class) }}
|
||||
|
||||
<div class="flex shrink-0 items-center gap-x-4">
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('tables::toolbar.reorder-trigger.before', scopes: static::class) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::TABLES_TOOLBAR_REORDER_TRIGGER_BEFORE, scopes: static::class) }}
|
||||
|
||||
@if ($isReorderable)
|
||||
<span x-show="! selectedRecords.length">
|
||||
@@ -180,7 +180,7 @@
|
||||
</span>
|
||||
@endif
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('tables::toolbar.reorder-trigger.after', scopes: static::class) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::TABLES_TOOLBAR_REORDER_TRIGGER_AFTER, scopes: static::class) }}
|
||||
|
||||
@if ((! $isReordering) && count($bulkActions))
|
||||
<x-filament-tables::actions
|
||||
@@ -190,7 +190,7 @@
|
||||
/>
|
||||
@endif
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('tables::toolbar.grouping-selector.before', scopes: static::class) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::TABLES_TOOLBAR_GROUPING_SELECTOR_BEFORE, scopes: static::class) }}
|
||||
|
||||
@if ($areGroupingSettingsVisible)
|
||||
<x-filament-tables::groups
|
||||
@@ -200,12 +200,12 @@
|
||||
/>
|
||||
@endif
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('tables::toolbar.grouping-selector.after', scopes: static::class) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::TABLES_TOOLBAR_GROUPING_SELECTOR_AFTER, scopes: static::class) }}
|
||||
</div>
|
||||
|
||||
@if ($isGlobalSearchVisible || $hasFiltersDialog || $hasColumnToggleDropdown)
|
||||
<div class="ms-auto flex items-center gap-x-4">
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('tables::toolbar.search.before', scopes: static::class) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::TABLES_TOOLBAR_SEARCH_BEFORE, scopes: static::class) }}
|
||||
|
||||
@if ($isGlobalSearchVisible)
|
||||
<x-filament-tables::search-field
|
||||
@@ -215,7 +215,7 @@
|
||||
/>
|
||||
@endif
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('tables::toolbar.search.after', scopes: static::class) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::TABLES_TOOLBAR_SEARCH_AFTER, scopes: static::class) }}
|
||||
|
||||
@if ($hasFiltersDialog || $hasColumnToggleDropdown)
|
||||
@if ($hasFiltersDialog)
|
||||
@@ -230,7 +230,7 @@
|
||||
/>
|
||||
@endif
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('tables::toolbar.toggle-column-trigger.before', scopes: static::class) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::TABLES_TOOLBAR_TOGGLE_COLUMN_TRIGGER_BEFORE, scopes: static::class) }}
|
||||
|
||||
@if ($hasColumnToggleDropdown)
|
||||
<x-filament-tables::column-toggle.dropdown
|
||||
@@ -241,12 +241,12 @@
|
||||
/>
|
||||
@endif
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('tables::toolbar.toggle-column-trigger.after', scopes: static::class) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::TABLES_TOOLBAR_TOGGLE_COLUMN_TRIGGER_AFTER, scopes: static::class) }}
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('tables::toolbar.end') }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::TABLES_TOOLBAR_END) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<x-filament-widgets::widget class="fi-wi-table">
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('widgets::table-widget.start', scopes: static::class) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::WIDGETS_TABLE_WIDGET_START, scopes: static::class) }}
|
||||
|
||||
{{ $this->table }}
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook('widgets::table-widget.end', scopes: static::class) }}
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\Support\View\RenderHook::WIDGETS_TABLE_WIDGET_END, scopes: static::class) }}
|
||||
</x-filament-widgets::widget>
|
||||
|
||||
Reference in New Issue
Block a user