@extends('layouts.app')

@section('content')
<section class="container mx-auto px-6 py-12 max-w-4xl">
  <img src="{{ $post['thumbnail'] }}" alt="{{ $post['title'] }}" class="w-full h-64 object-cover rounded-lg mb-6">
  <h1 class="text-3xl font-bold mb-4">{{ $post['title'] }}</h1>
  <p class="text-sm text-gray-500 mb-6">
    {{ \Carbon\Carbon::parse($post['created_at'])->translatedFormat('d F Y') }} 
    • oleh {{ $post['author_id'] }}
  </p>
  <article class="prose max-w-none">
    {!! nl2br(e($post['content'])) !!}
  </article>
</section>
@endsection
