Browse Source

add api dealer claim

ifah
Siti Hajar Ibrahim 5 years ago
parent
commit
7354adcf67
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      app/Http/Controllers/Api/FormController.php

+ 6
- 2
app/Http/Controllers/Api/FormController.php View File

$wo = WorkOrder::where('wo',$f->wo)->get(); $wo = WorkOrder::where('wo',$f->wo)->get();
foreach($wo as $wo) { foreach($wo as $wo) {
$installer = StaffDetail::where('_id',$wo->installer_id)->get(); $installer = StaffDetail::where('_id',$wo->installer_id)->get();
$installer_name = $installer->name;
foreach($installer as $installer) {
$installer_name = $installer->name;
}
$contractor = StaffDetail::where('_id',$wo->contractor_id)->get(); $contractor = StaffDetail::where('_id',$wo->contractor_id)->get();
$contractor_name = $contractor->name;
foreach($installer as $contractor) {
$contractor_name = $contractor->name;
}
} }
} }



Loading…
Cancel
Save