<?php

$path = '../../../';
require_once $path . 'core/includes/header.inc.php';
$page_meta['title'] = 'View Prescription';

if(!isset($_REQUEST['order'])) {
    throw new Exception('No order ID provided');
} else {
    $order = Order::getById((int)$_REQUEST['order']);
    $item = new Item();
    $item->Get_Item($_REQUEST['item_id']);
}

//echo Order::batchPrescriptions([$_REQUEST['order'] => $_REQUEST['order']], $basket_countries, $twig);
echo Order::getPrescriptionHTML($order, $item, $basket_countries, $twig);
