@section('scripts') @vite(['resources/js/loadPosts.js']) @endsection
@if($highlighted_posts->isEmpty())

Witaj na Blogu!

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi rhoncus varius placerat. Praesent erat tellus, mattis ac finibus at, mollis in arcu. Nam malesuada libero vitae nulla pharetra sodales. Sed gravida nibh vel eros auctor, sit amet bibendum dui pharetra. Mauris iaculis sapien nisl, sit amet consequat odio consequat in. Curabitur ultrices ligula in ligula varius, ac viverra est finibus. Cras convallis et felis vitae convallis. Ut blandit ornare elementum. Praesent dapibus maximus vestibulum.
Main @else
Wyróżnione
@foreach($highlighted_posts as $highlighted_post)
{{ $highlighted_post->post->title }}
@if ($highlighted_post->post->category)
{{ $highlighted_post->post->category->name }}
@endif @if ($highlighted_post->post->read_time)

{{ $highlighted_post->post->read_time }} min

@endif

{{ $highlighted_post->post->title }}

user

{{ $highlighted_post->post->user->firstname . ' ' . $highlighted_post->post->user->lastname }}
{{ \Carbon\Carbon::parse($highlighted_post->post->created_at)->translatedFormat('d F, Y') }}

{{ $highlighted_post->post->excerpt }}

@endforeach @endif
@for($i = 0; $i < count($highlighted_posts); $i++) @endfor
@foreach ($posts as $post) @endforeach
@if(!$highlighted_posts->isEmpty()) @vite(['resources/js/highlight.js']) @endif