<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Models\Faq;
use App\Models\Page;

class FaqController extends Controller
{
    public function index(){
        $page = Page::where(['title' => 'FAQ','status' => 1])->first();
        $faqs = Faq::where('status',true)->get();
        return view('faq',compact('faqs','page'));
    }
}