<?php

use Mtc\Shop\Order;

$path = '../../';
require_once $path . 'core/includes/header.inc.php';
$page_meta['title'] = 'View NHS Prescriptions | ' . config('app.name');

if ($member->id == 0) {
    header('Location: ' . route('members-login'));
    exit();
}


//Build order lists
require_once $path . 'shop/includes/order_lists.php';

unset($order_tabs['All']);
unset($order_tabs['Online clinic']);
unset($order_tabs['Shop']);


$flash_message = \App\FlashMessage::get();

$twig->display('/members/nhs_prescriptions/index.twig', [
    'page_data' => $page_data,
    'member_id'=> $member->id,
    'own_nhs_prescriptions' => $own_nhs_prescriptions,
    'member' => $member,
    'flash_message' => $flash_message,
    'orders'   => $orders,
    'order_tabs' => $order_tabs,
    'active_tab' => $active_tab
]);

