<?php
/**
 * Tab: Notices (Free)
 * @package Panelra
 */
if ( ! defined( 'ABSPATH' ) ) { exit; }
$pnlrdb_hide = get_option( 'pnlrdb_hide_notices', 0 );
?>
<h2 class="ap773-section-title"><?php esc_html_e( 'Notices', 'panelra-dashboard-builder' ); ?></h2>
<p class="ap773-section-desc"><?php esc_html_e( 'Hide WordPress and plugin notices for a cleaner backend experience.', 'panelra-dashboard-builder' ); ?></p>

<div class="ap773-card">
	<div class="ap773-card-title">
		<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.73 21a2 2 0 0 1-3.46 0"/></svg>
		<?php esc_html_e( 'Notice visibility', 'panelra-dashboard-builder' ); ?>
	</div>
	<div class="ap773-field-row">
		<div>
			<div class="ap773-label"><?php esc_html_e( 'Hide all notices', 'panelra-dashboard-builder' ); ?></div>
			<div class="ap773-desc"><?php esc_html_e( 'Hides WP core and plugin notices for non-admin users.', 'panelra-dashboard-builder' ); ?></div>
		</div>
		<div class="ap773-toggle-wrap">
			<label class="ap773-toggle">
				<input type="checkbox" name="pnlrdb_hide_notices" value="1" <?php checked( $pnlrdb_hide, 1 ); ?>>
				<span class="ap773-toggle-slider"></span>
			</label>
			<span class="ap773-toggle-label"><?php echo $pnlrdb_hide ? esc_html__( 'Enabled', 'panelra-dashboard-builder' ) : esc_html__( 'Disabled', 'panelra-dashboard-builder' ); ?></span>
		</div>
	</div>
</div>

<?php do_action( 'pnlrdb_after_notices_settings' );
do_action( 'pnlrdb_after_notices_settings' ); ?>
