/
dimamir
/
coolify
Обзор
Документация
Войти
/
dimamir
/
coolify
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
resources/views/components/forms/select.blade.php
23 строки
971 B
Andras Bacsai
chore: Refactor terminal component and select form layout
16 сен 2024, 12:25
16 сен 2024, 12:25
e1a6c3e
Код
Авторство
О чём код?
<div class="w-full"> @if ($label) <label class="flex gap-1 items-center mb-1 text-sm font-medium">{{ $label }} @if ($required) <x-highlighted text="*" /> @endif @if ($helper) <x-helper :helper="$helper" /> @endif </label> @endif <select {{ $attributes->merge(['class' => $defaultClass]) }} @required($required) wire:dirty.class.remove='dark:focus:ring-coolgray-300 dark:ring-coolgray-300' wire:dirty.class="dark:focus:ring-warning dark:ring-warning" wire:loading.attr="disabled" name={{ $id }} @if ($attributes->whereStartsWith('wire:model')->first()) {{ $attributes->whereStartsWith('wire:model')->first() }} @else wire:model={{ $id }} @endif> {{ $slot }} </select> @error($id) <label class="label"> <span class="text-red-500 label-text-alt">{{ $message }}</span> </label> @enderror </div>