<?php

namespace App\Http\Controllers;

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

class AboutController extends Controller
{
    public function index()
    {
        $contents = [
            'profile' => Content::getValue('about_profile', 'About RG Digital Solution'),
            'vision' => Content::getValue('about_vision', 'Our Vision'),
            'mission' => Content::getValue('about_mission', 'Our Mission'),
            'founder_image' => Content::getValue('about_founder_image', 'default-founder.jpg'),
        ];

        return view('about.index', compact('contents'));
    }
}
