@php use Leantime\Core\Controller\Frontcontroller; $currentRoute = Frontcontroller::getCurrentRoute(); $currentUrlPath = BASE_URL . '/' . str_replace('.', '/', $currentRoute); // Program boards render this partial under a /pgmPro/* route and can pass an explicit // self-redirect target. Default to the current route for normal per-project views. $searchFormUrl = $searchFormUrl ?? $currentUrlPath; $groupBy = $groupByOptions; $sortBy = $sortOptions; $statusLabels = $allTicketStates; $taskToggle = $enableTaskTypeToggle ?? false; // Multi-project (program) context: show the project filter + the "project" group-by. $showProjectFilter = isset($availableProjects); // Kanban shows status as columns, so the status group-by is suppressed. Program kanban // templates set $isKanbanView; per-project views derive it from the route. $isKanbanView = $isKanbanView ?? ($currentRoute === 'tickets.showKanban'); @endphp