How to get checkbox value (on table) into the controller?

oh sorry.
View:

 foreach ($payamentSlips as $payamentSlip) {
<?php
                                        echo $this->Form->control("flag.{$payamentSlip->nosso_numero}", [
                                            'type' => 'checkbox',
                                            'label' => false,
                                            'data-payable-id' => $payamentSlip->id,

                                        ]);
                                        // dump($checked);
                                        ?>
                                </td>

Controller

public function gerarPdfSelecionados()
{
// dump($checked);
if ($this->request->is(‘post’)) {
$boletosel = ;
$data = ;
$session = $this->request->session();

        $data = $session->read('boletosel');
        $session = 2;
        // dump($data);
        // $checked = $this->request->getData('inpute.checked');
        if ($data) {
            $this->Flash->Error('Por favor selecione ao menos um boleto ');
            $this->setAction('index');
        } else {
            $this->Flash->Error('Não existe ');
            // dump($data);
        }
        $texto =  $this->request->getData();
        dump($texto);

        // $this->set('checked', $boletosel);
    }
}

result from $texto
array:1 [▼
“flag” => array:1 [▼
“00012931” => “0”
]
]

only show the first selected item.