$contract_setting->getRouteKey(), 'key' => [ 'public' => $contract_setting->getPublicKey(), 'route' => $contract_setting->getRouteKey(), ], 'name' => $contract_setting->name, 'min_investment' => $contract_setting->min_investment, 'max_investment' => $contract_setting->max_investment, 'profit' => $contract_setting->profit, 'interest_period_type' => $contract_setting->interest_period_type, 'investment_duration' => $contract_setting->investment_duration, 'investment_duration_type' => $contract_setting->investment_duration_type, 'interest_after_matured' => $contract_setting->interest_after_matured, 'release_deposit' => $contract_setting->release_deposit, 'url' => [ 'public' => trans_url('contract_setting/'.$contract_setting->getPublicKey()), 'user' => guard_url('contract_setting/contract_setting/'.$contract_setting->getRouteKey()), ], 'status' => trans('app.'.$contract_setting->status), 'created_at' => format_date($contract_setting->created_at), 'updated_at' => format_date($contract_setting->updated_at), ]; } }