<?php
require_once "autoload.php";
$cat = $_GET['cat'];
$catName = ItemDAO::$cats[$cat];
$id = $_GET['id'];
$dao = new ItemDAO();
$item = $dao->getItem($cat, $id, $catName);
?>
<!DOCTYPE html>
<html lang="en">

<?php
include "head.php";
?>

<body class="portfolio-details-page">

    <?php
    include "header.php";
    ?>

    <main class="main">

        <!-- Page Title -->
        <div class="page-title dark-background">
            <div
                class="container d-lg-flex justify-content-between align-items-center">
                <h1 class="mb-2 mb-lg-0">Portfolio Details</h1>
                <nav class="breadcrumbs">
                    <ol>
                        <li><a href="index.php">Home</a></li>
                        <li class="current">Portfolio Details</li>
                    </ol>
                </nav>
            </div>
        </div><!-- End Page Title -->

        <?php $item->showDetails(); ?>

    </main>

    <?php
    include "footer.php";
    ?>

</body>

</html>