←':''; //Check if allowed if (isAllowed($page,$_SESSION['authorization']['permissions'],$_SESSION['authorization']['permission'],'R') === 0){ header('location: index.php'); exit; } //GET Details from URL $GET_VALUES = urlGETdetails($_GET) ?? ''; //CALL TO API FOR History $api_url = '/v2/history/'.$GET_VALUES; $history = ioServer($api_url,''); //Decode Payload if (!empty($history)){$history = json_decode($history);}else{$history = null;} template_header('Servicereport', 'servicereport','view'); $view = '

'.$servicereport_h2.'

'.$servicereport_p.'

'.$back_btn_orgin.'
'; //Get all related service events if (empty($history)){ $service_events = ' '.$servicereport_no_history.' '; } else { $service_events = serviceReport($history[0], 'display', $_SESSION['country_code']); } $view .= '
'.$servicereport_details.' - '.$_GET['historyID'].'
'.$service_events.'
'; $view .= ' '; $view .= ''; //OUTPUT echo $view; template_footer(); ?>