@php $sampleData = array( array("val0"=>"Source","val1"=>"Call Tracking Number","val2"=>"Number of Calls","val3"=>"Number of Leads","val4"=>"Number of Bookings from Calls","val5"=>"Converted Lead Percentage","val6"=>"Total Budget Spend","val7"=>"Cost Per Lead","val8"=>"Cost per Bookings","val9"=>"Booking Percent"), array("val0"=>"SEO","val1"=>"CT #1","val2"=>"100","val3"=>"70","val4"=>"35","val5"=>"70","val6"=>"1000","val7"=>"14.28571429","val8"=>"28.57142857","val9"=>"50"), array("val0"=>"Google Ads","val1"=>"CT #2","val2"=>"432","val3"=>"200","val4"=>"75","val5"=>"46.2962963","val6"=>"4378","val7"=>"21.89","val8"=>"58.37333333","val9"=>"37.5"), array("val0"=>"Google Local","val1"=>"CT #3","val2"=>"322","val3"=>"87","val4"=>"55","val5"=>"27.01863354","val6"=>"5478","val7"=>"62.96551724","val8"=>"99.6","val9"=>"63.2183908"), array("val0"=>"Google Maps","val1"=>"CT #4","val2"=>"65","val3"=>"55","val4"=>"11","val5"=>"84.61538462","val6"=>"4000","val7"=>"72.72727273","val8"=>"363.6363636","val9"=>"20"), array("val0"=>"Yelp","val1"=>"CT #5","val2"=>"342","val3"=>"214","val4"=>"68","val5"=>"62.57309942","val6"=>"2000","val7"=>"9.345794393","val8"=>"29.41176471","val9"=>"31.77570093"), array("val0"=>"WhatConverts","val1"=>"CT #6","val2"=>"543","val3"=>"374","val4"=>"102","val5"=>"68.87661142","val6"=>"1500","val7"=>"4.010695187","val8"=>"14.70588235","val9"=>"27.27272727"), array("val0"=>"CallRail","val1"=>"CT #7","val2"=>"432","val3"=>"129","val4"=>"44","val5"=>"29.86111111","val6"=>"1439","val7"=>"11.15503876","val8"=>"32.70454545","val9"=>"34.10852713"), ); $data = []; foreach($sampleData as $index => $item){ if($index == 0){ foreach($item as $key => $value){ $columns[$key] = $value; } }else{ $dataRecord = []; foreach($item as $key => $value){ $dataRecord[$columns[$key]] = $value; } $data[] = $dataRecord; } } @endphp

New Arrivals More than 400+ new members

@foreach($columns as $column) @endforeach @foreach($data as $item) @foreach($item as $val) @if(is_numeric($val)) @else @endif @endforeach @endforeach
{{$column}}
{{number_format($val, 2)}}{{$val}}