<div class="card">
    <div class="card-block">
        <h2 class="card-title">Listagem de Ordens de Serviço</h2>
        <div align="right">
            <a href="#adicionarPreventivaModelos" class="btn btn-s-md btn-success" data-animation="swell"
               data-plugin="custommodal"
               data-overlaySpeed="100" data-overlayColor="#36404a"><i class="fa fa-user-plus fa-2x"></i> Adicionar</a>
        </div>

        <div class="row">
            <div class="col-sm-6">
                <label class="form-inline">Show
                    <select id="demo-show-entries" class="form-control input-sm">
                        <option value="5">5</option>
                        <option value="10">10</option>
                        <option value="15">15</option>
                        <option value="20">20</option>
                    </select> entries </label>
            </div>
            <div class="col-sm-6">
                <div class="m-t-40">
                    <div class="d-flex">
                        <div class="ml-auto">
                            <div class="form-group">
                                <input id="demo-input-search1" type="text" placeholder="Procurar" class="form-control"
                                       autocomplete="off">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>


        <table id="demo-foo-pagination" class="table toggle-circle table-hover" data-page-size="6">
            <thead>


            <tr>
                <th>#</th>
                <th data-hide="phone">Descrição</th>
                <th data-hide="phone">Técnico Responsável</th>
                <th data-hide="phone">Tipo Manutenção</th>
                <th data-hide="phone">Tipo Veículo</th>
                <th>Ações</th>
                <th data-hide="all"></th>
                <!--                <th data-hide="all"> Status</th>-->
            </tr>
            </thead>
            <tbody>
            <?php foreach ($manutencoes as $r) { ?>
                <tr>
                    <td><?php echo $r->ID_MODELO ?></td>
                    <td><?php echo $r->DS_NOME_MANUTENCAO ?></td>
                    <td><?php echo $r->nomeFuncionario ?></td>
                    <td>
                        <span class="label label-table label-<?php echo $r->TP_MANUTENCAO == 'P' ? 'success' : 'warning' ?>"><?php echo $r->TP_MANUTENCAO == 'P' ? 'Preventiva' : 'Corretiva' ?></span>
                    </td>
                    <td>
                        <span><?php echo $r->TP_VEICULO_MODELO == 'P' ? 'Padron' : 'Brt/Articulado' ?></span>
                    </td>
                    <td>
                        <button class="btn btn-default waves-effect waves-light" type="button"
                                onclick="location.href='<?php base_url() ?>manutencao/editar/<?php echo $r->TP_MANUTENCAO ?>';">
                            <i class="fa fa-pencil-square-o"></i>
                        </button>
                        <button class="btn btn-default waves-effect waves-light" type="button"><i
                                    class="fa fa-trash-o"></i>
                        </button>
                        <button class="btn btn-default waves-effect waves-light" type="button"><i
                                    class="fa fa-print"></i>
                        </button>
                        <button class="btn btn-default waves-effect waves-light" type="button"><i
                                    class="fa fa-wrench"></i>
                        </button>
                    </td>
                    <td style="background-color: #0c0c0c">
                        <div class="col-12">
                            <div class="card">
                                <div class="card-block">
                                    <div class="table-responsive">
                                        <h2>teste</h2>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </td>


                </tr>
            <?php } ?>

            </tbody>
            <tfoot>
            <tr>
                <td colspan="5">
                    <div class="text-right">
                        <ul class="pagination pagination-split m-t-30"></ul>
                    </div>
                </td>
            </tr>
            </tfoot>
        </table>
    </div>
</div>


<?php $this->load->view("sistema/modais/manutencao/adicionarManutencaoModeloModal"); ?>


