<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title><?= e($title ?? 'Customer Portal') ?> · AOSWARE</title>
  <link rel="icon" href="<?= e(asset('img/aosware-crm-logo.jpg')) ?>">
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet">
  <link href="<?= e(asset('css/app.css')) ?>" rel="stylesheet">
</head>
<body class="cpt-body">
<div class="cpt-shell">
  <?php \App\Core\View::partial('nav'); ?>
  <div class="cpt-main-col">
    <header class="cpt-top">
      <div>
        <div class="cpt-top-kicker">Customer Portal</div>
        <div class="cpt-top-company"><?= e(current_account()['name'] ?? '') ?></div>
      </div>
      <div class="cpt-top-date"><i class="bi bi-calendar3"></i> <?= date('M j, Y') ?></div>
    </header>
    <main class="cpt-main">
      <?php if ($msg = flash('success')): ?><div class="alert alert-success"><?= e($msg) ?></div><?php endif; ?>
      <?php if ($msg = flash('error')): ?><div class="alert alert-danger"><?= e($msg) ?></div><?php endif; ?>
      <?= $content ?>
    </main>
  </div>
</div>
</body>
</html>
