get(T_PAYMENTS); $total_earnings_tm = $db->where('date',"$month/$year")->get(T_PAYMENTS); $total_sales = count($total_earnings); for($i=1; $i < 13; $i++) { $pro_sales_static = $db->where('date',"$i/$year")->getValue(T_PAYMENTS, 'count(*)'); $json_static_dump[] = array( 'month' => $pt->months[$i], 'pro_sales' => $pro_sales_static ); } $json_static_dump = json_encode($json_static_dump); foreach ($total_earnings as $amount) { $total_earnings_sum += $amount->amount; } foreach ($total_earnings_tm as $amount) { $total_earnings_tms += $amount->amount; } ?>

Pro System > Recent payments

attach_money
TOTAL EARNINGS
TOTAL SALES
attach_money
EARNINGS THIS MONTH

STATICS