@@ -29,10 +29,10 @@ |
||
29 | 29 | public function scopeReminders($query) |
30 | 30 | { |
31 | 31 | return $query->leftJoin('mst_enquiries', 'trn_enquiry_followups.enquiry_id', '=', 'mst_enquiries.id') |
32 | - ->select('trn_enquiry_followups.*', 'mst_enquiries.status') |
|
33 | - ->where('trn_enquiry_followups.due_date', '<=', Carbon::today()) |
|
34 | - ->where('trn_enquiry_followups.status', '=', \constFollowUpStatus::Pending) |
|
35 | - ->where('mst_enquiries.status', '=', \constEnquiryStatus::Lead); |
|
32 | + ->select('trn_enquiry_followups.*', 'mst_enquiries.status') |
|
33 | + ->where('trn_enquiry_followups.due_date', '<=', Carbon::today()) |
|
34 | + ->where('trn_enquiry_followups.status', '=', \constFollowUpStatus::Pending) |
|
35 | + ->where('mst_enquiries.status', '=', \constEnquiryStatus::Lead); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | public function createdBy() |
@@ -20,7 +20,7 @@ |
||
20 | 20 | 'end_date', |
21 | 21 | 'created_by', |
22 | 22 | 'updated_by', |
23 | - ]; |
|
23 | + ]; |
|
24 | 24 | |
25 | 25 | protected $dates = ['created_at', 'updated_at', 'start_date', 'end_date']; |
26 | 26 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | 'item_amount', |
17 | 17 | 'created_by', |
18 | 18 | 'updated_by', |
19 | - ]; |
|
19 | + ]; |
|
20 | 20 | |
21 | 21 | public function createdBy() |
22 | 22 | { |
@@ -11,15 +11,15 @@ |
||
11 | 11 | protected $table = 'trn_expenses'; |
12 | 12 | |
13 | 13 | protected $fillable = [ |
14 | - 'name', |
|
15 | - 'category_id', |
|
16 | - 'amount', |
|
17 | - 'due_date', |
|
18 | - 'repeat', |
|
19 | - 'note', |
|
20 | - 'paid', |
|
21 | - 'created_by', |
|
22 | - 'updated_by', |
|
14 | + 'name', |
|
15 | + 'category_id', |
|
16 | + 'amount', |
|
17 | + 'due_date', |
|
18 | + 'repeat', |
|
19 | + 'note', |
|
20 | + 'paid', |
|
21 | + 'created_by', |
|
22 | + 'updated_by', |
|
23 | 23 | ]; |
24 | 24 | |
25 | 25 | //Eloquence Search mapping |