commit
530bea3ce7
@ -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 }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" :required="$required">{!! $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 }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" :required="$required">{!! $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 }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" :required="$required">{!! $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 }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" :required="$required">{!! $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 }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" :required="$required">{!! $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 }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" :required="$required">{!! $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 }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" :required="$required">{!! $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 }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" :required="$required">{!! $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 }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}" :required="$required">{!! $label !!}</x-form.label>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@php
|
@php
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<label class="text-black text-sm font-medium" {{ $attributes }}>
|
<label class="text-black text-sm font-medium" {{ $attributes }}>
|
||||||
{!! $slot !!}
|
{!! $slot !!}
|
||||||
|
|
||||||
@if ($attributes->has('required'))
|
@if ($attributes->has('required') && $attributes->get('required') === true)
|
||||||
<span class="text-red ltr:ml-1 rtl:mr-1">*</span>
|
<span class="text-red ltr:ml-1 rtl:mr-1">*</span>
|
||||||
@endif
|
@endif
|
||||||
</label>
|
</label>
|
Loading…
x
Reference in New Issue
Block a user