| @@ -92,14 +92,13 @@ class WorkOrderController extends Controller | |||
| $company = Company::where('team','CBB')->get(); | |||
| $today = Carbon::today(); | |||
| info($status . $wo); | |||
| $wo_status = ''; | |||
| if($status == "non-prelaid"){ | |||
| $wo_status = 'Pending Non Prelaid'; | |||
| }else { | |||
| $wo_status = 'Pending Contractor'; | |||
| } | |||
| info($wo_status . $wo); | |||
| $subscriber = Subscriber::where('subscriber_id',$subscriber_id)->first(); | |||
| if(!empty($subscriber)){ | |||
| $form = Form::with('WorkOrder')->where('_id',$subscriber->_id)->first(); | |||
| @@ -1217,7 +1216,9 @@ class WorkOrderController extends Controller | |||
| $status = 'Pending Non Prelaid'; | |||
| }else { | |||
| $status = 'Pending Contractor'; | |||
| } | |||
| } | |||
| info($request->wo . $status); | |||
| $form = Form::where('_id',$subscriber->_id)->first(); | |||
| $work_order = new WorkOrder; | |||