@php if (empty($authUser) and auth()->check()) { $authUser = auth()->user(); } $navBtnUrl = null; $navBtnText = null; if(request()->is('forums*')) { $navBtnUrl = '/forums/create-topic'; $navBtnText = trans('update.create_new_topic'); } else { $navbarButton = getNavbarButton(!empty($authUser) ? $authUser->role_id : null, empty($authUser)); if (!empty($navbarButton)) { $navBtnUrl = $navbarButton->url; $navBtnText = $navbarButton->title; } } @endphp @push('scripts_bottom') @endpush