<?php
if ( ! defined( 'ABSPATH' ) ) exit;
?>
<div class="wrap bingocr-admin-wrap">
	<h1><?php esc_html_e( 'BingoCR Car Rental', 'bingocar' ); ?></h1>

	<div class="bingocr-stats-grid" id="bingocr-dashboard-stats">
		<div class="bingocr-stat-card">
			<span class="bingocr-stat-label"><?php esc_html_e( 'Total Cars', 'bingocar' ); ?></span>
			<span class="bingocr-stat-value" id="stat-cars">—</span>
		</div>
		<div class="bingocr-stat-card">
			<span class="bingocr-stat-label"><?php esc_html_e( 'Total Reservations', 'bingocar' ); ?></span>
			<span class="bingocr-stat-value" id="stat-reservations">—</span>
		</div>
		<div class="bingocr-stat-card bingocr-stat-pending">
			<span class="bingocr-stat-label"><?php esc_html_e( 'Pending', 'bingocar' ); ?></span>
			<span class="bingocr-stat-value" id="stat-pending">—</span>
		</div>
		<div class="bingocr-stat-card bingocr-stat-revenue">
			<span class="bingocr-stat-label"><?php esc_html_e( 'Revenue (confirmed)', 'bingocar' ); ?></span>
			<span class="bingocr-stat-value" id="stat-revenue">—</span>
		</div>
	</div>

	<div class="bingocr-quick-links">
		<a href="<?php echo esc_url( admin_url( 'admin.php?page=bingocr-cars' ) ); ?>" class="button button-primary">
			<?php esc_html_e( '+ Add Car', 'bingocar' ); ?>
		</a>
		<a href="<?php echo esc_url( admin_url( 'admin.php?page=bingocr-reservations' ) ); ?>" class="button">
			<?php esc_html_e( 'View Reservations', 'bingocar' ); ?>
		</a>
		<a href="<?php echo esc_url( admin_url( 'admin.php?page=bingocr-settings' ) ); ?>" class="button">
			<?php esc_html_e( 'Settings', 'bingocar' ); ?>
		</a>
	</div>

	<div class="bingocr-shortcode-hint">
		<strong><?php esc_html_e( 'Shortcode:', 'bingocar' ); ?></strong>
		<code>[bingocr_rental]</code>
		&mdash;
		<?php esc_html_e( 'Add this to any page to display the booking widget.', 'bingocar' ); ?>
	</div>
</div>
