added custom attributes for required
This commit is contained in:
parent
a22137556b
commit
e288892d1d
@ -26,7 +26,7 @@
|
|||||||
@if (! $attributes->has('label') && ! empty($label->contents))
|
@if (! $attributes->has('label') && ! empty($label->contents))
|
||||||
{!! $label ?? '' !!}
|
{!! $label ?? '' !!}
|
||||||
@elseif (! empty($label))
|
@elseif (! empty($label))
|
||||||
<x-form.label for="{{ $name }}" class="form-control-label">{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div @class([
|
<div @class([
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
@if (! $attributes->has('label') && ! empty($label->contents))
|
@if (! $attributes->has('label') && ! empty($label->contents))
|
||||||
{!! $label ?? '' !!}
|
{!! $label ?? '' !!}
|
||||||
@elseif (! empty($label))
|
@elseif (! empty($label))
|
||||||
<x-form.label for="{{ $name }}" class="form-control-label">{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<x-form.input.editor
|
<x-form.input.editor
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
@if (! $attributes->has('label') && ! empty($label->contents))
|
@if (! $attributes->has('label') && ! empty($label->contents))
|
||||||
{!! $label ?? '' !!}
|
{!! $label ?? '' !!}
|
||||||
@elseif (! empty($label))
|
@elseif (! empty($label))
|
||||||
<x-form.label for="{{ $name }}" class="form-control-label">{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div @class([
|
<div @class([
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
@if (! $attributes->has('label') && ! empty($label->contents))
|
@if (! $attributes->has('label') && ! empty($label->contents))
|
||||||
{!! $label ?? '' !!}
|
{!! $label ?? '' !!}
|
||||||
@elseif (! empty($label))
|
@elseif (! empty($label))
|
||||||
<x-form.label for="{{ $name }}" class="form-control-label">{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div @class([
|
<div @class([
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
@if (! $attributes->has('label') && ! empty($label->contents))
|
@if (! $attributes->has('label') && ! empty($label->contents))
|
||||||
{!! $label ?? '' !!}
|
{!! $label ?? '' !!}
|
||||||
@elseif (! empty($label))
|
@elseif (! empty($label))
|
||||||
<x-form.label for="{{ $name }}" class="form-control-label">{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div @class([
|
<div @class([
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
@if (! $attributes->has('label') && ! empty($label->contents))
|
@if (! $attributes->has('label') && ! empty($label->contents))
|
||||||
{!! $label ?? '' !!}
|
{!! $label ?? '' !!}
|
||||||
@elseif (! empty($label))
|
@elseif (! empty($label))
|
||||||
<x-form.label for="{{ $name }}" class="form-control-label">{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div @class([
|
<div @class([
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
@if (! $attributes->has('label') && ! empty($label->contents))
|
@if (! $attributes->has('label') && ! empty($label->contents))
|
||||||
{!! $label ?? '' !!}
|
{!! $label ?? '' !!}
|
||||||
@elseif (! empty($label))
|
@elseif (! empty($label))
|
||||||
<x-form.label for="{{ $name }}" class="form-control-label">{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div @class([
|
<div @class([
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
@if (! $attributes->has('label') && ! empty($label->contents))
|
@if (! $attributes->has('label') && ! empty($label->contents))
|
||||||
{!! $label ?? '' !!}
|
{!! $label ?? '' !!}
|
||||||
@elseif (! empty($label))
|
@elseif (! empty($label))
|
||||||
<x-form.label for="{{ $name }}" class="form-control-label">{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@php
|
@php
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
v-if="{{ $attributes['show'] }}"
|
v-if="{{ $attributes['show'] }}"
|
||||||
@endif
|
@endif
|
||||||
>
|
>
|
||||||
<x-form.label for="{{ $name }}" class="form-control-label">{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
||||||
|
|
||||||
<div class="flex items-center mt-1">
|
<div class="flex items-center mt-1">
|
||||||
@if (empty($attributes['disabled']))
|
@if (empty($attributes['disabled']))
|
||||||
|
@ -20,6 +20,6 @@
|
|||||||
{{ $attributes->except(['placeholder', 'disabled', 'required', 'readonly', 'v-error', 'v-error-message', 'option', 'optionKey', 'optionValue']) }}
|
{{ $attributes->except(['placeholder', 'disabled', 'required', 'readonly', 'v-error', 'v-error-message', 'option', 'optionKey', 'optionValue']) }}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<label class="form-control-label ml-2" for="{{ ! empty($attributes[':id']) ? $attributes[':id'] : $id }}">
|
<label class="ml-2" for="{{ ! empty($attributes[':id']) ? $attributes[':id'] : $id }}">
|
||||||
{{ !empty($option) ? $option->$optionValue : $label }}
|
{{ !empty($option) ? $option->$optionValue : $label }}
|
||||||
</label>
|
</label>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user