@@ -290,14 +290,14 @@ |
||
| 290 | 290 | { |
| 291 | 291 | $trans_key = 'validation.attributes.' . $relationColumn; |
| 292 | 292 | $trans_key_low = strtolower($trans_key); |
| 293 | - if (empty($label) && Lang::has($trans_key)) { |
|
| 294 | - $label = Lang::get($trans_key); |
|
| 295 | - } |
|
| 296 | - if (empty($label) && Lang::has($trans_key_low)) { |
|
| 293 | + if (empty($label) && Lang::has($trans_key)) { |
|
| 294 | + $label = Lang::get($trans_key); |
|
| 295 | + } |
|
| 296 | + if (empty($label) && Lang::has($trans_key_low)) { |
|
| 297 | 297 | $label = Lang::get($trans_key_low); |
| 298 | 298 | }else if (empty($label)) { |
| 299 | - $label = ucfirst($relationColumn); |
|
| 300 | - } |
|
| 299 | + $label = ucfirst($relationColumn); |
|
| 300 | + } |
|
| 301 | 301 | return $label; |
| 302 | 302 | } |
| 303 | 303 | |
@@ -906,7 +906,7 @@ |
||
| 906 | 906 | */ |
| 907 | 907 | public function popover($title = null, $content) |
| 908 | 908 | { |
| 909 | - return $this->attribute([ |
|
| 909 | + return $this->attribute([ |
|
| 910 | 910 | 'data-popover-title' => $title, |
| 911 | 911 | 'data-popover' => $content, |
| 912 | 912 | ]); |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use Illuminate\Contracts\Validation\Validator; |
| 9 | 9 | use Illuminate\Support\Facades\Input; |
| 10 | 10 | use Illuminate\Support\MessageBag; |
| 11 | -use phpDocumentor\Reflection\Types\This; |
|
| 12 | 11 | |
| 13 | 12 | /** |
| 14 | 13 | * Class Form. |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public function direction($dir ='ltr') |
| 40 | 40 | { |
| 41 | - $this->options(['contentsLangDirection' => $dir]); |
|
| 41 | + $this->options(['contentsLangDirection' => $dir]); |
|
| 42 | 42 | $this->direction = $dir; |
| 43 | 43 | |
| 44 | 44 | return $this; } |