FEAT_RFQ_NONEB_SRI

This commit is contained in:
Srinivas-Saravanan 2025-03-19 09:10:20 +05:30
parent 6fe74739b1
commit d9b2491855
3 changed files with 3008 additions and 357 deletions

View File

@ -532,7 +532,45 @@ class LeadsController extends BaseController
// 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()

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff