<?php $assetBase =
    basename(rtrim(FCPATH, "\\/")) === "public"
        ? "assets/"
        : "public/assets/"; ?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?= esc($industry["name"]) ?> · BrandSquare Admin</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="<?= base_url($assetBase . "css/admin.css") ?>">
</head>
<body class="admin-page">
<aside class="admin-sidebar">
    <a href="<?= base_url(
        "admin/leads",
    ) ?>" class="admin-logo">Brand<span>Square.</span></a>
    <nav><a href="<?= base_url(
        "admin/leads",
    ) ?>"><i>◉</i> Leads</a><a href="<?= base_url(
    "admin/clients",
) ?>"><i>◉</i> Clients</a><a href="<?= base_url(
    "admin/quotations",
) ?>"><i>₹</i> Quotations</a><a href="<?= base_url(
    "admin/invoices",
) ?>"><i>▤</i> Invoices</a><a class="active" href="<?= base_url(
    "admin/industries",
) ?>"><i>◆</i> Industries</a><a href="<?= base_url(
    "admin/articles",
) ?>"><i>▤</i> Articles</a><a href="<?= base_url(
    "admin/email-templates",
) ?>"><i>✦</i> Email templates</a><a href="<?= base_url(
    "admin/settings",
) ?>"><i>⚙</i> Settings</a><a href="<?= base_url() ?>" target="_blank"><i>↗</i> View website</a></nav>
    <div class="admin-user"><span><?= esc(
        strtoupper(substr((string) session("admin_name"), 0, 2)),
    ) ?></span><div><b><?= esc(session("admin_name")) ?></b><small><?= esc(
    session("admin_email"),
) ?></small></div></div>
    <form action="<?= base_url(
        "admin/logout",
    ) ?>" method="post"><?= csrf_field() ?><button class="logout" type="submit">Sign out →</button></form>
</aside>
<main class="admin-main quotation-view-main">
    <header class="admin-heading"><div><a class="back-to-templates" href="<?= base_url(
        "admin/industries",
    ) ?>">← Industry catalogue</a><h1><?= esc(
    $industry["name"],
) ?></h1><p>Review the search content and public landing-page status.</p></div><div class="quotation-actions"><a href="<?= base_url(
    "logo-design-for-" . $industry["slug"],
) ?>" target="_blank">Open landing page <span>↗</span></a><a class="edit-quotation-action" href="<?= base_url(
    "admin/industries/" . $industry["id"] . "/edit",
) ?>">Edit industry <span>→</span></a></div></header>
    <?php if (session("success")): ?><div class="alert success"><?= esc(
    session("success"),
) ?></div><?php endif; ?>
    <section class="industry-admin-preview" style="--preview-primary:<?= esc(
        $industry["primary_color"],
    ) ?>;--preview-accent:<?= esc($industry["accent_color"]) ?>">
        <div class="industry-preview-copy"><span>LANDING PAGE PREVIEW</span><b class="quote-status status-<?= $industry[
            "is_active"
        ]
            ? "accepted"
            : "cancelled" ?>"><?= $industry["is_active"]
    ? "Published"
    : "Inactive" ?></b><h2><?= esc($industry["hero_heading"]) ?></h2><p><?= esc(
    $industry["hero_text"],
) ?></p><a href="<?= base_url(
    "logo-design-for-" . $industry["slug"],
) ?>" target="_blank">View full page <span>→</span></a></div>
        <aside><small>LEAD FORM</small><h3>Tell us about your <?= esc(
            strtolower($industry["name"]),
        ) ?> brand.</h3><i></i><i></i><i></i><button>Get my free consultation →</button></aside>
    </section>
    <section class="admin-panel industry-admin-details">
        <div><span>Public URL</span><a href="<?= base_url(
            "logo-design-for-" . $industry["slug"],
        ) ?>" target="_blank"><?= esc(
    base_url("logo-design-for-" . $industry["slug"]),
) ?> ↗</a></div>
        <div><span>SEO title</span><p><?= esc(
            $industry["meta_title"],
        ) ?></p></div>
        <div><span>Meta description</span><p><?= esc(
            $industry["meta_description"],
        ) ?></p></div>
        <div><span>Industry message</span><h3><?= esc(
            $industry["challenge_heading"],
        ) ?></h3><p><?= esc($industry["challenge_text"]) ?></p></div>
    </section>
</main>
</body>
</html>
