@if(!empty($landingComponent) and $landingComponent->enable) @php $contents = []; if (!empty($landingComponent->content)) { $contents = json_decode($landingComponent->content, true); } $frontComponentsDataMixins = (new \App\Mixins\LandingBuilder\FrontComponentsDataMixins()); $posts = $frontComponentsDataMixins->getBlogData(); @endphp @if($posts->isNotEmpty()) @push('styles_top') @endpush
@if(!empty($contents['main_content']) and !empty($contents['main_content']['pre_title']))
{{ $contents['main_content']['pre_title'] }}
@endif @if(!empty($contents['main_content']) and !empty($contents['main_content']['title']))

{{ $contents['main_content']['title'] }}

@endif @if(!empty($contents['main_content']) and !empty($contents['main_content']['description']))

{!! nl2br($contents['main_content']['description']) !!}

@endif
{{-- List --}} @php $firstPost = $posts->first(); $posts = $posts->slice(1); // other last 4 item @endphp
@include('landingBuilder.front.components.blog.post_card', ['post' => $firstPost, 'className' => 'one-large-col', 'showPostStats' => true])
@foreach($posts as $postRow)
@include('landingBuilder.front.components.blog.post_card', ['post' => $postRow, 'className' => 'four-small-col'])
@endforeach
{{-- Primary Button --}} @if(!empty($contents['main_content']['button']) and !empty($contents['main_content']['button']['label'])) @endif
@endif @endif