🎨 Empêche 2 posts par jour et améliore l'affichage
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">Dashboard</div>
|
||||
<div class="card-header">{{ __('Dashboard') }}</div>
|
||||
|
||||
<div class="card-body">
|
||||
@if (session('status'))
|
||||
@@ -15,6 +15,9 @@
|
||||
@endif
|
||||
|
||||
<h1>{{ strftime('%B %G', $today->format('U')) }}</h1>
|
||||
@if($already)
|
||||
<div class="alert alert-info" role="alert">L'activité du jour a été entrée.</div>
|
||||
@else
|
||||
<form action="{{ url('store') }}" method="post" accept-charset="utf-8">
|
||||
@csrf
|
||||
<div class="contact-form">
|
||||
@@ -32,9 +35,10 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@endif
|
||||
@foreach($posts as $post)
|
||||
<div class="post">
|
||||
<p>{{ $post->date_post }}</p>
|
||||
<p>{{ \Carbon\Carbon::instance($post->date_post)->diffForHumans() }}</p>
|
||||
<p>{{ $post->content }}</p>
|
||||
</div>
|
||||
@endforeach
|
||||
|
Reference in New Issue
Block a user