$plans->getRouteKey(), 'key' => [ 'public' => $plans->getPublicKey(), 'route' => $plans->getRouteKey(), ], 'master_plan_id' => $plans->master_plan_id, 'plan_name' => $plans->plan_name, 'power' => $plans->power, 'power_unit' => $plans->power_unit, 'amount' => $plans->amount, 'profit' => $plans->profit, 'interest_period_type' => $plans->interest_period_type, 'investment_duration' => $plans->investment_duration, 'investment_duration_type' => $plans->investment_duration_type, 'week_type' => $plans->week_type, 'status' => $plans->status, 'has_bonus' => $plans->has_bonus, 'bonus_level_1' => $plans->bonus_level_1, 'bonus_level_2' => $plans->bonus_level_2, 'bonus_level_3' => $plans->bonus_level_3, 'bonus_level_4' => $plans->bonus_level_4, 'bonus_level_5' => $plans->bonus_level_5, 'bonus_level_6' => $plans->bonus_level_6, 'bonus_level_7' => $plans->bonus_level_7, 'bonus_level_8' => $plans->bonus_level_8, 'bonus_level_9' => $plans->bonus_level_9, 'bonus_level_10' => $plans->bonus_level_10, 'url' => [ 'public' => trans_url('plan/'.$plans->getPublicKey()), 'user' => guard_url('plan/plans/'.$plans->getRouteKey()), ], 'status' => trans('app.'.$plans->status), 'created_at' => format_date($plans->created_at), 'updated_at' => format_date($plans->updated_at), ]; } }