@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 @if($_SERVER['REMOTE_ADDR']=="122.166.45.159") @endif @php $x=($PageNum-1)*10; @endphp @foreach($results as $result) @php $x++; $FixedDateTime="2023-05-05 14:50:00"; @endphp @if($_SERVER['REMOTE_ADDR']=="122.166.45.159") @endif @endforeach @if($LeadRecordsCount==0) @endif
Slno Branch City First_Name Last_Name Primary_Mobile Email_ID Study_Destination Lead Created Date Call Date Lead Intrested Marked Date Study_Level Last_Level_of_Educat Intake Study_Year Student Registration Date Appointment_Date Appointment Created Date Lead_Source Lead_Source_Detail Agent Name Lead Updated By Lead Disposition Lead Sub Disposition Vendor Lead Call Date
{{$x}} @php try { echo $DropDowns[$result->BranchOffice]; } catch(\Exception $e) { } @endphp {{$result->City}} {{$result->FirstName}} {{$result->LastName}} {{$result->PhoneMobile}} {{$result->EmailId}} @php try { echo $DropDowns[$result->StudyDestination]; } catch(\Exception $e) { } @endphp @php try { if($result->LeadCreatedDate) { echo $LeadCreatedDate=date('Y-m-d',strtotime($result->LeadCreatedDate)); } } catch(\Exception $e){$LeadCreatedDate="";} @endphp @php try { if($result->CreatedDate) { echo $CreatedDate=date('Y-m-d',strtotime($result->CreatedDate)); } } catch(\Exception $e){$StartDate="";} @endphp {{$result->Intresetmodifiedtime}} @php try { echo $DropDowns[$result->StudyLevel]; } catch(\Exception $e) { } @endphp @php try { echo $DropDowns[$result->LastLevelEducation]; } catch(\Exception $e) { } @endphp @php try { echo $DropDowns[$result->Intake]; } catch(\Exception $e) { } @endphp @php try { echo $DropDowns[$result->StudyYear]; } catch(\Exception $e) { } @endphp @php try { if($result->StudCreatedDate) { echo date('d-m-Y h:i:s a',strtotime($result->StudCreatedDate)); } } catch(\Exception $e){$StudCreatedDate="";} @endphp @php try { if($result->MeetingDateandTime) { echo date('d-m-Y h:i:s a',strtotime($result->MeetingDateandTime)); } } catch(\Exception $e){$MeetingDateandTime="";} @endphp @php try { if(date('Y-m-d',strtotime($result->AppointmentCreatedDate)) == '2023-05-15') { if($result->CallRecordId==$result->AppointmentCallRecordId) { echo date('d-m-Y h:i:s a',strtotime($result->AppointmentCreatedDate)); } } else { if($result->AppointmentCreatedDate) { if($result->CallTo==$result->AppointmentCreatedBy) { echo date('d-m-Y h:i:s a',strtotime($result->AppointmentCreatedDate)); } } } } catch(\Exception $e){$AppointmentCreatedDate="";} @endphp @php try { echo $DropDowns[$result->LeadSource]; } catch(\Exception $e) { } @endphp {{$result->LeadSourceDetail}} {{$result->AgentName}} @php try { echo $Agents[$result->LeadUpdatedBy]; } catch(\Exception $e) { } @endphp @php try { echo $DropDowns[$result->LeadDisposition]; } catch(\Exception $e) { } @endphp @php try { echo $DropDowns[$result->LeadSubDisposition]; } catch(\Exception $e) { } @endphp @php try { echo $DropDowns[$result->Vendors]; } catch(\Exception $e) { } @endphp @php try { if($result->CallDateTime) { echo $CallDateTime=date('Y-m-d',strtotime($result->CallDateTime)); } } catch(\Exception $e){$StartDate="";} @endphp
NO Records!
@if($x!=0 && !$ExportToExcel)
@php $totalRecords=$LeadRecordsCount; @endphp
Total Records {{$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