Fix rogue ) being displayed, and other updates from osb

This commit is contained in:
Deon George 2024-07-03 13:02:59 +10:00
parent dc8983aa91
commit 46df11f087
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
@if(! isset($addvalues) || ! $addvalues)
<option id="new"></option>
@endif
@empty($groupby))
@empty($groupby)
@foreach($options as $option)
@empty(Arr::get($option,'value')) @continue @endempty
<option value="{{ Arr::get($option,'id') }}" @if(Arr::get($option,'id') == old($old,$value))selected @endif>{{ Arr::get($option,'value') }}</option>

View File

@ -7,11 +7,11 @@
<span class="input-group-text"><i class="fa-fw {{ $icon }}"></i></span>
</div>
@endempty()
<input type="text" class="form-control @error($id) is-invalid @enderror" id="{{ $id }}" name="{{ $name ?: $id }}" value="{{ old($old ?? $name,$value) }}">
<input type="text" class="form-control {{ $classes ?? ''}}@error($id) is-invalid @enderror" id="{{ $id }}" name="{{ $name ?: $id }}" value="{{ old($old ?? $name,$value) }}">
<span class="invalid-feedback" role="alert">
@error($id)
{{ $message }}
@enderror
</span>
</div>
</div>
</div>