Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function scopeReminders($query) |
||
31 | { |
||
32 | return $query->leftJoin('mst_enquiries','trn_enquiry_followups.enquiry_id','=','mst_enquiries.id') |
||
33 | ->select('trn_enquiry_followups.*','mst_enquiries.status') |
||
34 | ->where('trn_enquiry_followups.due_date','<=',Carbon::today()) |
||
35 | ->where('trn_enquiry_followups.status','=',\constFollowUpStatus::Pending) |
||
36 | ->where('mst_enquiries.status','=',\constEnquiryStatus::Lead); |
||
37 | } |
||
48 | } |