Weird that my render hook fro appserviceprovider not work in other panel

i have this render hook working fine in admin and user panel but when i add another panel it does'nt center. I don't know what happen. I already install custom them in every panel. FilamentView::registerRenderHook( PanelsRenderHook::SIDEBAR_NAV_START, fn (): string => auth()->check() && auth()->user()->hasRole('Lecturer') ? Blade::render(' <div x-data x-show="$store.sidebar.isOpen" class="sidebar-extra-content"> <div class="text-center mb-2"> <img src="' . asset('images/logo.png') . '" alt="Logo" class="mx-auto" width="50%"/> </div> <div class="text-lg text-gray-900 dark:text-white text-center mb-2"> <p class="text-sm text-gray-900 dark:text-gray-400">Title</p> <p class="font-bold">portal</p> </div> <div class="text-center text-sm text-gray-500 dark:text-gray-400 p-0"> Version 1.0.0 </div> </div>') : '' );
3 Replies
toeknee
toeknee4w ago
Are you sure the user has the role 'Lecturer' in the new panel?
hrvzmndz
hrvzmndzOP4w ago
yes 100% also try this but no luck
No description
hrvzmndz
hrvzmndzOP4w ago
solved it by adding this @source '../../../../resources/views/filament/views/*/'; and transfer blade in views

Did you find this page helpful?