ldc-boutique-cnc-sable/resources/views/bo/modules/input-error.blade.php

16 lines
471 B
PHP
Raw Permalink Normal View History

@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">
<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