| $name = ''; $contact_no = ''; $building = ''; | $name = ''; $contact_no = ''; $building = ''; | ||||
| $labelD = ''; $service = ''; $rating = ''; | $labelD = ''; $service = ''; $rating = ''; | ||||
| $installer_name =''; $contractor_name=''; | |||||
| $installer_name =''; $contractor_name=''; $submitted_date=''; | |||||
| if(!empty($f->dealer)){ | if(!empty($f->dealer)){ | ||||
| $c = Company::find($f->dealer); | $c = Company::find($f->dealer); | ||||
| foreach($docket as $d) { | foreach($docket as $d) { | ||||
| $service = $d->nature_work; | $service = $d->nature_work; | ||||
| $rating = $d->Rating1; | $rating = $d->Rating1; | ||||
| $submitted_date = $d->end_job; | |||||
| } | } | ||||
| } | } | ||||
| "Building"=> $building, | "Building"=> $building, | ||||
| "Rating" => $rating, | "Rating" => $rating, | ||||
| "Claim Amount" => $f->total_claim, | "Claim Amount" => $f->total_claim, | ||||
| "Submitted Date" => $submitted_date, | |||||
| )); | )); | ||||
| } | } | ||||