<?php
/**
 * Vendor Form Builder — Dokan dashboard template
 *
 * @package WahraRentalsBookings
 * @since   2.3.0
 */

defined('ABSPATH') || exit;
?>

<div class="dokan-dashboard-wrap">
    <?php do_action('dokan_dashboard_content_before'); ?>

    <div class="dokan-dashboard-content dokan-product-listing">
        <article class="dokan-product-listing-area wahrb-form-builder-page">

            <!-- Page Header -->
            <header class="wahrb-page-header">
                <div class="wahrb-page-header-content">
                    <h1 class="wahrb-page-title">
                        <span class="wahrb-page-icon">📋</span>
                        <?php esc_html_e('Form Builder', 'wahra-rentals-bookings'); ?>
                    </h1>
                    <p class="wahrb-page-description">
                        <?php esc_html_e('Create and manage custom booking form templates for your products.', 'wahra-rentals-bookings'); ?>
                    </p>
                </div>
            </header>

            <?php
            // Include the shared builder UI partial
            $role = 'vendor';
            include WAHRB_PLUGIN_DIR . 'templates/admin/partials/form-builder-ui.php';
            ?>
        </article>
    </div>

    <?php do_action('dokan_dashboard_content_after'); ?>
</div>
