ldc-portsalaries/resources/views/front/employees/planning.blade.php
2021-06-07 18:28:25 +02:00

22 lines
612 B
PHP

Début: {{ $planning->start->formatLocalized('%A %d %B') }} <br>
Fin: {{ $planning->end->formatLocalized('%A %d %B') }}
<hr>
<table>
<thead>
<tr>
<th>Jour</th>
<th>Activité</th>
</tr>
</thead>
<tbody>
@php
setlocale(LC_TIME, config('app.locale'));
@endphp
@foreach($planning->data as $day => $value)
<tr>
<td>{{ Carbon::createFromFormat('dmY',$day)->formatLocalized('%A %d %B') }}</td>
<td>{!! nl2br(e(stripcslashes($value))) !!}</td>
</tr>
@endforeach
</tbody>
</table>