|
|
|
@@ -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)){ |
|
|
|
if(!File::exists(public_path().'/'.$destinationPath)){ |
|
|
|
File::makeDirectory(public_path().'/'.$destinationPath,0777,true); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -322,7 +322,8 @@ class ResidentialController extends Controller |
|
|
|
public function viewFormAddressD($package,$dealer_id) { |
|
|
|
|
|
|
|
$coverage = Coverage::where('Type','R')->orderBy('building_name')->get(); |
|
|
|
return view('sales.form.dealer.residential_address', compact('coverage','package','dealer_id')); |
|
|
|
$exclusiveBuilding = Coverage::where('Type','Ex')->first(); |
|
|
|
return view('sales.form.dealer.residential_address', compact('coverage','package','dealer_id','exclusiveBuilding')); |
|
|
|
} |
|
|
|
|
|
|
|
public function viewFormApplicationD(Request $request) { |