<?php
if (!isset($admin_page_title)) {
    $admin_page_title = 'پنل مدیریت';
}
if (!isset($admin_page_icon)) {
    $admin_page_icon = 'fas fa-layer-group';
}
$actions = $admin_page_actions ?? ($admin_topbar_extra ?? '');
?>
<div class="pagetitle mb-4">
    <nav aria-label="مسیر">
        <ol class="breadcrumb ma-breadcrumb mb-2">
            <li class="breadcrumb-item"><a href="index.php">خانه</a></li>
            <li class="breadcrumb-item active" aria-current="page"><?= htmlspecialchars($admin_page_title) ?></li>
        </ol>
    </nav>
    <div class="d-flex flex-wrap align-items-center justify-content-between gap-2">
        <h1 class="page-title mb-0">
            <i class="<?= htmlspecialchars($admin_page_icon) ?> ms-2 text-accent page-title-icon" aria-hidden="true"></i><?= htmlspecialchars($admin_page_title) ?>
        </h1>
        <?php if ($actions !== ''): ?>
        <div class="page-actions d-flex flex-wrap align-items-center gap-2"><?= $actions ?></div>
        <?php endif; ?>
    </div>
</div>
