@php use App\Models\Demography; use App\Models\ProgressiveDialler; $studentRegistrationModuleId="f8d9d46f-30c8-41dc-a816-727fd9e058d0"; $AppointmentsModuleId="e62506fb-5247-471b-b575-518a3099b64b"; $CallRecordsModuleId="c7d8d1a7-73c1-8527-2f2d-603ccbe1e9ae"; if($_SERVER['REMOTE_ADDR']=="122.166.45.159") { //echo "
";
		//	print_r($results);
	//echo "
"; //die(); } if($ExportToExcel) { $file_type = "vnd.ms-excel"; $file_name= "LeadReport.xls"; header("Content-Type: application/$file_type"); header("Content-Disposition: attachment; filename=$file_name"); $tableClass=""; $border="border=1"; } else { $tableClass="table table-hover table-striped table-bordered table-no-space"; $border="border=1"; } @endphp @if(!$ExportToExcel)
@endif @php $x=($PageNum-1)*10; @endphp @foreach($results as $result) @php $x++; @endphp @endforeach @if($LeadRecordsCount==0) @endif
Slno Lead Sub Disposition
{{$x}} @php try { echo $DropDowns[$result->LeadSubDisposition]; } catch(\Exception $e) { } @endphp
NO Records!
@if($x!=0 && !$ExportToExcel)
@php $totalRecords=$LeadRecordsCount; @endphp
Export Excel={{$LeadRecordsCount}} @if($totalRecords > 10)
    @php $limit=10; $total_pages = ceil($totalRecords/$limit); $start_loop = $PageNum; $difference = $total_pages - $PageNum; $active_class=''; @endphp @if($totalRecords > $limit) @if($difference <= 5) @php $start_loop = $total_pages - 5; @endphp @endif @php $end_loop = $start_loop + 4; @endphp @if($PageNum > 1) @php $first=$PageNum-1; @endphp
  • <<
  • @endif @for($i=$start_loop; $i<=$end_loop; $i++) @if($i>0) @php if($PageNum==$i) $active_class='active'; else $active_class=''; @endphp
  • {{$i}}
  • @endif @endfor @if($PageNum <= $end_loop) @php $last=$PageNum+1; @endphp
  • >>
  • @endif @endif
@endif
@endif @if(!$ExportToExcel)
@endif