'Amount (min)', 'amount_max' => 'Amount (max)', 'match' => 'Matches on', 'repeat_freq' => 'Repetition', 'account_from_id' => 'Account from', 'account_to_id' => 'Account to', 'account_id' => 'Asset account' ]; return isset($labels[$name]) ? $labels[$name] : str_replace('_', ' ', ucfirst($name)); } /** * Return buttons for update/validate/return. * * @param $type * @param $name */ public static function ffOptionsList($type, $name) { $previousValue = \Input::old('post_submit_action'); $previousValue = is_null($previousValue) ? 'store' : $previousValue; /* * Store. */ $store = ''; switch ($type) { case 'create': $store = '
' . e($errors->first($name)) . '
'; } } unset($errors); /* * If warnings, respond to them: */ if (!is_null($warnings)) { if ($warnings->has($name)) { $html .= ''; $html .= '' . e($warnings->first($name)) . '
'; } } unset($warnings); /* * If successes, respond to them: */ if (!is_null($successes)) { if ($successes->has($name)) { $html .= ''; $html .= '' . e($successes->first($name)) . '
'; } } unset($successes); $html .= '