Browse Source

info installer id

ifah
Siti Hajar Ibrahim 5 years ago
parent
commit
7e27d6431f
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app/Http/Controllers/Contractor/WorkOrderController.php

+ 2
- 2
app/Http/Controllers/Contractor/WorkOrderController.php View File

$wod = WorkOrder::where('wo',$request->wo)->first(); $wod = WorkOrder::where('wo',$request->wo)->first();
$form = Form::where('_id',$wod->_id)->first(); $form = Form::where('_id',$wod->_id)->first();
$installer = Staff::with('StaffDetail')->where('_id',$wod->installer_id)->first(); $installer = Staff::with('StaffDetail')->where('_id',$wod->installer_id)->first();
info('WORechedule ' . $installer->staff_detail->name);
info('WORechedule ' . $installer->_id);


if(!empty($wod)){ if(!empty($wod)){


$formH->status_id = 6; $formH->status_id = 6;
$formH->date = new \MongoDB\BSON\UTCDateTime(time()*1000); $formH->date = new \MongoDB\BSON\UTCDateTime(time()*1000);
$formH->status = 'Pending Installer'; $formH->status = 'Pending Installer';
$formH->desc = 'This work order been assigned to particular installer ('.$installer->staff_detail->name.')';
$formH->desc = 'This work order been assigned to particular installer ('.$installer->name.')';
$form->formstatus()->save($formH); $form->formstatus()->save($formH);


array_push($data, array( array_push($data, array(

Loading…
Cancel
Save