<?php

namespace App\Http\Controllers;

use App\Models\Plan;
use App\Models\SeoSetting;

class LandingController extends Controller
{
    public function home()
    {
        $plans = Plan::query()
            ->where('status', true)
            ->where('is_trial', false)
            ->orderBy('duration_days')
            ->get();

        $seo = SeoSetting::current();

        return view('landing.home', compact('plans', 'seo'));
    }

    public function about()
    {
        $seo = SeoSetting::current();

        return view('landing.about', compact('seo'));
    }

    public function contact()
    {
        $seo = SeoSetting::current();

        return view('landing.contact', compact('seo'));
    }

    public function privacyPolicy()
    {
        $seo = SeoSetting::current();

        return view('landing.privacy-policy', compact('seo'));
    }
}