<?php
namespace TourOperatorProAdmin\app\controllers;
use TourOperatorPro\Factory;
use TourOperatorPro\Mvc\Controller\Controller;
use TourOperatorPro\Mvc\Controller\ControllerForm ;
use TourOperatorPro\Mvc\Model\Model;

defined('_TOUROPERATOR_EXEC') or die;
class OrderpackageController extends ControllerForm
{
    public $view="orderpackages";
    public function delete($id = 0)
    {
        return parent::delete($id); // TODO: Change the autogenerated stub
    }
    public function ajax_change_order_status()
    {
        $input = Factory::getInput();
        $order_id = $input->getInt('order_id', 0);
        $order_status_id = $input->getInt('order_status_id', 0);
        $modelOrder = Model::getInstance('order');
        $order = $modelOrder->change_order_status($order_id, $order_status_id);
        return $order;
    }

}