$bill->distribution_channel_id, // 'channel_name' => $bill->distribution_channel_name, 'date' => date('Y-m-d',strtotime($bill->date)), 'recharge_amount' => (float)($bill->recharge_amount), 'settlement_price' => (float)($bill->settlement_price), 'tallage' => (float)(isset($bill->tallage) ? ($bill->tallage) : 0), 'rate' => (100 * (float)($bill->rate))."%", ]; } }