<?php

namespace App\Controllers;

class ShopSubscriptions extends AdminBaseController
{
    public $title = 'Shop Subscriptions';
    public $menu = 'rewarder';
    public $submenu = 'shop_subscriptions';

    public function index()
    {
        $this->permissionCheck('shop_subscriptions_manage');
        return redirect()->to('shops')->with('notifySuccess', 'Shop subscriptions are now managed from Shops.');
    }

    public function add()
    {
        $this->permissionCheck('shop_subscriptions_manage');
        return redirect()->to('shops')->with('notifySuccess', 'Shop subscriptions are now managed from Shops.');
    }

    public function save()
    {
        $this->permissionCheck('shop_subscriptions_manage');
        return redirect()->to('shops')->with('notifySuccess', 'Shop subscriptions are now managed from Shops.');
    }

    public function edit($id)
    {
        $this->permissionCheck('shop_subscriptions_manage');
        return redirect()->to('shops')->with('notifySuccess', 'Shop subscriptions are now managed from Shops.');
    }

    public function update($id)
    {
        $this->permissionCheck('shop_subscriptions_manage');
        return redirect()->to('shops')->with('notifySuccess', 'Shop subscriptions are now managed from Shops.');
    }

    public function delete($id)
    {
        $this->permissionCheck('shop_subscriptions_manage');
        return redirect()->to('shops')->with('notifySuccess', 'Shop subscriptions are now managed from Shops.');
    }

    public function view($id)
    {
        $this->permissionCheck('shop_subscriptions_manage');
        return redirect()->to('shops')->with('notifySuccess', 'Shop subscriptions are now managed from Shops.');
    }
}

