<?php
/**
 * 247ChatMate — Agency Hub partial.
 * Checkpoint: AGENCYHUBRESPONSIBILITYSPLIT1
 *
 * Display-only split from admin/views/partials/agency-hub.php.
 * Expects parent Agency Hub variables to be prepared before include.
 */

defined('ABSPATH') || exit;
?>
    <div class="matewa-agency-hub-grid">
        <article class="matewa-agency-hub-card">
            <span class="dashicons dashicons-yes-alt" aria-hidden="true"></span>
            <h4>Agency overview</h4>
            <p><strong><?php echo esc_html($matewa_agency_name); ?></strong></p>
            <p>Own-site access is verified. This free agency key unlocks the agency website only.</p>
            <?php if ('' !== $matewa_agency_id) : ?>
                <small>Agency ID: <?php echo esc_html($matewa_agency_id); ?></small>
            <?php endif; ?>
        </article>

        <article class="matewa-agency-hub-card">
            <span class="dashicons dashicons-admin-network" aria-hidden="true"></span>
            <h4>Client setup packs</h4>
            <p>Manual setup packs are active and client-site setup JSON export is available from each client row.</p>
            <small>Next after bundle seats: client setup pack builder.</small>
        </article>

        <article class="matewa-agency-hub-card">
            <span class="dashicons dashicons-tickets-alt" aria-hidden="true"></span>
            <h4>Licence seats</h4>
            <p>Client seats are separate from this free agency own-site key and come from paid agency bundles.</p>
            <small>Own-site key seats: <?php echo esc_html((string) $matewa_agency_own_site_client_seats); ?> · Bundle seats: <?php echo esc_html((string) $matewa_agency_client_seats); ?></small>
        </article>

        <article class="matewa-agency-hub-card">
            <span class="dashicons dashicons-shield" aria-hidden="true"></span>
            <h4>Verification status</h4>
            <p>Status: <?php echo esc_html($matewa_agency_status_label); ?></p>
            <small>Last checked: <?php echo esc_html($matewa_agency_checked_label); ?></small>
            <?php if ('' !== $matewa_agency_expiry) : ?>
                <small>Access expiry: <?php echo esc_html($matewa_agency_expiry); ?></small>
            <?php endif; ?>
        </article>
    </div>
