<div class="container-fluid my-3">

    <form action="<?php echo base_url('Consultazione_sva/creaTabellaReportMacchinario/' ); ?>" method="post">
        <div class="row">
            <div class="form-group col-sm-2">
                <input type="date" class="form-control" placeholder="Data" name="data_sva" value="<?php echo $this->session->data_sva; ?>" aria-describedby="basic-addon3" >
            </div>
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" data-translate="lbl4" placeholder="Articolo" name="articolo_sva" value="<?php echo $this->session->articolo_sva; ?>" aria-describedby="basic-addon3">
            </div>
            <div class="form-group col-sm-3">
                <input type="text" class="form-control" data-translate="lbl5" placeholder="Descrizione articolo" name="descrizione_articolo_sva" value="<?php echo $this->session->descrizione_articolo_sva; ?>" aria-describedby="basic-addon3">
            </div>
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" data-translate="lbl6" placeholder="Matricola" name="matricola_sva" value="<?php echo $this->session->matricola_sva; ?>" aria-describedby="basic-addon3" >
            </div>
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" data-translate="lbl18" placeholder="Utente" name="utente_sva" value="<?php echo $this->session->utente_sva; ?>" aria-describedby="basic-addon3">
            </div>

            <div class="form-group col-sm-1 text-right">
                <button type="submit" class="btn btn-info " name="search" style="width: 100%; height: 100%"><i class="fas fa-search"></i>&nbsp;</button>
            </div>

        </div>
    </form>
    <table id="tabella_report_macchinario" class="display table table-hover " >
        <thead>
            <tr>
                <th data-translate="lbl22">Data</th>
                <th data-translate="lbl23">Ora</th>
                <th data-translate="lbl24">Articolo</th>
                <th data-translate="lbl25">Descrizione Articolo</th>
                <th data-translate="lbl26">Matricola estintore</th>  
                <th data-translate="lbl7">Fase</th>  
                <th data-translate="lbl27">Coppia Serraggio[x10 Nm]</th> 
                <th data-translate="lbl28">Operatore</th>
            </tr>
        </thead>
        <tbody>
            <?php
                foreach ($report_macchinario as $key => $rp) {
                    echo '<tr>';
                        echo '<td>' . $rp->date . '</td>';
                        echo '<td>' . $rp->ora . '</td>';
                        echo '<td>' . $rp->articolo . '</td>';
                        echo '<td>' . $rp->descrizione_articolo . '</td>';
                        echo '<td>' . $rp->matricola . '</td>';
                        echo '<td>' . $rp->fase . '</td>';
                        echo '<td>' . $rp->coppia_serraggio . '</td>';
                        echo '<td>' . $rp->utente . '</td>';
                    echo '</tr>';
                }
            ?>
        </tbody>
    </table>
    <p><?php echo $links; ?></p>

</div>