My query from Laravel Builder toSql() function.
select `dispatcher_leads`.*, (select CASE WHEN lead_positions.order_type = \'shift\' THEN DATE_ADD(lead_positions