<?php

namespace App\Http\Controllers;

use App\Models\ContentSection;
use Illuminate\Http\Request;

class EuUkFinancialAidsController extends Controller
{
    public function index()
    {
        // Get content sections for EU/UK Financial Aids page
        $heroSection = ContentSection::where('section_key', 'eu_uk_hero')
            ->where('is_active', true)
            ->first();
            
        $overviewSection = ContentSection::where('section_key', 'eu_uk_overview')
            ->where('is_active', true)
            ->first();
            
        $eligibilitySection = ContentSection::where('section_key', 'eu_uk_eligibility')
            ->where('is_active', true)
            ->first();
            
        $processSection = ContentSection::where('section_key', 'eu_uk_process')
            ->where('is_active', true)
            ->first();
            
        $contactFormSection = ContentSection::where('section_key', 'eu_uk_contact_form')
            ->where('is_active', true)
            ->first();
            
        $contactInfoSection = ContentSection::where('section_key', 'eu_uk_contact_info')
            ->where('is_active', true)
            ->first();

        return view('eu-uk-financial-aids', compact(
            'heroSection',
            'overviewSection', 
            'eligibilitySection',
            'processSection',
            'contactFormSection',
            'contactInfoSection'
        ));
    }
}