Browse Source

flag delete installer

allo_data_retrieve^2
Siti Hajar Ibrahim 4 years ago
parent
commit
9caad1969d

+ 1
- 0
app/Http/Controllers/Contractor/ContractorController.php View File

@@ -826,6 +826,7 @@ class ContractorController extends Controller
public function deleteInstaller(Request $request){

$staff = Staff::where('_id',$request->id)->first();
info("delete installer" . $request->id);

if(!empty($staff)){
$st = StaffDetail::where('email',$staff->email)->first();

+ 1
- 1
app/Http/Controllers/CustomerService/WorkOrderController.php View File

@@ -288,7 +288,7 @@ class WorkOrderController extends Controller
$product = Product::where('speed', $form->PackageDetail->name)->where('formT', $w->Form->type_application)->first();
$company = Company::where('_id', $w->contractor_id)->first();

info($w->installer_id);
// info($w->installer_id);
if ($w->installer_id != '') {
$installer = Staff::with('StaffDetail')->where('_id', $w->installer_id)->first();
$installer = $installer->StaffDetail->name;

Loading…
Cancel
Save