@php if($showPage == 'purchase-options') { $pu_status=$getReports['reportData']->rep_upcoming_published_status; $businessUserPrice =$reportPrices['OriginalBusinessUser']; $businessUserDiscountedPrice =$reportPrices['DiscountedBusinessUser']; $businessUserDiscountPercent =$reportPrices['DiscountBusinessUser']; $businessPerUserPrice =$reportPrices['BusinessPerUserPrice']; $businessUserPerPrice =$reportPrices['DiscountBusinessUser']; $singleUserPrice =$reportPrices['OriginalSingleUser']; $singleUserDiscountedPrice =$reportPrices['DiscountedSingleUser']; $singleUserDiscountPercent =$reportPrices['DiscountSingleUser']; $datapackPrice =$reportPrices['OriginalDatapack']; $datapackDiscountedPrice =$reportPrices['DiscountedDatapack']; $datapackDiscountPercent =$reportPrices['DiscountDatapack']; $fiveUserPrice =$reportPrices['OriginalFiveUser']; $fiveUserDiscountedPrice =$reportPrices['DiscountedFiveUser']; $fiveUserDiscountPercent =$reportPrices['DiscountFiveUser']; $onlineOnlyPrice =$reportPrices['OriginalOnlineOnly']; $onlineOnlyDiscountedPrice =$reportPrices['DiscountedOnlineOnly']; $onlineOnlyDiscountPercent =$reportPrices['DiscountOnlineOnly']; $enterpricePrice =$reportPrices['OriginalEnterprice']; $enterpriceDiscountedPrice =$reportPrices['DiscountedEnterprice']; $enterpriceDiscountPercent =$reportPrices['DiscountEnterprice']; foreach($packageDetailAvenue as $package): $package->perMonthPrice = round(((int)$package->original_price_per_year/(int)$package->user_min_limit)/12); $package->perMonthDiscountedPrice = round(((int)$package->price_per_year/(int)$package->user_min_limit)/12); endforeach; $starter = $packageDetailAvenue[0]; $business = $packageDetailAvenue[1]; $enterprice = $packageDetailAvenue[2]; } $PDFAvailableClass = 'blue-dot'; $sampleAvailableClass = 'red-dot'; $isChildManuallyPublished = ''; $reportAgeFinal = $getReports['reportData']->reportAge; $categoryURL = $getReports['reportData']->catUrl; $subCategoryURL = $getReports['reportData']->subCatUrl; $categoryPreFix = $getReports['reportData']->cat_prefix; $subcategoryName = $getReports['reportData']->subcatName; $rep_title = $getReports['reportData']->rep_title; $reportID = $getReports['reportData']->rep_id; $rep_upcoming_published_status = $getReports['reportData']->rep_upcoming_published_status; $new_report_code = $getReports['reportData']->new_report_code; $availableFormats = $getReports['reportData']->availableFormats; $reportURL = $getReports['reportData']->rep_url; $reportURLOrg = $getReports['reportData']->rep_url; $updateOnDemandString = ''; if ($rep_upcoming_published_status == 'P' && $reportAgeFinal > 12) { $Customization_Request = "Update on Demand"; $tempURL = url('/on-demand-updates/' . $new_report_code); $updateOnDemandString = "Update Available On-Demand"; } if($childmanualpublish == 'Yes') { $isChildManuallyPublished = 'orange-dot'; } if (@$sampleAvailable == 'Yes') { $sampleAvailableClass = 'green-dot'; } if (@$PDFAvailable == '1') { $PDFAvailableClass = 'purple-dot'; } if(($rep_upcoming_published_status != 'P')) { $rep_title=str_replace($replaceYearsForUpcoming,$replaceYearsForUpcomingWith,$rep_title); } else { $rep_title=str_replace($replaceYearsForPublished,$replaceYearsForPublishedWith,$rep_title); } $finalReportTitle = preg_replace('/\s+/', ' ', str_replace("–","-",str_replace(",",", ",$rep_title))); $finalReportTitle = preg_replace('/\s+/', ' ', str_replace("–","-",str_replace(",",", ",$rep_title))); $shortReportName = get_shortTitle($finalReportTitle); $finalReportTitle = addslashes($finalReportTitle); $whichImage = "assets/images/report_detail.webp"; $h5Color = '#fff'; $h6Color = '#232a32'; if (@$getReports['reportData']->isUploadedByOrigius == 'Yes') { $whichImage = "assets/images/rdive-report.webp"; $h5Color = '#000'; $h6Color = '#288ec2'; } $replaceWhat = array( '
',
'style="font-family:\'Bookman Old Style\', serif"',
'style="font-family:\'Bookman Old Style\', serif"',
'
',
'',
'
',
''
);
$replaceWith = array("', '', '', '', '', '', '');
function str_replace_first1($from, $to, $content) {
$from = '/' . preg_quote($from, '/') . '/';
return preg_replace($from, $to, $content, 1);
}
$videoString = '';
$isMobile = preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", @$_SERVER["HTTP_USER_AGENT"]) ? 'Yes' : 'No';
if($availableFormats == '' || $availableFormats == null){
$availableFormats = '3';
}
$appendCodeOrId = $reportID;
if($reportID > 6300) {
$appendCodeOrId = $new_report_code;
$reportURL = $reportURL."-".$new_report_code;
}
if($rep_upcoming_published_status == 'P') {
$requestSampleLink = "request-sample/".$appendCodeOrId;
}
else {
$requestSampleLink = "request-toc-and-sample/".$appendCodeOrId;
}
$nameonImage = "";
$nameForKeyPlayers = "";
$str = explode("market ", strtolower($rep_title));
if (count($str) > 1) {
$nameonImage = ucwords($str[0]) . " Market";
$nameForKeyPlayers = ucwords($str[0]);
} else {
$str = explode("market,", strtolower($rep_title));
if (count($str) > 1) {
$nameonImage = ucwords($str[0]) . " Market";
$nameForKeyPlayers = ucwords($str[0]);
} else {
$str = explode("market:", strtolower($rep_title));
if (count($str) > 1) {
$nameonImage = ucwords($str[0]) . " Market";
$nameForKeyPlayers = ucwords($str[0]);
} else {
$nameonImage = get_shortTitle($rep_title);
$nameForKeyPlayers = get_shortTitle($rep_title);
}
}
}
$newAuthorString = '';
if(trim($getReports['reportData']->rep_authors)!= '')
{
$explodeAuth = explode(',',trim($getReports['reportData']->rep_authors));
if(count($explodeAuth)>0)
{
foreach ($explodeAuth as $key => $explodeAuthList)
{
/*
$explodename = explode(' ',trim($explodeAuthList));
if(count($explodename)==3)
{
$newAuthorString = $newAuthorString. "".@$explodename[0]." ".strtoupper(substr(@$explodename[2], 0, 1)).'|';
}
else
{
$newAuthorString = $newAuthorString. "".@$explodename[0]." ".strtoupper(substr(@$explodename[1], 0, 1)).'|';
}
*/
$newAuthorString .= $explodeAuthList;
if ($key < count($explodeAuth) - 1) {
$newAuthorString .= '|';
}
}
}
}
$newManagerString = '';
$explodeManagerName = explode(' ',trim($getReports['reportData']->repManagerName));
$newManagerString = trim($getReports['reportData']->repManagerName);
if($showPage == 'report-details'){
$repthis = array('
', '
', '
', '
', '
', '
', '');
$repwith = array('', '', '', '
', '', '', '');
$getReports['reportData']->rep_contents = str_replace('font-family:"Bookman Old Style",serif', "", $getReports['reportData']->rep_contents);
$getReports['reportData']->rep_contents = html_entity_decode($getReports['reportData']->rep_contents);
$getReports['reportData']->rep_contents = preg_replace('/]*>(.*?)<\/span>/', '$1', $getReports['reportData']->rep_contents);
$cntnt = str_replace($repthis, $repwith, $getReports['reportData']->rep_contents);
$html = get_purecontent($cntnt);
$html = preg_replace('/style=("|\').*?("|\')/', '', $html);
$html = str_replace("Get more information on this report : Request Sample Pages ", "", $html);
$samplePressLink = 'https://www.alliedmarketresearch.com/press-release/' . $getReports['reportData']->rep_url . '.html';
$sampleLink = '';
$html = str_replace("javascript:void(0)", $requestSampleLink, $html);
$html = str_replace('href="PRESS"', 'href="' . $samplePressLink . '"', $html);
if ($isMobile == 'Yes')
{
//$html = preg_replace("/
]+\>/i", "", $html);
}
$patternForExternalHrefs = '/]*?\s+)?href="([^"]*)"(.*?)>(.*?)<\/a>/i';
$filteredParagraph = preg_replace_callback($patternForExternalHrefs, function($matches) {
$href = $matches[1]; // URL in href
$text = $matches[3]; // Inner text of the link
// Check if the URL contains "example.com"
if (strpos($href, 'alliedmarketresearch.com') !== false) {
// Keep the anchor tag as it is
return $matches[0];
} else {
// Remove the anchor tag, but keep the inner text
return $text;
}
}, $html);
$html = preg_replace(array('""', '""','<>'), array('', '', ''), $filteredParagraph);
// $html = preg_replace(array('""', '""', '""', '""','<>'), array('', '', '', '',''), $html);
// $html = preg_replace(array('""', '""'), array('', ''), $html);
$html = str_replace("Request Sample Pages", "", $html);
$html = str_replace("Get more information on this report :", "", $html);
$html = str_replace("Get more information on this report:", "", $html);
$html = preg_replace(array('""'), array(''), $html);
$html = str_replace('https://www.alliedmarketresearch.com/images/', 'https://www.alliedmarketresearch.com/public/images/', $html);
$string = '';
if (trim($getReports['reportData']->impactStatement) != '' && $getReports['reportData']->impactStatement != null)
{
$string = "" . $getReports['reportData']->impactStatement . '
';
}
if ($string != '') {
//$string
$html = str_replace("[COVIDIMPACTSTATEMENT]","", $html);
}
$finalReportContent = $html;
if (count(@$allInfoGraphs) > 0)
{
$identifiers = array();
foreach ($allInfoGraphs as $infoGraphsIndetify)
{
$idnetifier_name = trim($infoGraphsIndetify['identifier']);
$chrtType = trim($infoGraphsIndetify['graphName']);
if ($idnetifier_name != '' && $isMobile != 'Yes')
{
$replaceBYThis = array('By', 'by');
$replaceBYWith = array('', '');
$segmentName = str_replace($replaceBYThis, $replaceBYWith, strtolower($infoGraphsIndetify['segmentName']));
$infoGraphsIndetify['segmentName'] = ucwords($segmentName);
$idname = strtolower(str_replace(array('[', ']'), '', $idnetifier_name)) . 'id';
$str = '
' . get_shortTitle1($rep_title) . '
By ' . $infoGraphsIndetify['segmentName'] . '
';
if ($chrtType != 'map')
{
$str .= '';
}
else if ($chrtType == 'map')
{
$str .= '';
}
$str .= '
';
$heilightText = '';
$tempstr = '';
$textBelowGraph = $infoGraphsIndetify['textBelowGraph'];
/*
$allendYears = array();
foreach ($infoGraphsIndetify['allSegments'] as $segdetails)
{
$allendYears[] = $segdetails->endYearValue;
}
$max = max($allendYears);
*/
$allendYears = [];
foreach ($infoGraphsIndetify['allSegments'] ?? [] as $segdetails) {
if (!empty($segdetails->endYearValue)) {
$allendYears[] = $segdetails->endYearValue;
}
}
$maxYear = !empty($allendYears) ? max($allendYears) : null;
if ($chrtType == 'map')
{
$geoColors = ["#c8e6c9", "#dcedc8", "#f0f4c3", "#a5d6a7", "#c5e1a5", "#e6ee9c", "#b9f6ca", "#ccff90", "#f4ff81", "#fff9c4", "#ffecb3", "#e1f5fe", "#a7ffeb", "#fff3e0", "#b4848
Tissue Diagnostics Market Size, Share and Growth By 2032