Add missing exp_date usage on poultry front

This commit is contained in:
Jérémy Munsch 2022-09-16 11:05:48 +02:00
parent 649c7b08c1
commit a43a840d4b
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
2 changed files with 3 additions and 2 deletions

View file

@ -51,7 +51,7 @@
<span class="h5 fw-bold text-light">{{ __('Date') }}</span>
</div>
<div class="text-center mt-1">
<span class="fw-bold textDistriResult text-uppercase">{{ now()->format('d/m/Y') }}</span>
<span class="fw-bold textDistriResult text-uppercase">{{ $date }}</span>
</div>
@if($distributionPicture)
<div class="text-center mt-3">

View file

@ -153,7 +153,8 @@ nous avions dit que nous fonctionnions comme cela lors d'une réunion en décemb
<div class="container-fluid g-2 poultryShow subpart">
@include('front.poultry.parts.distribution', [
'distributionPicture' => $distributionPicture,
'sign' => $traceaPoultry->sign
'sign' => $traceaPoultry->sign,
'date' => sprintf('%s %s', $traceaPoultry->exp_date->formatLocalized('%A'), $traceaPoultry->exp_date->format('d/m/Y'))
])
</div>
<div class="container-fluid g-2 poultryShow subpart">