%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<div class="page-bar"> <ul class="page-breadcrumb uc"> <li><h2>Manage Leads</h2></li> </ul> <div class="page-toolbar"> <a href="" class="btn blue btn-outline" ng-click="CR.open_form()" ng-disabled="!modules['lead_add']"><i class="fa fa-plus"></i> Add New</a> </div> </div> <!-- --> <!-- Search Form --> <form id="sform" class="form-lbl-grey ng-vis-hid" ng-submit="CR.lists()"> <div class="row mingap el-hide"> <div class="col-md-6"> <input type="text" name="fromDate" id="fromDate" class="form-control cal hasCal" placeholder="From Date" /> </div> <div class="col-md-6"> <input type="text" name="toDate" id="toDate" class="form-control cal hasCal" placeholder="To Date" /> </div> </div> <div class="mb10"> <table> <tbody> <tr> <td style="padding-right: 5px"> <input type="search" name="k" ng-model="CR.sdata.k" class="form-control w250" placeholder="Name, Email-ID, Mob, System-ID" /> </td> <td style="padding-right: 5px" ng-show="!CR.lead_restrict"> <select class="form-control" name="date_for" ng-model="CR.sdata.date_for"> <option value="1">Search Date In: LEAD CREATED</option> <option value="2">Search Date In: APPOINTMENT DATE</option> </select> </td> <td style="padding-right: 5px" ng-show="!CR.lead_restrict"> <div class="btn-group" style="display: block"> <div class="btn btn-default btn-block" id="lead_date_range"> <i class="icon-calendar"></i> <span></span> <i class="fa fa-angle-down"></i> </div> </div> </td> <td style="padding-right: 5px" ng-show="!CR.lead_restrict"> <select class="form-control" name="created_by" ng-model="CR.sdata.created_by"> <option value="">Created By (ALL)</option> <option value="{{r.id}}" ng-repeat="r in CR.users">{{r.name+(r.id==CR.USER_ID?' (You)':'')}}</option> </select> </td> <td> <button type="submit" class="btn btn-info btn-block">Search</button> </td> </tr> </tbody> </table> </div> <div class="panel-group accordion" id="adv_filter_acco" ng-show="!CR.lead_restrict"> <div class="panel panel-secondary"> <div class="panel-heading"> <h4 class="panel-title"> <a class="accordion-toggle accordion-toggle-styled collapsed" data-toggle="collapse" data-parent="#adv_filter_acco" href="#adv_filter_collapse1" aria-expanded="false" onclick="event.preventDefault()"> Advance Filter </a> </h4> </div> <div id="adv_filter_collapse1" class="panel-collapse collapse" aria-expanded="false" style="height: 0px;"> <div class="panel-body"> <div class="row"> <div class="col-md-4"> <div class="bold mb5">Campaign Filters</div> <div class="form-group"> <label>Source Group</label> <select class="form-control" name="utm_group" ng-model="CR.sdata.utm_group" ng-change="CR.set_empty_sdd_utm_source_id()"> <option value="">Select</option> <option value="{{r.grp}}" ng-repeat="r in CR.s_utm_groups">{{r.grp}}</option> </select> </div> <div class="form-group"> <label>Individual Sources</label> <select class="form-control" id="sdd_utm_source_id" name="utm_source_id[]" ng-disabled="CR.sdata.utm_group" onchange="get_sdd_comp_med()" multiple style="width:100%"> <option value="{{r.id}}" ng-repeat="r in CR.s_utm_sources">{{r.title}}</option> </select> </div> <div class="form-group"> <label>Campaign Name</label> <select class="form-control" id="sdd_utm_campaign" name="utm_campaign[]" multiple style="width:100%"> <option value="{{v}}" ng-repeat="v in CR.s_utm_campaigns">{{v}}</option> </select> </div> <div class="form-group"> <label>Campaign Medium</label> <select class="form-control" id="sdd_utm_medium" name="utm_medium[]" multiple style="width:100%"> <option value="{{v}}" ng-repeat="v in CR.s_utm_mediums">{{v}}</option> </select> </div> </div> <div class="col-md-4"> <div class="bold mb5">Lead Filters</div> <div class="form-group"> <label>Center of Excellence</label> <select class="form-control" id="sdd_program_id" name="program_id[]" onchange="get_sdd_plans()" multiple style="width:100%"> <option value="{{r.id}}" ng-repeat="r in CR.programs">{{r.title}}</option> </select> </div> <div class="form-group"> <label>Landing Pages</label> <select class="form-control" id="sdd_lpage_id" name="lpage_id[]" multiple style="width:100%"> <option value="{{r.id}}" ng-repeat="r in CR.lpages">{{r.title}}</option> </select> </div> <div class="form-group"> <label>Verified By</label> <select class="form-control" name="verified_by"> <option value="">Select</option> <option>MOB</option> <option>EMAIL</option> <option>OFFLINE</option> </select> </div> <!-- <div class="form-group"> <label>Disposition</label> <select class="form-control" id="sdd_remarks" name="remarks_id[]" multiple style="width:100%"> <option value="{{r.id}}" ng-repeat="r in CR.remarks">{{r.title}}</option> </select> </div> --> </div> <div class="col-md-4"> <div class="bold mb5">Geo Location Filters</div> <div class="form-group"> <label>States</label> <select class="form-control" id="sdd_state_id" name="state_id[]" onchange="get_sdd_cities()" multiple style="width:100%"> <option value="{{r.id}}" ng-repeat="r in CR.s_states">{{r.title}}</option> </select> </div> <div class=""> <label>Cities</label> <select class="form-control" id="sdd_city_id" name="city_id[]" multiple style="width:100%"> <option value="{{r.id}}" ng-repeat="r in CR.s_cities">{{r.title}}</option> </select> </div> </div> </div> </div> <div class="panel-footer"> <button type="button" class="btn btn-sm btn-success" ng-click="CR.lists()">Apply Filter</button> </div> </div> </div> </div> </form> <!-- / --> <div class="ng-vis-hid"> <div ng-if="CR.result.length"> <div class="text-secondary bold mb10"> <div class="pull-left pdT5"> Showing {{CR.page.start+1}} - {{CR.page.start+CR.page.total}} of {{CR.page.total_records}} records. </div> <a href="" class="btn btn-xs purple pull-right" ng-click="CR.exportLists()" ng-if="modules['lead_download']"><i class="fa fa-file-excel-o"></i> Export</a> <div class="clearfix"></div> </div> <div class="table-responsive"> <table class="table tablesm table-striped table-bordered table-advance table-hover"> <thead class="vmid uc"> <tr> <th class="w20">SN</th> <th>Patient</th> <th class="w200">State/City</th> <th class="w200 nowrap">Center of Excellence</th> <th class="w100 nowrap"> Appointment Date <div class="sort-icons"> <i class="fa fa fa-caret-up" ng-click="CR.set_lists_order('aptdate_asc')"></i> <i class="fa fa fa-caret-down" ng-click="CR.set_lists_order('aptdate_desc')"></i> </div> </th> <th class="w100"> Created On <div class="sort-icons"> <i class="fa fa fa-caret-up" ng-click="CR.set_lists_order('created_asc')"></i> <i class="fa fa fa-caret-down" ng-click="CR.set_lists_order('created_desc')"></i> </div> </th> <th class="w85"></th> </tr> </thead> <tbody class="vtop"> <tr ng-repeat="(i,r) in CR.result"> <td>{{i+CR.page.start+1}}.</td> <td> <div class="mb5"> <div class="pdB5 uc" ng-if="r.name!='<NO>'">{{r.name}}</div> <div class="note-text pdB3" ng-if="r.email!='<NO>'">{{r.email}}</div> <div class="note-text" ng-if="r.mob!='<NO>'"><i class="fa fa-mobile"></i> {{r.mob}}</div> <div class="font-green-meadow bold pdB3" ng-if="r.application_no!='<NO>'"><span class="inblock w60">Patient ID</span>: {{r.application_no}}</div> </div> <div class="mb5"> <div class="note-text pdB5" ng-if="r.verified_by!='<NO>'"><span class="inblock w60">Verified By</span>: <strong>{{r.verified_by}}</strong></div> <div class="note-text pdB3" ng-if="r.utm_source!='<NO>'"><span class="inblock w60">Source</span>: <strong>{{r.utm_source?r.utm_source:'N/A'}}</strong></div> <div class="note-text pdB3" ng-if="r.lpage!='<NO>'"><span class="inblock w60">Page</span>: <strong>{{r.lpage?r.lpage:'N/A'}}</strong></div> </div> <div> <button type="button" class="btn btn-xs btn-primary" ng-click="CR.detail(r.id)">View Details</button> <button type="button" class="btn btn-xs dark" ng-click="CR.open_follow_up(r)" ng-if="modules['add_lead_remarks']"> <i class="fa fa-check text-success" ng-if="r.followup_by!=0"></i> Follow-up </button> </div> </td> <td> <div class="pdB5" ng-if="r.state!='<NO>'"> <div class="note-text">State:</div> {{r.state}} </div> <div class="pdB5" ng-if="r.city!='<NO>'"> <div class="note-text">City:</div> {{r.city?r.city:'N/A'}} </div> <!-- <div ng-if="r.pincode!='<NO>'"> <div class="note-text">Pincode:</div> {{r.pincode?r.pincode:'N/A'}} </div> --> </td> <td> <div ng-if="r.program!='<NO>'">{{r.program}}</div> </td> <td class="nowrap">{{r.appointment_datetime}}</td> <td class="nowrap"> <div ng-if="r.leadCreated!='<NO>'">{{r.leadCreated}}</div> <div class="pdT5 note-text"> <div>Added By:</div> <div class="bold">{{r.usr}}</div> </div> </td> <td class="text-center"> <div class="btn-group btn-group-solid"> <button type="button" class="btn btn-xs default" ng-click="CR.edit(r.id)" ng-disabled="!modules['lead_edit']"><i class="fa fa-edit"></i></button> <button type="button" class="btn btn-xs red" ng-click="CR.delete(r.id)" ng-disabled="!modules['lead_delete']"><i class="fa fa-trash-o"></i></button> </div> </td> </tr> </tbody> </table> </div> <div class="bold" ng-show="CR.page.total_pages>1"> <div dir-paging fn="CR.lists" pageob="CR.page"></div> </div> </div> <div class="text-center text-default pd20" ng-if="!CR.result.length">No record found.</div> </div> <!-- Form Modal --> <div class="modal bs-modal-lg in modal-scroll" id="leadFormModal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button> <h4 class="modal-title" ng-if="CR.data.id">Update Lead - Patient ID: <span class="bold">{{CR.data.application_no}}</span></h4> <h4 class="modal-title" ng-if="!CR.data.id">Add New Lead</h4> </div> <div class="modal-body fi-300 err-abs"> <form id="leadForm" autocomplete="off" spellcheck="false"> <input type="hidden" name="id" value="{{CR.data.id}}" /> <table class="form-tbl"> <tr> <td class="req">Patient Name</td> <td><input type="text" class="form-control" name="name" ng-model="CR.data.name" maxlength="100"></td> </tr> <tr> <td class="req">Email ID</td> <td><input type="text" class="form-control" name="email" ng-model="CR.data.email" maxlength="100"></td> </tr> <tr> <td class="req">Mobile No.</td> <td><input type="text" class="form-control" name="mob" ng-model="CR.data.mob" maxlength="10"></td> </tr> <tr> <td class="req">State</td> <td> <select class="form-control" name="state_id" ng-model="CR.data.state_id" ng-change="CR.getCities(CR.data.state_id)"> <option value="">Select</option> <option value="{{r.id}}" ng-repeat="r in CR.states">{{r.title}}</option> </select> </td> </tr> <tr> <td class="req">City</td> <td> <select class="form-control" id="citydd" name="city_id" ng-model="CR.data.city_id" ng-change="CR.cityChangeEvent(CR.data.city_id)"> <option value="">Select</option> <option value="{{r.id}}" ng-repeat="r in CR.cities" pincode="{{r.pincode}}">{{r.title}}</option> <option value="-1">Other</option> </select> <div class="pdT3" ng-if="CR.data.city_id=='-1'"> <input type="text" class="form-control" name="city" ng-model="CR.data.city" maxlength="100" placeholder="Other city name"> </div> </td> </tr> <!-- <tr> <td>Address</td> <td><input type="text" class="form-control" name="address" ng-model="CR.data.address"></td> </tr> <tr> <td>Pincode</td> <td><input type="text" class="form-control" name="pincode" ng-model="CR.data.pincode" maxlength="6"></td> </tr> --> <tr> <td class="req">Center of Excellence</td> <td> <select class="form-control" name="program_id" ng-model="CR.data.program_id"> <option value="">Select</option> <option value="{{r.id}}" ng-repeat="r in CR.programs">{{r.title}}</option> </select> </td> </tr> <tr> <td class="req">Appointment DateTime</td> <td> <div class="form-inline"> <input type="text" class="form-control cal hasCal w150" name="appointment_date" ng-model="CR.data.appointment_date" placeholder="Date" readonly> <select class="form-control" name="appointment_time" ng-model="CR.data.appointment_time" style="width:146px"> <option value="">Time</option> <option ng-repeat="t in CR.appointment_times">{{t}}</option> </select> </div> </td> </tr> <!-- <tr> <td class="req">Landing Page</td> <td> <select class="form-control" name="lpage_id" ng-model="CR.data.lpage_id"> <option value="">Select</option> <option value="{{r.id}}" ng-repeat="r in CR.lpages">{{r.title}}</option> </select> </td> </tr> --> </table> </form> </div> <div class="modal-footer"> <button type="button" class="btn dark btn-outline" data-dismiss="modal">Close</button> <button type="button" class="btn green" ng-click="CR.save()">Save</button> </div> </div> </div> </div> <!-- Detail Modal --> <div ng-include="'views/tpl/lead_dtl.html?'+VERSION"></div> <!-- Follow Modal --> <div class="modal bs-modal-lg in modal-scroll" id="followupModal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button> <h4 class="modal-title">Follow-ups</h4> </div> <div class="modal-body"> <div class="form-group"> <div class="pull-right">Patient ID: <strong>{{CR.rlead.application_no}}</strong></div> Name: <strong>{{CR.rlead.name}}</strong> </div> <div ng-if="CR.followups.length"> <div class="table-responsive"> <table class="table tablesm table-striped table-bordered table-advance table-hover nomrgn"> <thead> <tr class="uc"> <th class="w20">SN</th> <th>Remarks/Feedback</th> <th class="w200">Given By</th> <th class="w85"></th> </tr> </thead> <tbody> <tr ng-repeat="(i,r) in CR.followups"> <td>{{i+1}}.</td> <td> <div class="bold">{{r.remarks}}</div> <div class="mb5">[{{r.subremarks}}]</div> <div>{{r.feedback}}</div> </td> <td> {{r.usr}} <div class="pdT5"> [@{{r.created}}] </div> </td> <td class="text-center"> <div class="btn-group btn-group-solid"> <a href="" class="btn btn-xs default" ng-click="CR.follow_up_detail(r.id)"><i class="fa fa-edit"></i></a> <a href="" class="btn btn-xs red" ng-click="CR.delete_follow_up(r.id)" ><i class="fa fa-trash"></i></a> </div> </td> </tr> </tbody> </table> </div> </div> <div ng-if="!CR.followups.length">No remarks/feedback found</div> </div> <div class="modal-footer"> <button type="button" class="btn dark btn-outline" data-dismiss="modal">Close</button> <button type="button" class="btn green" ng-click="CR.open_remarks_form()"><i class="fa fa-plus"></i> Add New Remarks/Feedback</button> </div> </div> </div> </div> <!-- Remarks Modal --> <div class="modal bs-modal-md in modal-scroll" id="remarksModal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static"> <div class="modal-dialog modal-md"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button> <h4 class="modal-title">{{CR.rData.id?'Update':'Give'}} remarks/feedback</h4> </div> <div class="modal-body"> <form id="fdbackfrm" autocomplete="off" spellcheck="false"> <input type="hidden" name="id" value="{{ CR.rData.id }}" /> <input type="hidden" name="applicant_id" value="{{ CR.rData.applicant_id }}" /> <div class="form-group"> <div class="pull-right">Patient ID: <strong>{{CR.rlead.application_no}}</strong></div> Name: <strong>{{CR.rlead.name}}</strong> </div> <div class="form-group"> <label class="req">Disposition Category</label> <select class="form-control" ng-model="CR.rData.cat_id" ng-change="CR.rData.remarks_id=''; CR.rData.subremarks=''; CR.subremarks=[]"> <option value="">Select</option> <option value="{{r.id}}" ng-repeat="r in CR.remarks_cats">{{r.title}}</option> </select> </div> <div class="form-group"> <label class="req">Disposition</label> <select class="form-control" name="remarks_id" ng-model="CR.rData.remarks_id" ng-change="CR.getSubremarks(CR.rData.remarks_id)"> <option value="">Select</option> <option value="{{r.id}}" ng-repeat="r in CR.remarks" ng-if="r.cat_id==CR.rData.cat_id">{{r.title}}</option> </select> </div> <div class="form-group"> <label class="req">Remarks</label> <select class="form-control" name="subremarks" ng-model="CR.rData.subremarks"> <option value="">Select</option> <option value="{{r.title}}" ng-repeat="r in CR.subremarks track by $index">{{r.title}}</option> </select> </div> <div> <label class="req">Comment</label> <textarea class="form-control" rows="6" name="feedback" ng-model="CR.rData.feedback"></textarea> </div> </form> </div> <div class="modal-footer"> <button type="button" class="btn dark btn-outline" data-dismiss="modal">Close</button> <button type="button" class="btn green" ng-click="CR.addRemark()">Save</button> </div> </div> </div> </div>