<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name=”robots” content=”noindex,nofollow”>
    <title><?=esc($title); ?> | LTcms - Your customized CMS to ease and simplify your website management</title>
    <link href="<?= base_url();?>/assets/images/favicon.png" rel="icon">
    <link href="<?= base_url();?>/assets/images/apple-icon-180x180.png" rel="apple-touch-icon">
  <link href="https://fonts.gstatic.com" rel="preconnect">
  <link href="https://fonts.googleapis.com/css?family=Anton&Manrope:wght@200;300;400;500;600;700;800&family=Roboto:wght@100;300;400;500;700&Open+Sans:300,300i,400,400i,600,600i,700,700i|Nunito:300,300i,400,400i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">

  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"   crossorigin="anonymous" />
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
  <link rel="stylesheet" href="<?= base_url('assets/vendor');?>/bootstrap/css/bootstrap.min.css">
  <link rel="stylesheet" href="<?= base_url('assets/vendor');?>/bootstrap-icons/bootstrap-icons.css">
  <link href="<?= base_url();?>assets/vendor/toastr/toastr.min.css" rel="stylesheet">
  <link href="<?= base_url();?>assets/css/custom.css" rel="stylesheet">
  <script src="<?= base_url();?>assets/vendor/toastr/toastr.min.js"></script>
</head>

<body class="login">
<script>
        <?php if(session()->getFlashdata('success')){ ?>
            toastr.success("<?= session()->getFlashdata('success'); ?>");
        <?php }else if(session()->getFlashdata('error')){  ?>
            toastr.error("<?= session()->getFlashdata('error'); ?>");
        <?php }else if(session()->getFlashdata('warning')){  ?>
            toastr.warning("<?= session()->getFlashdata('warning'); ?>");
        <?php }else if(session()->getFlashdata('info')){  ?>
            toastr.info("<?= session()->getFlashdata('info'); ?>");
        <?php } ?>
  </script>
  <div class="container loginbox shadow-sm">
  <div class="d-flex bd-highlight mb-2">
    <div class="bd-highlight p-1">
      <a href="./"> <img src="<?= base_url(); ?>/assets/images/logo1.png" alt="LTcms" class="logo"> </a>
    </div>
    <div class="bd-highlight p-1">
    <h3>Welcome to  <strong>UGA REDD+</strong></h3>
    <p class="mb-2 text-muted"><small>Log in is required so you can view, manage, and delete your areas of interest.</small></p>
    </div>
  </div><!-- Top header !-->
  <div class="row"><div class="col mb-2"><h2><?= $title ?></h2></div></div>
  <div class="row">
    <div class="col mb-3 notification">
      <?php if(session()->getTempdata('success')): ?>
				<div class="alert alert-success" role="alert">
          <?= session()->getTempdata('success');?>
        </div>
			<?php endif;?>
			<?php if(session()->getTempdata('error')): ?>
				<div class="alert alert-danger" role="alert">
        <?= session()->getTempdata('error');?>
      </div>
      <?php endif ?>
      <?php if(session()->getTempdata('warning')): ?>
				<div class="alert alert-warning" role="alert">
        <?= session()->getTempdata('warning');?>
      </div>
      <?php endif ?>
      <?php if(session()->getTempdata('info')): ?>
				<div class="alert alert-info" role="alert">
        <?= session()->getTempdata('info');?>
      </div>
			<?php endif ?>
      <?php if (! empty($errors)): ?>
          <div class="alert alert-danger" role="alert">
              <ul>
              <?php foreach ($errors as $error): ?>
                  <li><?= esc($error) ?></li>
              <?php endforeach ?>
              </ul>
          </div>
      <?php endif ?>
    </div>
  </div><!-- print notifications !-->