<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Models\SiteContent; // <-- Correct model

class AboutController extends Controller
{
    public function index()
    {
        // Fetch content where page = 'about'
        $aboutContent = SiteContent::where('page', 'about')->first();

        return view('about', [
            'content' => $aboutContent
        ]);
    }
}
