@php use Leantime\Core\Controller\Frontcontroller; if (!function_exists('findActive')) { function findActive($route): string { if (str_contains(Frontcontroller::getCurrentRoute(), $route)) { return 'active'; } return ''; } } // Program boards inject their own kanban/table/list URLs + the route fragments used to // highlight the active tab. Per-project views fall back to the core /tickets/* routes. $boardTabs = $boardTabs ?? [ 'kanban' => ['url' => BASE_URL . '/tickets/showKanban', 'active' => 'Kanban'], 'table' => ['url' => BASE_URL . '/tickets/showAll', 'active' => 'showAll'], 'list' => ['url' => BASE_URL . '/tickets/showList', 'active' => 'showList'], ]; @endphp