| $company = Company::where('team','CBB')->get(); | $company = Company::where('team','CBB')->get(); | ||||
| $today = Carbon::today(); | $today = Carbon::today(); | ||||
| info($status . $wo); | |||||
| $wo_status = ''; | $wo_status = ''; | ||||
| if($status == "non-prelaid"){ | if($status == "non-prelaid"){ | ||||
| $wo_status = 'Pending Non Prelaid'; | $wo_status = 'Pending Non Prelaid'; | ||||
| }else { | }else { | ||||
| $wo_status = 'Pending Contractor'; | $wo_status = 'Pending Contractor'; | ||||
| } | } | ||||
| info($wo_status . $wo); | |||||
| $subscriber = Subscriber::where('subscriber_id',$subscriber_id)->first(); | $subscriber = Subscriber::where('subscriber_id',$subscriber_id)->first(); | ||||
| if(!empty($subscriber)){ | if(!empty($subscriber)){ | ||||
| $form = Form::with('WorkOrder')->where('_id',$subscriber->_id)->first(); | $form = Form::with('WorkOrder')->where('_id',$subscriber->_id)->first(); | ||||
| $status = 'Pending Non Prelaid'; | $status = 'Pending Non Prelaid'; | ||||
| }else { | }else { | ||||
| $status = 'Pending Contractor'; | $status = 'Pending Contractor'; | ||||
| } | |||||
| } | |||||
| info($request->wo . $status); | |||||
| $form = Form::where('_id',$subscriber->_id)->first(); | $form = Form::where('_id',$subscriber->_id)->first(); | ||||
| $work_order = new WorkOrder; | $work_order = new WorkOrder; |