<?php

/**
 * JCOGS Image Pro - Advanced Settings View
 * =========================================
 * Control panel view for advanced settings interface with error notifications
 * 
 * @category   ExpressionEngine Add-on
 * @package    JCOGS Image Pro
 * @author     JCOGS Design <contact@jcogs.net>
 * @copyright  Copyright (c) 2021 - 2025 JCOGS Design
 * @license    https://jcogs.net/add-ons/license/jcogs_img_pro
 * @version    2.0.6
 * @link       https://JCOGS.net/
 * @since      Error Notification System
 */

/**
 * Advanced Settings View Template
 * 
 * Renders the advanced settings interface using EE7 layout conventions.
 * Includes alert rendering for error notifications and other system messages.
 * The sidebar is handled by ImageAbstractRoute - this template only renders 
 * the main content area.
 * 
 * Available Variables:
 * - $cp_page_title: Page title for the advanced settings interface  
 * - $form: EE7 form object containing all advanced settings controls
 * 
 * Features:
 * - Error notification display
 * - System alert rendering
 * - Advanced settings form
 * - Performance configuration
 * - Processing options
 */
?>

<div class="panel">
    <div class="panel-heading">
        <div class="title-bar title-bar--large">
            <h3 class="title-bar__title"><?= $cp_page_title ?></h3>
        </div>
    </div>
    <div class="panel-body">
        <div class="app-notice-wrap"><?=ee('CP/Alert')->getAllInlines()?></div>
        
        <?php if (isset($form) && !empty($form)): ?>
        <!-- Advanced settings form (CP/Form handles its own form tags) -->
        <?= $form->render() ?>
        <?php endif; ?>
    </div>
</div>