Default form-label for the label css on select components

This commit is contained in:
Deon George 2024-12-04 16:45:16 +11:00
parent b239f52719
commit 8c8283503f
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<div class="form-group"> <div class="form-group">
@if(isset($label)) @if(isset($label))
<label {{ $attributes->only(['class']) }} for="{{ $id ?? $name }}">{{ $label }}</label> <label {{ $attributes->only(['class'])->merge(['class'=>'form-label']) }} for="{{ $id ?? $name }}">{{ $label }}</label>
@endisset @endisset
<div class="input-group has-validation"> <div class="input-group has-validation">
@if(isset($icon) || isset($prepend)) @if(isset($icon) || isset($prepend))

View File

@ -27,7 +27,7 @@ use App\Models\System;
->whereRaw('id NOT IN (SELECT system_id FROM "system_user")') ->whereRaw('id NOT IN (SELECT system_id FROM "system_user")')
->cursor()) ->cursor())
<x-form.select id="system" name="id" icon="bi-laptop-fill" label="BBS Name" class="form-label" placeholder="See if your BBS exists, otherwise add it" feedback="BBS Name is required" helper="Enter your BBS name and press NEXT" :addvalues="true" :options="$options->map(fn($item,$key)=>['id'=>$item->id,'value'=>$item->name])" /> <x-form.select id="system" name="id" icon="bi-laptop-fill" label="BBS Name" placeholder="See if your BBS exists, otherwise add it" feedback="BBS Name is required" helper="Enter your BBS name and press NEXT" :addvalues="true" :options="$options->map(fn($item,$key)=>['id'=>$item->id,'value'=>$item->name])" />
</div> </div>
</div> </div>