post.blade.php 888 B

1234567891011121314
  1. @if ($post->created_at <= now())
  2. <div class="post">
  3. <div class="menu" style="display: flex; gap: 20px;">
  4. <form method="get" action="/public/users/posts" style="width: 90%"><button name="id" value="{{$post->user[0]->id}}">{{$post->user[0]->name}}</button></form>
  5. <form method="get" action="/public/posts/update"><button name="id" value="{{$post->id}}">&#128396;</button></form>
  6. <form method="get" action="/public/posts/delete"><button name="id" value="{{$post->id}}">&#10006;</button></form>
  7. </div>
  8. <div style="margin: 10px;">{{$post->text}}</div>
  9. <div style="text-align: right; display: flex; gap: 10px;">
  10. <form method="get" action="/public/posts/post" style="width: 88%"><button class="green_button" name="id" value='{{$post->id}}'>&#128172;</button></form>
  11. {{Str::limit($post->created_at, $limit=11, $end="")}}
  12. </div>
  13. </div>
  14. @endif