| @@ -707,6 +707,7 @@ class WorkOrderController extends Controller | |||
| $wod = WorkOrder::where('wo',$request->wo)->first(); | |||
| $form = Form::where('_id',$wod->_id)->first(); | |||
| $installer = Staff::with('StaffDetail')->where('_id',$wod->installer_id)->first(); | |||
| info($installer->_id); | |||
| if(!empty($wod)){ | |||
| @@ -204,7 +204,7 @@ class BusinessController extends Controller | |||
| $destinationPath = 'document/'.$su_id; | |||
| // create folder/dir if not exist | |||
| info(public_path()); | |||
| if(!File::exists(public_path().'/'.$destinationPath)){ | |||
| File::makeDirectory(public_path().'/'.$destinationPath,0777,true); | |||
| } | |||
| @@ -208,7 +208,7 @@ class ResidentialController extends Controller | |||
| $destinationPath = 'document/'.$su_id; | |||
| // create folder/dir if not exist | |||
| info(public_path()); | |||
| if(!File::exists(public_path().'/'.$destinationPath)){ | |||
| File::makeDirectory(public_path().'/'.$destinationPath,0777,true); | |||
| } | |||