<?php
class BidsController extends Controller
{
    public function indexAction()
    {
        $filter = ['q' => trim((string)($_GET['q'] ?? ''))];
        $m = new BusinessLeads();
        $this->view->setLayout($this->roleLayout());
        $this->view->render('Bids/index', [
            'page_title' => 'Bids · Pipeline Board',
            'buckets'    => $m->kanban($filter),
            'filter'     => $filter,
            'stages'     => BusinessLeads::STAGES,
        ]);
    }
}
