<?php

namespace App\Http\Controllers;

use App\Models\Province;
use App\Models\SupplierBenefit;
use App\Models\SupplierCaseStudy;
use App\Models\SupplierFaq;
use App\Models\SupplierProcessStep;
use Illuminate\Http\Request;

class SupplierPortalController extends Controller
{
    public function index()
    {
        $benefits = SupplierBenefit::active()->get();
        $steps = SupplierProcessStep::active()->get();
        $caseStudies = SupplierCaseStudy::active()->get();
        $faqs = SupplierFaq::active()->get();
        $provinces = Province::orderBy('name')->get();

        return view('pages.suppliers.index', compact(
            'benefits',
            'steps',
            'caseStudies',
            'faqs',
            'provinces'
        ));
    }
}
