public function rtk_allocation_kenyan_map()
 {
     $colors = array("FFFFCC" => "1", "E2E2C7" => "2", "FFCCFF" => "3", "F7F7F7" => "5", "FFCC99" => "6", "B3D7FF" => "7", "CBCB96" => "8", "FFCCCC" => "9");
     $map = "";
     $counties = Counties::get_county_map_data();
     $table_data = "";
     $allocation_rate = 0;
     $total_facilities_in_county = 1;
     $total_facilities_allocated_in_county = 1;
     foreach ($counties as $county_detail) {
         $countyid = $county_detail->id;
         $county_map_id = $county_detail->kenya_map_id;
         $countyname = trim($county_detail->county);
         $county_detail = rtk_stock_status::get_allocation_rate_county($countyid);
         $total_facilities_in_county = $county_detail['total_facilities_in_county'];
         $total_facilities_allocated_in_county = $county_detail['total_facilities_allocated_in_county'];
         @($allocation_rate = round($total_facilities_allocated_in_county / $total_facilities_in_county * 100, 1));
         //     $map .="<entity  link='".base_url()."rtk_management/allocate_rtk/$countyid' id='$county_map_id' displayValue ='$countyname' color='".array_rand($colors,1)."' toolText='County :$countyname&lt;BR&gt; Total Facilities Reporting:".$total_facilities_in_county."&lt;BR&gt; Facilities Allocated  :".$total_facilities_allocated_in_county."&lt;BR&gt; Facility Allocation Rate :".$allocation_rate." %'/>";
         $map .= "<entity  link='" . base_url() . "rtk_management/allocation_county_detail_zoom/{$countyid}' id='{$county_map_id}' displayValue ='{$countyname}' color='" . array_rand($colors, 1) . "' toolText='County :{$countyname}&lt;BR&gt; Total Facilities Reporting:" . $total_facilities_in_county . "&lt;BR&gt; Facilities Allocated  :" . $total_facilities_allocated_in_county . "&lt;BR&gt; Facility Allocation Rate :" . $allocation_rate . " %'/>";
     }
     echo $this->kenyan_map($map, "RTK County allocation: Click to view facilities in county");
 }