<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( ! current_user_can( 'manage_options' ) ) {
	return;
}
?>
<div class="wp-powersuite-module-settings" data-module-id="<?php echo esc_attr( $module_id ?? 'storage-monitor' ); ?>">
	<p class="description">
		<?php esc_html_e( 'This module displays storage usage information in a dashboard widget. No configuration needed.', 'wp-powersuite' ); ?>
	</p>
	<div class="notice notice-info inline">
		<p>
			<strong><?php esc_html_e( 'What it does:', 'wp-powersuite' ); ?></strong><br>
			<?php esc_html_e( '• Adds a "Storage Monitor" widget to your WordPress dashboard', 'wp-powersuite' ); ?><br>
			<?php esc_html_e( '• Displays uploads, plugins, themes, and database size with a visual breakdown', 'wp-powersuite' ); ?><br>
			<?php esc_html_e( '• Helps you spot which areas are using the most disk space before hosting limits become a problem', 'wp-powersuite' ); ?>
		</p>
		<p>
			<strong><?php esc_html_e( 'Note:', 'wp-powersuite' ); ?></strong>
			<?php esc_html_e( 'Totals cover uploads, plugins, themes, and the database only—not WordPress core or other wp-content folders. Calculations are approximate and may take a moment on large sites. Data is cached for 1 hour.', 'wp-powersuite' ); ?>
		</p>
	</div>
</div>
