![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/job-board.corals.io/resources/themes/ecommerce-basic/ |
@extends('layouts.public') @section('editable_content') @include('partials.page_header', ['item'=>$blog, 'content'=> (empty($blog->rendered)?('<h1>'.$blog->title.'</h1>'):$blog->rendered).(isset($title)?('<br/>'.$title):'')]) <div class="container padding-bottom-3x mb-1"> <div class="row {{ !in_array($blog->template, ['right', 'left'])?'justify-content-center':'' }}"> <div class="{{ !in_array($blog->template, ['right', 'left'])?'col-lg-10':'col-xl-9 col-lg-8' }} {{ $blog->template =='left' ? 'order-lg-2':'' }}"> @forelse($posts as $post) <article class="row"> <div class="col-md-3"> <ul class="post-meta"> <li><i class="icon-clock"></i> {{ format_date($post->published_at) }}</li> <li><i class="icon-head"></i> {{ $post->author->full_name }}</li> @if(count($activeTags = $post->activeTags)) <li> <i class="icon-tag"></i> @foreach($activeTags as $tag) <a href="{{ url('tag/'.$tag->slug) }}"> {{ $tag->name }}</a>, @endforeach </li> @endif <li> <i class="icon-folder"></i> @foreach($post->activeCategories as $category) <a href="{{ url('category/'.$category->slug) }}"> {{ $category->name }} </a>, @endforeach </li> </ul> </div> <div class="col-md-9 blog-post"> @if($post->featured_image) <a class="post-thumb" href="{{ url($post->slug) }}"><img src="{{ $post->featured_image }}" alt="Post"></a> @endif <h3 class="post-title"> <a href="{{ url($post->slug) }}"> {{ $post->title }} </a> </h3> <p> {{ \Str::limit(strip_tags($post->rendered ),250) }} <a href='{{ url($post->slug) }}' class='text-medium'>@lang('corals-ecommerce-basic::labels.blog.read_more')</a> </p> </div> </article> @empty <div class="alert alert-warning"> <h4>@lang('corals-ecommerce-basic::labels.blog.no_posts_found')</h4> </div> @endforelse {{ $posts->links('partials.paginator') }} </div> @if(in_array($blog->template, ['right', 'left'])) <div class="col-xl-3 col-lg-4 {{ $blog->template =='left' ? 'order-lg-1':'' }}"> @include('partials.blog_sidebar') </div> @endif </div> </div> @endsection