2026-09-30 12:21:19 +02:00
|
|
|
@php
|
|
|
|
|
$hasError = $errors->has($inputName) || $errors->has("{$inputName}.*");
|
|
|
|
|
$errorMessages = array_merge(
|
|
|
|
|
$errors->get($inputName),
|
|
|
|
|
$errors->get("{$inputName}.*")
|
|
|
|
|
);
|
|
|
|
|
@endphp
|
|
|
|
|
@if ($hasError)
|
2026-06-14 21:32:07 +02:00
|
|
|
<div class="col-12">
|
2026-09-30 12:21:19 +02:00
|
|
|
<small class="text-danger">{{ implode(', ', $errorMessages) }}</small>
|
2026-06-14 21:32:07 +02:00
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
@if (isset($helper))
|
|
|
|
|
<small class="form-text text-body-secondary" @if (isset($helperId)) id="{{ $helperId }}" @endif>{{ $helper }}</small>
|
|
|
|
|
@endif
|