<?php

//debug($list);

echo $this->Form->create('import', ['type' => 'file']);
echo '<table>';
foreach ($list as $item) {
    //debug($item);
    echo '<tr>';
    echo '<td>' . $item->schooltype->name . '</td>';
    echo '<td>' . $item->title . '</td>';
    echo '<td>' . $this->Form->input('csv-' . $item->id, ['type' => 'file']). '</td>';
    echo '</tr>';
}
echo '</table>';
   echo $this->Form->button(__('Submit'));
   echo $this->Form->end();
?>

