| @@ -110,7 +110,7 @@ class FormController extends BaseController | |||
| $name = ''; $contact_no = ''; | |||
| $address = ''; $building = ''; | |||
| $labelD = ''; | |||
| $labelD = ''; $amount_claim=''; | |||
| if(!empty($f->dealer_id)){ | |||
| $c = Company::find($f->company_id); | |||
| @@ -118,11 +118,12 @@ class FormController extends BaseController | |||
| }else{ | |||
| $labelD = ""; | |||
| } | |||
| if (!empty($f->Subscriber->DealerClaim)){ | |||
| $amount_claim = $f->Subscriber->DealerClaim->total_claim; | |||
| } | |||
| if(!empty($f->Subscriber) && !empty($f->PackageDetail)){ | |||
| if (!empty($f->Subscriber->DealerClaim)){ | |||
| $amount_claim = $f->Subscriber->DealerClaim->total_claim; | |||
| } | |||
| if($f->type_application == 'R'){ | |||
| $name = $f->Subscriber->name; | |||
| $contact_no = $f->Subscriber->phone1; | |||