GWM
This commit is contained in:
parent
83a7820e06
commit
dfade75d6c
@ -41,12 +41,16 @@ class ClaimController extends ResourceController
|
|||||||
c.client_name, c.phone as client_phone, c.email as client_email,
|
c.client_name, c.phone as client_phone, c.email as client_email,
|
||||||
pct.claim_type,
|
pct.claim_type,
|
||||||
pa.name as agent_name,
|
pa.name as agent_name,
|
||||||
tcs.claim_status')
|
tcs.claim_status,
|
||||||
|
pp.start_date as policy_start_date , pp.end_date as policy_end_date,
|
||||||
|
v.vehicle_no as reg_no')
|
||||||
->join('insurers i', 'i.id = tm.insurer_id', 'left')
|
->join('insurers i', 'i.id = tm.insurer_id', 'left')
|
||||||
->join('clients c', 'c.id = tm.client_id', 'left')
|
->join('clients c', 'c.id = tm.client_id', 'left')
|
||||||
->join('partner_claim_type_master pct', 'pct.id = tm.ticket_type_id', 'left')
|
->join('partner_claim_type_master pct', 'pct.id = tm.ticket_type_id', 'left')
|
||||||
->join('partner_agent pa', 'pa.id = tm.agent_id', 'left')
|
->join('partner_agent pa', 'pa.id = tm.agent_id', 'left')
|
||||||
->join('ticket_claim_status tcs', 'tcs.id = tm.claim_status_id AND tcs.ticket_type = 8', 'left')
|
->join('ticket_claim_status tcs', 'tcs.id = tm.claim_status_id AND tcs.ticket_type = 8', 'left')
|
||||||
|
->join('partner_policy pp', 'pp.policy_number = tm.policy_no', 'left')
|
||||||
|
->join('vehicle v', 'v.id = tm.vehicle_id', 'left')
|
||||||
->where('tm.ticket_type_id', 8);
|
->where('tm.ticket_type_id', 8);
|
||||||
|
|
||||||
// If ID is provided, fetch single record
|
// If ID is provided, fetch single record
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user