@php $modalName = $modalName ?? null; $selectedDate = $selectedDate ?? now(); $defaultConsumedAt = $selectedDate->isSameDay(now()) ? now()->format('Y-m-d\TH:i') : $selectedDate->copy()->setTime(12, 0)->format('Y-m-d\TH:i'); $showFormErrors = $errors->any() && (! $modalName || old('_modal') === $modalName); @endphp
@csrf @if ($modalName) @endif

{{ __('Hydratation') }}

{{ __('Ajouter une consommation') }}

@if ($showFormErrors)

{{ __('Certains champs obligatoires sont manquants ou invalides.') }}

@endif
@if ($modalName) @endif