|
|
|
|
|
|
|
|
$company = Company::where('_id',$w->contractor_id)->first(); |
|
|
$company = Company::where('_id',$w->contractor_id)->first(); |
|
|
|
|
|
|
|
|
if($w->installer_id != ''){ |
|
|
if($w->installer_id != ''){ |
|
|
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->withTrashed()->first(); |
|
|
|
|
|
|
|
|
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first(); |
|
|
$installer = $installer->StaffDetail->name; |
|
|
$installer = $installer->StaffDetail->name; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$company = Company::where('_id',$w->contractor_id)->first(); |
|
|
$company = Company::where('_id',$w->contractor_id)->first(); |
|
|
|
|
|
|
|
|
if($w->installer_id != ''){ |
|
|
if($w->installer_id != ''){ |
|
|
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->withTrashed()->first(); |
|
|
|
|
|
|
|
|
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first(); |
|
|
$installer = $installer->StaffDetail->name; |
|
|
$installer = $installer->StaffDetail->name; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$company = Company::where('_id',$w->contractor_id)->first(); |
|
|
$company = Company::where('_id',$w->contractor_id)->first(); |
|
|
|
|
|
|
|
|
if($w->installer_id != ''){ |
|
|
if($w->installer_id != ''){ |
|
|
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->withTrashed()->first(); |
|
|
|
|
|
|
|
|
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first(); |
|
|
if(!empty($installer)){ |
|
|
if(!empty($installer)){ |
|
|
$installer = $installer->StaffDetail->name; |
|
|
$installer = $installer->StaffDetail->name; |
|
|
} |
|
|
} |