<?php
/**
 * Panel operativo (frontend del usuario) — delega al shell compartido o configuración.
 *
 * @package Logistica
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

require_once LOGISTICA_PLUGIN_DIR . 'admin/views/partials.php';

if ( logistica_is_config_panel() ) {
	$logistica_panel_heading = 'config';
	include LOGISTICA_VIEWS_SHELLS . 'config-shell.php';
	return;
}

if ( logistica_is_public_panel() ) {
	$logistica_panel_context          = Logistica_Tabs::CONTEXT_OPERATIONS;
	$logistica_panel_heading          = 'default';
	$logistica_panel_show_user_header = false;
	include LOGISTICA_VIEWS_SHELLS . 'panel-shell.php';
	return;
}

$logistica_panel_context          = Logistica_Tabs::CONTEXT_OPERATIONS;
$logistica_panel_heading          = 'operations';
$logistica_panel_show_user_header = true;

include LOGISTICA_VIEWS_SHELLS . 'panel-shell.php';
