Skip to content

Commit

Permalink
show attribute added to number group
Browse files Browse the repository at this point in the history
  • Loading branch information
sevannerse committed Mar 18, 2021
1 parent 449ec2f commit 5d2288b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/views/partials/form/number_group.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

<div
class="form-group {{ $col }}{{ isset($attributes['required']) ? ' required' : '' }}{{ isset($attributes['readonly']) ? ' readonly' : '' }}{{ isset($attributes['disabled']) ? ' disabled' : '' }}"
:class="[{'has-error': {{ isset($attributes['v-error']) ? $attributes['v-error'] : 'form.errors.get("' . $name . '")' }} }]">
:class="[{'has-error': {{ isset($attributes['v-error']) ? $attributes['v-error'] : 'form.errors.get("' . $name . '")' }} }]"
@if (isset($attributes['show']))
v-if="{{ $attributes['show'] }}"
@endif
>
@if (!empty($text))
{!! Form::label($name, $text, ['class' => 'form-control-label'])!!}
@endif
Expand Down

0 comments on commit 5d2288b

Please sign in to comment.