'.$dashboard_h2.'

'.$dashboard_p.'

'; $view .= '

'.$data_assets_h3.'

'.$query_total_equipment.'

'.$data_warranty_h3.'

'.$query_total_warranty.'

'.$data_service_h3.'

'.$query_total_servicable.'

'.$data_software_h3.'

'.$query_total_software.'

'; $warranty = serviceforecast(json_decode(json_encode($warrantyforecast), true), 'warranty') ?? ''; $forecast = serviceforecast(json_decode(json_encode($serviceforecast), true), 'service') ?? ''; $view .= '
'.$data_warranty_text_forecast.'
'.$warranty.'
'.$data_service_text_forecast.'
'.$forecast.'
'; //SHOW LOCATION BASED ON GEOLOCATION if (!empty($geolocation)){ $add_pos = ''; foreach ($geolocation as $gloc){ //$glocation = json_decode($gl,true) ?? ''; if (!empty($gloc->geolocation) || $gloc->geolocation != '' || $gloc->geolocation != null ){ $glocation = json_decode($gloc->geolocation) ?? ''; if ($glocation[0] != null){ $add_pos .= 'L.marker(['.$glocation[0].', '.$glocation[1].'],{icon: TSSemp}).addTo(map);'; } } } $view .= '
'; } $view .= '
'.$dashboard_news.'
'; //OUTPUT echo $view; template_footer();