fix: 🐛 parse mouvement_created_at as date

This commit is contained in:
Corentin Huet 2026-10-28 17:09:03 +01:00
parent 6ec164d39a
commit c8953e4e4a

View file

@ -101,8 +101,8 @@
<h4><i class="fas fa-plus-square addcalendar"></i> {{ __('Calendrier de diffusion') }}</h4>
@foreach ($coupon->calendriers()->get() as $calendrier)
<div class="form-field-calendar">
<input type="date" name="startdate[]" value="{{ $calendrier->calendrier_startdate->format('Y-m-d') }}">
<input type="date" name="enddate[]" value="{{ $calendrier->calendrier_enddate->format('Y-m-d') }}">
<input type="date" name="startdate[]" value="{{ Carbon\Carbon::parse($calendrier->calendrier_startdate)->format('Y-m-d') }}">
<input type="date" name="enddate[]" value="{{ Carbon\Carbon::parse($calendrier->calendrier_enddate)->format('Y-m-d') }}">
<i class="fas fa-minus-square removecalendar"></i>
</div>
@endforeach
@ -117,7 +117,7 @@
</thead>
@foreach ($coupon->mouvements()->get() as $mouvement)
<tr>
<th>{{ $mouvement->mouvement_created_at->format('d/m/Y') }}</th>
<th>{{ Carbon\Carbon::parse($mouvement->mouvement_created_at)->format('d/m/Y') }}</th>
<th>{{ $mouvement->mouvement_nombre }}</th>
<th></th>
</tr>