<?php
/**
 * BookiFlex Core
 *
 * @package    BookiFlex
 * @subpackage Core
 * @author     BookiFlex
 * @copyright  Copyright (c) 2025 BookiFlex
 * @license    GPL-2.0-or-later
 *
 * @link       https://bookiflex.com
 */

declare(strict_types=1);

namespace BookiFlex\Core\Admin\Menu;

use BookiFlex\Core\Contract\RoleCapabilitiesInterface;

defined( 'ABSPATH' ) || exit;

class MainMenu extends AbstractMenu
{
    public function registerMenu(): void
    {
        add_menu_page(
            'BookiFlex', // Page title
            'BookiFlex', // Menu title
            RoleCapabilitiesInterface::MANAGE_CONFIGURATION,             // Capability
            'bookiflex',                  // Menu slug
            '',// Callback function
            'dashicons-admin-home',    // Icon URL
            '26.1'                             // Position
        );

        add_menu_page(
            __('Reservations', 'bookiflex'), // Page title
            __('Reservations', 'bookiflex'), // Menu title
            RoleCapabilitiesInterface::MANAGE_RESERVATIONS,             // Capability
            'bookiflex-reservations',                  // Menu slug
            '',
            'dashicons-calendar',    // Icon URL
            '26.2'                             // Position
        );
    }
}
