@php $reverseRow ??= false; $rows = $posts->chunk(4); $isBackgroundTransparent = echo_check_transparent_color($shortcode->background_color); $titleColor = $isBackgroundTransparent ? 'inherit' : '#ffffff'; $lineColor = $isBackgroundTransparent ? '#5E5E5E' : '#ffffff'; @endphp
$sidebar]) @style([ ...$variableStyles, "--title-color: $titleColor" => $titleColor, "--line-color: $lineColor" => $lineColor, ]) >
$sidebar, 'col-12' => ! $sidebar, ]) >
@if ($title = $shortcode->title)

{!! BaseHelper::clean($title) !!}

@endif
@foreach($rows as $posts)
$reverseRow])> @if ($firstPost = $posts->first())
{{ Rvmedia::image($firstPost->image, $firstPost->name, 'thumb-medium') }} @if ($category = $firstPost->firstCategory) @endif
{!! Theme::partial('post-meta', [ 'post' => $firstPost, 'wrapperClass' => 'text-center' ]) !!}
{{ $name }} @if ($description = $firstPost->description)

{!! BaseHelper::clean($description) !!}

@endif
@endif
@foreach($posts->skip(1) as $post)
{{ Rvmedia::image($post->image, $post->name, 'small') }}
@if ($category = $post->firstCategory)
@endif {!! Theme::partial('post-meta', ['post' => $post, 'wrapperClass' => 'text-center']) !!}
{{ $name }}
@endforeach
@endforeach
@if ($sidebar)
{!! dynamic_sidebar($sidebar) !!}
@endif