<?php foreach($planos as $plano){ ?>
<div class="form-check">
  <input class="form-check-input" type="checkbox" name="id_planos[]" value="<?php e($plano->id_plano) ?>" id="defaultCheck1">
    <div id="accordion" role="tablist">
        <div class="card card-accent-info">
            <div class="card-header" id="heading" role="tab">
                <h5 class="mb-0">
                <a data-toggle="collapse" href="#collapse-<?php e($plano->id_plano) ?>" aria-expanded="true" aria-controls="collapse-<?php e($plano->id_plano) ?>" class="collapsed">
                    <?php e($plano->plano) ?>
                </a>
                </h5>
            </div>
            <div class="collapse" id="collapse-<?php e($plano->id_plano) ?>" role="tabpanel" aria-labelledby="heading" data-parent="#accordion" style="">
                <div class="card-body">
                    <div class="row">
                        <table class="table">
                          <thead>
                            <tr>
                              <th scope="col">Plano</th>
                              <th scope="col">Meses</th>
                              <th scope="col">Comissão</th>
                              <th scope="col">Condição</th>
                              <th scope="col">Descrição Condição</th>
                              <th scope="col">Descrição Serviços</th>
                            </tr>
                          </thead>
                          <tbody>
                            <tr>
                              <th scope="row"><?php e($plano->plano); ?></th>
                              <td><?php e($plano->meses); ?></td>
                              <td><?php e($plano->comissao); ?></td>
                              <td><?php e(strip_tags($plano->condicao)); ?></td>
                              <td><?php e(strip_tags($plano->desc_condicao)); ?></td>
                              <td><?php e(strip_tags($plano->desc_servicos)); ?></td>
                            </tr>
                          </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php } ?>
<div class="form-check">
  <input class="form-check-input" type="checkbox" name="novo_plano" value="1" id="defaultCheck1">
    <div id="accordion" role="tablist">
        <div class="card card-accent-info">
            <div class="card-header" id="heading" role="tab">
                <h5 class="mb-0">
                <a data-toggle="collapse" href="#collapse-novo-plano" aria-expanded="true" aria-controls="collapse-novo-plano" class="collapsed">
                    Propor Novo Plano
                </a>
                </h5>
            </div>
            <div class="collapse" id="collapse-novo-plano" role="tabpanel" aria-labelledby="heading" data-parent="#accordion" style="">
                <div class="card-body">
                    <div class="row">
                        <table class="table">
                          <thead>
                            <tr>
                              <th scope="col">Plano</th>
                              <th scope="col">Meses</th>
                              <th scope="col">Comissão</th>
                              <th scope="col">Condição</th>
                              <th scope="col">Descrição Condição</th>
                              <th scope="col">Descrição Serviços</th>
                            </tr>
                          </thead>
                          <tbody>
                            <tr>
                              <th scope="row"><input type="text" class="form-control" name="plano"></th>
                              <td><input type="text" class="form-control" name="meses"></td>
                              <td><input type="text" class="form-control" name="comissao"></td>
                              <td><input type="text" class="form-control" name="condicao"></td>
                              <td><input type="text" class="form-control" name="desc_condicao"></td>
                              <td><input type="text" class="form-control" name="desc_servicos"></td>
                            </tr>
                          </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>