<?php

namespace App\Http\Controllers;

use App\Models\StudentReview;
use App\Models\SuccessStoriesPageContent;
use App\Models\VisaSuccessStory;
use Illuminate\View\View;

class SuccessStoriesController extends Controller
{
    public function index(): View
    {
        $content = SuccessStoriesPageContent::getContent();
        $studentReviews = StudentReview::active()->ordered()->limit(8)->get();
        $visaStories = VisaSuccessStory::active()->ordered()->limit(9)->get();
        $homeContent = \App\Models\HomePageContent::getContent();

        return view('success-stories', compact('content', 'studentReviews', 'visaStories', 'homeContent'));
    }
}
