@php $total_records=$TotalRecordsCnt; $page_num=$Page_num; $start_from = ($Page_num-1)*$limit; $LeadSourceDetDropDown=$GetDropdownLists['68']; $BranchOfficeDropDown=$GetDropdownLists['69']; $StudyDestinationDropDown=$GetDropdownLists['71']; $StudyLevelDropdown=$GetDropdownLists['76']; $LastLevelEducationDropdown=$GetDropdownLists['79']; $IntakeDropdown=$GetDropdownLists['74']; $StudyYearDropdown=$GetDropdownLists['72']; $VendorDropDown=$LeadGetDropdownLists[82]; $LeadDispositionDropDown=$LeadGetDropdownLists[65]; $LeadSubDispositionDropDown=$LeadGetDropdownLists[66]; $LeadSourceDropDown=$LeadGetDropdownLists['ddfb84a7-5564-4335-9a18-f1a782c018cf']; //$a=1; $a=$start_from+1; //echo $start_from; $LeadModuleId="32f08263-96a5-11eb-948a-56b1773fd56f"; $StudentRegistrationModuleId="f8d9d46f-30c8-41dc-a816-727fd9e058d0"; $GetResultQuery=base64_encode($GetResultQuery); @endphp
Total records

@foreach($GetREsult as $EachRecord) @php $EMailId=$EachRecord->EMailId; $BranchOffice=$EachRecord->BranchOffice; $LeadSourceDet=$EachRecord->LeadSourceDet; $StudyDestination=$EachRecord->StudyDestination; $CreatedDate=$EachRecord->CreatedDate; $CreatedBy=$EachRecord->CreatedBy; $LeadId=$EachRecord->LeadId; $LeadFirstName=$EachRecord->LeadFirstName; $LeadLastName=$EachRecord->LeadLastName; $LeadFullName=$LeadFirstName." ".$LeadLastName; $LeadPhoneMobile=$EachRecord->LeadPhoneMobile; $Vendors=$EachRecord->Vendors; $LeadDisposition=$EachRecord->LeadDisposition; $LeadSubDisposition=$EachRecord->LeadSubDisposition; $LeadSource=$EachRecord->LeadSource; $LeadCreatedDate=$EachRecord->LeadCreatedDate; $StudyLevel=$EachRecord->StudyLevel; $LastLevelEducation=$EachRecord->LastLevelEducation; $Intake=$EachRecord->Intake; $StudyYear=$EachRecord->StudyYear; //$AppointmentCreatedDate=$EachRecord->AppointmentCreatedDate; //$MeetingDateandTime=$EachRecord->MeetingDateandTime; $AppointmentCreatedDatenew=''; $EmailValues=''; $MeetingDateandTimeNew=''; $AppointmentDet=array(); if(array_key_exists($LeadId,$AppointmentArray)) { $AppointmentDet=$AppointmentArray[$LeadId]; try { $AppointmentCreatedDatenew=$AppointmentDet->CreatedDate; $MeetingDateandTimeNew=$AppointmentDet->MeetingDateandTime; } catch(\Exception $e) { } } if(array_key_exists($EMailId,$EmailsArray)) { $EmailValues=$EmailsArray[$EMailId][0]; } @endphp @php $a++; @endphp @endforeach
Sl.No Student Registration Leads Appointments
First Name Last Name Phone Mobile Email Id Branch Office Lead Source Det Study Destination Created By Student Registration Created Date Study Level Last Level of Education Intake Study Year Lead Full Name Lead Mobile Number Vendors Lead Disposition Lead Sub Disposition Lead Source Lead Created Date Appointment Created Date Meeting Date and Time
{{$a}} {{$EachRecord->FirstName}} {{$EachRecord->LastName}} {{$EachRecord->MobileNumber}} {{$EmailValues}} @if(array_key_exists($BranchOffice,$BranchOfficeDropDown)) {{$BranchOfficeDropDown[$BranchOffice]}} @else {{$BranchOffice}} @endif @if(array_key_exists($LeadSourceDet,$LeadSourceDetDropDown)) {{$LeadSourceDetDropDown[$LeadSourceDet]}} @else {{$LeadSourceDet}} @endif {{$LeadSourceDet}} @if(array_key_exists($StudyDestination,$StudyDestinationDropDown)) {{$StudyDestinationDropDown[$StudyDestination]}} @else {{$StudyDestination}} @endif @if(array_key_exists($CreatedBy,$getActiveUsersList)) {{$getActiveUsersList[$CreatedBy]['name']}} @else {{$CreatedBy}} @endif {{$CreatedDate}} @if(array_key_exists($StudyLevel,$StudyLevelDropdown)) {{$StudyLevelDropdown[$StudyLevel]}} @else {{$StudyLevel}} @endif @if(array_key_exists($LastLevelEducation,$LastLevelEducationDropdown)) {{$LastLevelEducationDropdown[$LastLevelEducation]}} @else {{$LastLevelEducation}} @endif @if(array_key_exists($Intake,$IntakeDropdown)) {{$IntakeDropdown[$Intake]}} @else {{$Intake}} @endif @if(array_key_exists($StudyYear,$StudyYearDropdown)) {{$StudyYearDropdown[$StudyYear]}} @else {{$StudyYear}} @endif {{$LeadFullName}} {{$LeadPhoneMobile}} @if(array_key_exists($Vendors,$VendorDropDown)) {{$VendorDropDown[$Vendors]}} @else {{$Vendors}} @endif @if(array_key_exists($LeadDisposition,$LeadDispositionDropDown)) {{$LeadDispositionDropDown[$LeadDisposition]}} @else {{$LeadDisposition}} @endif @if(array_key_exists($LeadSubDisposition,$LeadSubDispositionDropDown)) {{$LeadSubDispositionDropDown[$LeadSubDisposition]}} @else {{$LeadSubDisposition}} @endif @if(array_key_exists($LeadSource,$LeadSourceDropDown)) {{$LeadSourceDropDown[$LeadSource]}} @else {{$LeadSource}} @endif {{$LeadCreatedDate}} {{$AppointmentCreatedDatenew}} {{$MeetingDateandTimeNew}}

    @php $total_pages = ceil($total_records/$limit); $start_loop = $page_num; $difference = $total_pages - $page_num; $active_class=''; @endphp @if($total_records > $limit) @if($difference <= 5) @php $start_loop = $total_pages - 5; @endphp @endif @php $end_loop = $start_loop + 4; @endphp @if($page_num > 1) @php $first=$page_num-1; @endphp
  • <<
  • @endif @for($i=$start_loop; $i<=$end_loop; $i++) @if($i>0) @php if($page_num==$i) $active_class='active'; else $active_class=''; @endphp
  • {{$i}}
  • @endif @endfor @if($page_num <= $end_loop) @php $last=$page_num+1; @endphp
  • >>
  • @endif @endif