<?php $render('header', ['loggedUser'=>$loggedUser, 'title'=>$titlePage]); ?>
<?=$render('sidebar', [
  'loggedUser'=>$loggedUser, 
  'pageActive'=>$pageActive,
  'permissions'=>$permissions
]);?>

<!-- Content System -->
<div class="content-wrapper">
  <div class="pages">
    <h3>Configurações de Relatório</h3>
      <div class="config">

        <?php if(!empty($error)): ?>
          <div class="alert <?=$error['alertType'];?>" role="alert">
            <?php echo $error['msg']; ?>
          </div>
        <?php endif; ?>

        <form method="POST" action="<?=$base;?>/reportsave" id="form_config" enctype="multipart/form-data">        
          <ul>
            <li>
              <img src="<?=$base;?>/assets/images/<?= $reports_info['img_soon']; ?>">
              <label style="color: #FFF;" class="btn btn-success" for="img_soon">alterar</label>
              <input type="file" name="img_soon" id="img_soon" style="display: none;">
            </li>
            <li>
              <input type="text" name="title" class="form-control" style="margin-bottom: 20px;" value="<?= $reports_info['title']; ?>">
              <textarea class="form-control" rows="5" name="other_information"><?= $reports_info['other_information']; ?></textarea>
            </li>
          </ul>

          <hr style="padding: 3px 0; background: #00688B; border: 0; width: 100%; float: left;">

          <div class="button">
            <button type="submit" class="btn btn-success">Salvar</button>
            <a href="<?=$base;?>/configuration" class="btn btn-info">Voltar</a>
          </div>
        </form>
      </div>
  </div>  		
</div>
<!-- /.content-system -->
<?=$render('footer');?>