2023-04-02 22:07:15 +10:00
|
|
|
<!-- $o=Attribute::class -->
|
2025-01-15 23:29:53 +11:00
|
|
|
<x-attribute.layout :edit="$edit ?? FALSE" :new="$new ?? FALSE" :o="$o">
|
|
|
|
@foreach(old($o->name_lc,($new ?? FALSE) ? [NULL] : $o->values) as $value)
|
|
|
|
@if (($edit ?? FALSE) && ! $o->is_rdn)
|
2024-01-09 23:28:17 +11:00
|
|
|
<div class="input-group has-validation">
|
2025-01-15 23:29:53 +11:00
|
|
|
<input type="text" @class(['form-control','is-invalid'=>($e=$errors->get($o->name_lc.'.'.$loop->index)),'mb-1','border-focus'=>($o->values->contains($value))]) name="{{ $o->name_lc }}[]" value="{{ $value }}" placeholder="{{ ! is_null($x=Arr::get($o->values,$loop->index)) ? $x : '['.__('NEW').']' }}" @readonly(! ($new ?? FALSE))>
|
2023-09-02 20:50:54 +10:00
|
|
|
|
2024-01-09 23:28:17 +11:00
|
|
|
<div class="invalid-feedback pb-2">
|
|
|
|
@if($e)
|
|
|
|
{{ join('|',$e) }}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-09-02 20:50:54 +10:00
|
|
|
|
2024-01-09 23:28:17 +11:00
|
|
|
@else
|
|
|
|
{{ $value }}
|
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
</x-attribute.layout>
|