@if (isset($category) && $category)
@if (isset($posts) && count($posts))
@php $selections = $posts->filterPostsBySlug(['lolita', '1984'], 'created_at', true); @endphp
@if (!$selections->isEmpty())
Our Selection
@foreach ($selections as $post)
@include ('themes.starter.partials.post')
@endforeach
@endif
@foreach ($posts as $post)
@include ('themes.starter.partials.post')
@endforeach
@php $discounts = $posts->filterPostsByCategory('discount', 'created_at'); @endphp
@if (!$discounts->isEmpty())
Discounts
@foreach ($discounts as $post)
@include ('themes.starter.partials.post')
@endforeach
@endif
@else
No post
@endif
@if ($category->getExtraFieldByAlias('library'))
Library: {{ $category->getExtraFieldByAlias('library') }}
@endif
@endif
@push ('scripts')
@endpush