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