this is my query $data = Item_Exp::selectRaw('sum(qty) as qty,item_id,depart_id,sum(item_rate) as item_rate')->groupBy('depart_id')->groupBy('item_id')->get();
`and this is the table I want to add my data to in html
I used foreach but the result was not true
please help me
Thanks in advanceenter image description here