@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)
| 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 | @if($_SERVER['REMOTE_ADDR']=="122.166.45.159") @endif||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$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 | @if($_SERVER['REMOTE_ADDR']=="122.166.45.159") @endif||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| NO Records! | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||