403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/client-portal-laravel/releases/20260626120707/config/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/client-portal-laravel/releases/20260626120707/config/analytics.php
<?php

declare(strict_types=1);

return [
    /*
    |--------------------------------------------------------------------------
    | Marketing Analytics Tracking
    |--------------------------------------------------------------------------
    |
    | Configuration for third-party analytics and tracking services used
    | on the marketing site (GTM, GA4, Meta Pixel, Hotjar).
    |
    */
    'tracking' => [
        'enabled' => env('ANALYTICS_ENABLED', true),
        'gtm_id' => env('GTM_CONTAINER_ID', ''),
        'ga4_id' => env('GA4_MEASUREMENT_ID', ''),
        'meta_pixel_id' => env('META_PIXEL_ID', ''),
        'hotjar_id' => env('HOTJAR_SITE_ID', ''),
        'debug' => env('ANALYTICS_DEBUG', false),
    ],

    /*
    |--------------------------------------------------------------------------
    | Chart Types
    |--------------------------------------------------------------------------
    |
    | Available chart types for analytics visualizations. Each chart type
    | has a label for display and component reference.
    |
    */
    'charts' => [
        'line' => [
            'label' => 'Line Chart',
            'icon' => 'chart-line',
            'description' => 'Best for trends over time',
        ],
        'bar' => [
            'label' => 'Bar Chart',
            'icon' => 'chart-bar',
            'description' => 'Best for comparing categories',
        ],
        'pie' => [
            'label' => 'Pie Chart',
            'icon' => 'chart-pie',
            'description' => 'Best for showing proportions',
        ],
        'doughnut' => [
            'label' => 'Doughnut Chart',
            'icon' => 'chart-pie',
            'description' => 'Pie chart with center cutout',
        ],
        'area' => [
            'label' => 'Area Chart',
            'icon' => 'chart-area',
            'description' => 'Line chart with filled area',
        ],
        'scatter' => [
            'label' => 'Scatter Plot',
            'icon' => 'chart-scatter',
            'description' => 'Best for correlation analysis',
        ],
        'radar' => [
            'label' => 'Radar Chart',
            'icon' => 'chart-radar',
            'description' => 'Best for multivariate comparison',
        ],
        'polarArea' => [
            'label' => 'Polar Area Chart',
            'icon' => 'chart-polar',
            'description' => 'Radial bar chart',
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Default Chart Options
    |--------------------------------------------------------------------------
    |
    | Default options applied to all charts unless overridden.
    |
    */
    'default_options' => [
        'responsive' => true,
        'maintainAspectRatio' => false,
        'animation' => [
            'duration' => 750,
        ],
        'plugins' => [
            'legend' => [
                'position' => 'bottom',
            ],
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Color Palettes
    |--------------------------------------------------------------------------
    |
    | Pre-defined color palettes for chart datasets.
    |
    */
    'palettes' => [
        'default' => [
            '#4F46E5', // Indigo
            '#10B981', // Emerald
            '#F59E0B', // Amber
            '#EF4444', // Red
            '#8B5CF6', // Violet
            '#06B6D4', // Cyan
            '#F97316', // Orange
            '#EC4899', // Pink
        ],
        'blue' => [
            '#1E40AF',
            '#1D4ED8',
            '#2563EB',
            '#3B82F6',
            '#60A5FA',
            '#93C5FD',
            '#BFDBFE',
            '#DBEAFE',
        ],
        'green' => [
            '#065F46',
            '#047857',
            '#059669',
            '#10B981',
            '#34D399',
            '#6EE7B7',
            '#A7F3D0',
            '#D1FAE5',
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Export Settings
    |--------------------------------------------------------------------------
    |
    | Configuration for analytics data exports.
    |
    */
    'export' => [
        'formats' => ['csv', 'excel', 'json', 'pdf'],
        'max_rows' => 50000,
        'retention_days' => 7,
    ],

    /*
    |--------------------------------------------------------------------------
    | Dashboard Widgets
    |--------------------------------------------------------------------------
    |
    | Available widget types for custom dashboards.
    |
    */
    'widgets' => [
        'revenue_summary' => [
            'label' => 'Revenue Summary',
            'service' => \App\Services\Analytics\FinancialAnalyticsService::class,
            'method' => 'getRevenueSummary',
            'size' => 'medium',
        ],
        'revenue_trend' => [
            'label' => 'Revenue Trend',
            'service' => \App\Services\Analytics\FinancialAnalyticsService::class,
            'method' => 'getRevenueTrend',
            'chart_type' => 'line',
            'size' => 'large',
        ],
        'project_status' => [
            'label' => 'Projects by Status',
            'service' => \App\Services\Analytics\ProjectAnalyticsService::class,
            'method' => 'getProjectsByStatus',
            'chart_type' => 'doughnut',
            'size' => 'small',
        ],
        'client_health' => [
            'label' => 'Client Health Distribution',
            'service' => \App\Services\Analytics\ClientAnalyticsService::class,
            'method' => 'getHealthDistribution',
            'chart_type' => 'pie',
            'size' => 'small',
        ],
        'invoice_aging' => [
            'label' => 'Invoice Aging',
            'service' => \App\Services\Analytics\FinancialAnalyticsService::class,
            'method' => 'getAgingReport',
            'chart_type' => 'bar',
            'size' => 'medium',
        ],
        'top_clients' => [
            'label' => 'Top Clients by Revenue',
            'service' => \App\Services\Analytics\ClientAnalyticsService::class,
            'method' => 'getTopClientsByRevenue',
            'size' => 'medium',
        ],
        'at_risk_clients' => [
            'label' => 'At-Risk Clients',
            'service' => \App\Services\Analytics\ClientAnalyticsService::class,
            'method' => 'getAtRiskClients',
            'size' => 'medium',
        ],
        'kpi_summary' => [
            'label' => 'KPI Summary',
            'service' => \App\Services\Analytics\KpiService::class,
            'method' => 'getSummary',
            'size' => 'large',
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Trend Analysis
    |--------------------------------------------------------------------------
    |
    | Configuration for trend analysis and forecasting.
    |
    */
    'trends' => [
        'default_forecast_periods' => 3,
        'anomaly_threshold' => 2.0,
        'moving_average_window' => 3,
        'smoothing_alpha' => 0.3,
    ],
];

Youez - 2016 - github.com/yon3zu
LinuXploit