$costcenter->getRouteKey(), 'key' => [ 'public' => $costcenter->getPublicKey(), 'route' => $costcenter->getRouteKey(), ], 'user_id' => $costcenter->user_id, 'ou_id' => $costcenter->ou_id, 'coce_number' => $costcenter->coce_number, 'coce_budget' => $costcenter->coce_budget, 'coce_name' => $costcenter->coce_name, 'coce_description' => $costcenter->coce_description, 'coce_tag' => $costcenter->coce_tag, 'user_type' => $costcenter->user_type, 'deleted_at' => $costcenter->deleted_at, 'PRIMARY' => $costcenter->PRIMARY, 'url' => [ 'public' => trans_url('buyer/'.$costcenter->getPublicKey()), 'user' => guard_url('buyer/costcenter/'.$costcenter->getRouteKey()), ], 'status' => trans('app.'.$costcenter->status), 'created_at' => format_date($costcenter->created_at), 'updated_at' => format_date($costcenter->updated_at), ]; } }