<?php $__env->startSection('content'); ?>

  <?php if(Session::has('message')): ?>
      <div class="row">
          <div class="col-md-12">
              <div class="alert alert-<?php /**/ echo Session::get('class') /**/ ?>">
                  <?php /**/ echo Session::get('message') /**/ ?>
                  <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
              </div>
          </div>
      </div>
  <?php endif; ?>
  <div class="panel panel-defalt">
    <div class="panel-heading">
      <div class="col-md-12">
        <h3 class="box-title">Manifestação <span class="text-success">#<?php echo e($manifestacao->chave_de_acesso); ?></span></h3><br>
      </div>
    </div>

    <div class="panel-body">
        <div class="row">
            <div class="col-md-12">
                <div class="box box-success">
                  <div class="box-header with-border">
                    <h4 class="box-title"><strong>Detalhes</strong></h4>
                  </div>
                  <div class="box-body">
                    <table class="table table-striped">
                      <tbody>
                        <tr>
                          <th style="width:100px">Tipo</th>
                          <td><?php echo e($manifestacao->getTipo($manifestacao->manifestacao_tipo)); ?></td>
                        </tr>
                        <tr>
                          <th style="width:100px">Código</th>
                          <td><?php echo e($manifestacao->chave_de_acesso); ?></td>
                        </tr>
                        <tr>
                          <th style="width:100px">Descrição</th>
                          <td><?php echo e($manifestacao->inteiro_teor); ?></td>
                        </tr>
                        <tr>
                          <th style="width:100px">Data</th>
                          <td><?php echo e(date('d/m/Y', strtotime($manifestacao->created_at))); ?></td>
                        </tr>
                        <tr>
                          <th style="width:100px">Fase Atual</th>
                          <td><?php echo e($fases_manifestacao[0]->getFase($fases_manifestacao[0]->codigo_da_fase)); ?></td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                </div>
            </div>
            <div class="col-md-12">
              <div class="box box-success">
                <div class="box-header with-border">
                  <h4 class="box-title"><strong>Respostas</strong></h4>
                </div>
                <div class="box-body">
                  <table class="table table-striped">
                    <thead>
                      <tr>
                        <th>Data</th>
                        <th>Fase</th>
                        <th>Responsável</th>
                        <th>Descrição</th>
                        <th>Meio de Resposta</th>
                      </tr>
                    </thead>
                    <tbody>
                      <?php if(count($fases_manifestacao) > 0): ?>
                        <?php foreach($fases_manifestacao as $key => $fase): ?>
                          <tr>
                            <td><?php echo e(date('d/m/Y', strtotime($fase->created_at))); ?></td>
                            <td><?php echo e($fase->getFase($fase->codigo_da_fase)); ?></td>
                            <td><?php echo e($fase->responsavel); ?></td>
                            <td><?php echo e($fase->descricao); ?></td>
                            <td><?php echo e($fase->meio_para_resposta); ?></td>
                          </tr>
                        <?php endforeach; ?>
                      <?php endif; ?>
                    </tbody>
                  </table>
                </div>
              </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout.siafc', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>