<?php

namespace App\Http\Controllers;

use Illuminate\View\View;

class MarketNewsController extends Controller
{
    public function __invoke(): View
    {
        $sources = [
            [
                'name' => 'Forex Factory',
                'description' => 'Popular forex calendar, market forums, and trader-focused economic updates.',
                'url' => 'https://www.forexfactory.com/',
            ],
            [
                'name' => 'Investing.com Economic Calendar',
                'description' => 'Economic calendar covering global market events, forecasts, actuals, and historical releases.',
                'url' => 'https://www.investing.com/economic-calendar/',
            ],
            [
                'name' => 'DailyFX News',
                'description' => 'Forex market news, technical analysis, and macro commentary for major currency pairs.',
                'url' => 'https://www.dailyfx.com/forex-news',
            ],
            [
                'name' => 'FXStreet News',
                'description' => 'Real-time forex news, analysis, economic events, and currency market updates.',
                'url' => 'https://www.fxstreet.com/news',
            ],
            [
                'name' => 'MarketWatch Forex',
                'description' => 'Currency market coverage, forex headlines, and broader financial market context.',
                'url' => 'https://www.marketwatch.com/markets/currencies',
            ],
            [
                'name' => 'TradingView News',
                'description' => 'Market news and community-driven financial updates across forex, indices, crypto, and stocks.',
                'url' => 'https://www.tradingview.com/news/',
            ],
        ];

        return view('market-news', compact('sources'));
    }
}
