How to convert SQL Query to Laravel Query Builder :     select student_id
      ,count(case when attendance_status ='Absent'  then 1 end) as absent_count
      ,count(case when attendance_status ='Present' then 1 end) as present_count 
      ,count(case when attendance_status ='Leave' then 1 end) as leave_count 
      ,count(distinct date) as Tot_count
  from tbl_student_attendance where month='September' 
 group 
    by student_id ;