Pārlūkot izejas kodu

add flag for Contractor/WOController

ifah
Siti Hajar Ibrahim pirms 5 gadiem
vecāks
revīzija
9c310896e5

+ 1
- 0
app/Http/Controllers/Contractor/WorkOrderController.php Parādīt failu

@@ -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)){


+ 1
- 1
app/Http/Controllers/Form/BusinessController.php Parādīt failu

@@ -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);
}

+ 1
- 1
app/Http/Controllers/Form/ResidentialController.php Parādīt failu

@@ -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);
}

Notiek ielāde…
Atcelt
Saglabāt