PATH:
home
/
lab2454c
/
vaultchip.com
/
platform
/
themes
/
wowy
/
views
/
templates
@if ($posts->count() > 0) {{-- <div class="single-header mb-80"> <h1 class="font-xxl text-brand">{{ SeoHelper::getTitle() }}</h1> <div class="entry-meta meta-1 font-xs mt-15 mb-15"> <span class="post-by has-dot d-inline-block">{{ __(':count Categories', ['count' => app(\Botble\Blog\Repositories\Interfaces\CategoryInterface::class)->count(['status' => \Botble\Base\Enums\BaseStatusEnum::PUBLISHED])]) }}</span> <span class="post-on d-inline-block has-dot">{{ __(':count Articles', ['count' => app(\Botble\Blog\Repositories\Interfaces\PostInterface::class)->count(['status' => \Botble\Base\Enums\BaseStatusEnum::PUBLISHED])]) }}</span> <span class="hit-count d-inline-block has-dot">{{ __(':count Views', ['count' => number_format(app(\Botble\Blog\Repositories\Interfaces\PostInterface::class)->getModel()->sum('views'))]) }}</span> </div> </div> --}} <!--<div class="loop-grid pr-30">--> <!-- <div class="row">--> <!-- <div class="container">--> @php $url = explode('/', url()->current()); $endUrl = end($url); $secondLastUrl = $url[count($url)-2]; @endphp @if($endUrl == 'search' || $secondLastUrl == 'blog') <div class="body__containt__main"> <div class="blog__listing__outer"> @endif @foreach ($posts as $post) {{-- @if ($loop->first) <div class="col-12"> <article class="first-post mb-30 wow fadeIn animated hover-up"> <div class="img-hover-slide position-relative overflow-hidden"> <span class="top-right-icon bg-dark"><i class="far fa-bookmark"></i></span> <div class="post-thumb img-hover-scale"> <a href="{{ $post->url }}"> <img src="{{ RvMedia::getImageUrl($post->image, null, false, RvMedia::getDefaultImage()) }}" alt="{{ $post->name }}"> </a> </div> </div> <div class="entry-content"> <div class="entry-meta meta-1 mb-30"> @if ($post->first_category->name) <a class="entry-meta meta-0" href="{{ $post->first_category->url }}"> <span class="post-in background4 text-brand font-xs">{{ $post->first_category->name }}</span> </a> @endif <div class="font-sm"> <span><span class="mr-10 text-muted"><i class="fa fa-eye" aria-hidden="true"></i></span>{{ number_format($post->views) }}</span> </div> </div> <h2 class="post-title mb-20"> <a href="{{ $post->url }}">{{ $post->name }}</a></h2> <p class="post-exerpt font-medium text-muted mb-30">{{ $post->description }}</p> <div class="mb-20 entry-meta meta-2"> <div class="font-xs "> <span class="post-by">{{ __('By') }} {{ $post->author->name }}</span> <span class="post-on">{{ $post->created_at->translatedFormat('M d, Y') }}</span> <span class="time-reading">8 mins read</span> </div> <div class="float-right"> <a href="{{ $post->url }}" class="read-more">{{ __('Read more') }} <span class="ml-10"><i class="fa fa-arrow-right fw-300 text-brand ml-5" aria-hidden="true"></i></span></a> </div> </div> </div> </article> </div> @else <div class="col-lg-6"> <article class="wow fadeIn animated hover-up mb-30"> <div class="post-thumb img-hover-scale"> <a href="{{ $post->url }}"> <img src="{{ RvMedia::getImageUrl($post->image, 'medium', false, RvMedia::getDefaultImage()) }}" alt="{{ $post->name }}"> </a> @if ($post->first_category->name) <div class="entry-meta"> <a class="entry-meta meta-2" href="{{ $post->first_category->url }}">{{ $post->first_category->name }}</a> </div> @endif </div> <div class="entry-content-2"> <h3 class="post-title mb-15"> <a href="{{ $post->url }}">{{ $post->name }}</a></h3> <p class="post-exerpt mb-30">{{ $post->description }}</p> <div class="entry-meta meta-1 font-xs color-grey mt-10 pb-10"> <div> <span class="post-on has-dot"> <i class="far fa-clock"></i> {{ $post->created_at->translatedFormat('M d, Y') }}</span> <span class="hit-count has-dot">{{ __(':count Views', ['count' => number_format($post->views)]) }}</span> </div> <a href="{{ $post->url }}" class="text-brand">{{ __('Read more') }} <i class="fa fa-arrow-right fw-300 text-brand ml-5"></i></a> </div> </div> </article> </div> @endif --}} <div class="blog__listing"> <div class="blog__listing__items"> <div class="image__box"> <a href="{{ $post->url }}"> <img src="{{ RvMedia::getImageUrl($post->image) }}" alt="{{ $post->name }}"/> </a> </div> <div class="blog__item__content"> <h4><a href="{{ $post->url }}">{{ $post->name }}</a></h4> <p>{{ $post->description }}</p> <ul> <li><a href="{{ $post->url }}">{{ $post->created_at->translatedFormat('M d, Y') }}</a></li> <li><a href="{{ $post->url }}">By Admin </a></li> </ul> <a class="read-more" href="{{ $post->url }}">Read More</a> </div> </div> </div> @endforeach @if($endUrl == 'search' || $secondLastUrl == 'blog') </div> </div> @endif <!-- </div>--> <!-- </div>--> <!--</div>--> {!! $posts->withQueryString()->links(Theme::getThemeNamespace() . '::partials.custom-pagination') !!} @endif
[+]
..
[-] posts.blade.php
[edit]