public static function selectOptions() { $options = ['' => trans('maven.choose_one')]; $unique_keys = MavenUniqueKey::where('draft_flag', 0)->get(); foreach ($unique_keys as $index => $unique_key) { $key = $index + 1; $options[$key] = $key; } $options_count = count($options); $options[$options_count] = $options_count; return $options; }