FEAT_RFQ_NONEB_SRI
This commit is contained in:
parent
6fe74739b1
commit
d9b2491855
@ -532,7 +532,45 @@ class LeadsController extends BaseController
|
|||||||
|
|
||||||
|
|
||||||
// dd($data);
|
// dd($data);
|
||||||
$this->loadLayout('view_rfq.php', $data);
|
if ($data['lead_id'] != 75){
|
||||||
|
|
||||||
|
$this->loadLayout('view_rfq.php', $data);
|
||||||
|
}else{
|
||||||
|
|
||||||
|
$this->viewNonEBRFQ($id);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function viewNonEBRFQ($id){
|
||||||
|
|
||||||
|
$data['insurer'] = $this->insurerBranchModel->getInsurerBranchesWithInsurerNames();
|
||||||
|
$lead_data = $this->leadsModel
|
||||||
|
->select('
|
||||||
|
leads.*,
|
||||||
|
policy_type.question_json,
|
||||||
|
policy_type.policy_type,
|
||||||
|
policy_type.long_name,
|
||||||
|
user_profiles.email as created_person_email
|
||||||
|
')
|
||||||
|
->join('policy_type', 'leads.policy_type_id = policy_type.id')
|
||||||
|
->join('user_profiles', 'leads.created_by = user_profiles.id', 'left')
|
||||||
|
->where('leads.id', $id)
|
||||||
|
->where('leads.is_active', 1)
|
||||||
|
->first();
|
||||||
|
$data['lead_data'] = $lead_data;
|
||||||
|
$data['client_type'] = $this->clientType;
|
||||||
|
|
||||||
|
$data['rfq_data'] = $this->RFQModel
|
||||||
|
->where('lead_id', $id)
|
||||||
|
// ->where('type', $type)
|
||||||
|
->where('is_active', 1)
|
||||||
|
->orderBy('id', 'desc')
|
||||||
|
->first();
|
||||||
|
|
||||||
|
// dd($data);
|
||||||
|
$this->loadLayout('view_rfq_non_eb', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function createRFQ()
|
public function createRFQ()
|
||||||
|
|||||||
1160
app/Views/policyRegisterModel.php
Normal file
1160
app/Views/policyRegisterModel.php
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user