mirror of https://github.com/4xmen/xshop.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.7 KiB
PHTML
64 lines
2.7 KiB
PHTML
<section class='SimplePostListSideBar content'>
|
|
<div class="{{gfx()['container']}}">
|
|
<div class="row pinned-posts">
|
|
@if(\App\Models\Post::where('status',1)->where('is_pinned',1)->count() < 0 )
|
|
@foreach(\App\Models\Post::where('status',1)->where('is_pinned',1)->limit(2)->get() as $post)
|
|
<div class="col-md-6 p-1">
|
|
<div class="post-item">
|
|
<div class="corner">
|
|
{{$post->mainGroup->name}}
|
|
</div>
|
|
<a href="{{$post->webUrl()}}">
|
|
<img src="{{$post->orgUrl()}}" alt="{{$post->title}}"
|
|
title="{{implode(',',$post->tags->pluck('name')->toArray()??'')}}">
|
|
</a>
|
|
<div class="detail">
|
|
<h4>
|
|
{{$post->title}}
|
|
</h4>
|
|
<span>
|
|
{{$post->created_at->ldate('Y/m/d l')}}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
@endif
|
|
</div>
|
|
<hr>
|
|
<div class="row">
|
|
@if(!getSetting($data->area->name.'_'.$data->part.'_invert'))
|
|
<div class="col-lg-3 p-0">
|
|
@include('segments.posts_page.SimplePostListSideBar.inc.sidebar')
|
|
</div>
|
|
@endif
|
|
<div class="col-lg-9">
|
|
@foreach($posts as $post)
|
|
<div class="post-list-item">
|
|
<img src="{{$post->imgUrl()}}" class="float-start me-4" alt="{{$post->title}}">
|
|
<h4>
|
|
{{$post->title}}
|
|
</h4>
|
|
<div class="text-muted py-2">
|
|
{{$post->created_at->ldate('Y/m/d l')}}
|
|
</div>
|
|
<p>
|
|
{{$post->subtitle}}
|
|
<br>
|
|
<a href="{{$post->webUrl()}}" class="btn btn-outline-primary my-2 btn-sm">
|
|
{{__("Read more")}}
|
|
</a>
|
|
</p>
|
|
</div>
|
|
@endforeach
|
|
{{$posts->links()}}
|
|
</div>
|
|
@if(getSetting($data->area->name.'_'.$data->part.'_invert'))
|
|
<div class="col-lg-3 p-0">
|
|
@include('segments.posts_page.SimplePostListSideBar.inc.sidebar')
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</section>
|