IA
->selectRaw('SUM(sum_earned) as sum_earned_total, payment_type_id')
->groupBy('payment_type_id')Size: a a a
IA
->selectRaw('SUM(sum_earned) as sum_earned_total, payment_type_id')
->groupBy('payment_type_id')IA
АО
P
P
IA
A
A
ii

A
ii
A
SC
P
IA

IA
A
D
A