<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class CmsController extends Controller
{
    public function __construct()
    {
        if (!isset($_COOKIE['section_id']) && !isset($_COOKIE['address_name'])) {
            \Redirect::to('set-location')->send();
        }
    }

    public function index($slug)
    {
        return view('cms.index', ['slug' => $slug]);
    }

    public function privacypolicy()
    {
        return view('static.privacypolicy');
    }

    public function termsofuse()
    {
        return view('static.termsofuse');
    }

    public function deliveryofsupport()
    {
        return view('static.deliveryofsupport');
    }
}