[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: show.blade.php
@extends(getTemplate().'.layouts.app') @section('content') <section class="cart-banner position-relative text-center"> <div class="container h-100"> <div class="row h-100 align-items-center justify-content-center text-center"> <div class="col-12 col-md-9 col-lg-7"> <h1 class="font-30 text-white font-weight-bold">{{ $post->title }}</h1> <div class="d-flex flex-column flex-sm-row align-items-center align-sm-items-start justify-content-between"> @if(!empty($post->author)) <span class="mt-10 mt-md-20 font-16 font-weight-500 text-white">{{ trans('public.created_by') }} @if($post->author->isTeacher()) <a href="{{ $post->author->getProfileUrl() }}" target="_blank" class="text-white text-decoration-underline">{{ $post->author->full_name }}</a> @elseif(!empty($post->author->full_name)) <span class="text-white text-decoration-underline">{{ $post->author->full_name }}</span> @endif </span> @endif <span class="mt-10 mt-md-20 font-16 font-weight-500 text-white">{{ trans('public.in') }} <a href="{{ $post->category->getUrl() }}" class="text-white text-decoration-underline">{{ $post->category->title }}</a> </span> <span class="mt-10 mt-md-20 font-16 font-weight-500 text-white">{{ dateTimeFormat($post->created_at, 'j M Y') }}</span> <div class="js-share-blog d-flex align-items-center cursor-pointer mt-10 mt-md-20"> <div class="icon-box "> <i data-feather="share-2" class="text-white" width="20" height="20"></i> </div> <div class="ml-5 font-16 font-weight-500 text-white">{{ trans('public.share') }}</div> </div> </div> </div> </div> </div> </section> <section class="container mt-10 mt-md-40"> <div class="row"> <div class="col-12 col-lg-8"> <div class="post-show mt-30"> <div class="post-img pb-30"> <img src="{{ $post->image }}" alt=""> </div> {!! nl2br($post->content) !!} </div> {{-- post Comments --}} @if($post->enable_comment) @include('web.default.includes.comments',[ 'comments' => $post->comments, 'inputName' => 'blog_id', 'inputValue' => $post->id ]) @endif {{-- ./ post Comments --}} </div> <div class="col-12 col-lg-4"> @if(!empty($post->author) and !empty($post->author->full_name)) <div class="rounded-lg shadow-sm mt-35 p-20 course-teacher-card d-flex align-items-center flex-column"> <div class="teacher-avatar mt-5"> <img src="{{ $post->author->getAvatar(100) }}" class="img-cover" alt=""> </div> <h3 class="mt-10 font-20 font-weight-bold text-secondary">{{ $post->author->full_name }}</h3> @if(!empty($post->author->role)) <span class="mt-5 font-weight-500 font-14 text-gray">{{ $post->author->role->caption }}</span> @endif <div class="mt-25 d-flex align-items-center w-100"> <a href="/blog?author={{ $post->author->id }}" class="btn btn-sm btn-primary btn-block px-15">{{ trans('public.author_posts') }}</a> </div> </div> @endif {{-- categories --}} <div class="p-20 mt-30 rounded-sm shadow-lg border border-gray300"> <h3 class="category-filter-title font-16 font-weight-bold text-dark-blue">{{ trans('categories.categories') }}</h3> <div class="pt-15"> @foreach($blogCategories as $blogCategory) <a href="{{ $blogCategory->getUrl() }}" class="font-14 text-dark-blue d-block mt-15">{{ $blogCategory->title }}</a> @endforeach </div> </div> {{-- recent_posts --}} <div class="p-20 mt-30 rounded-sm shadow-lg border border-gray300"> <h3 class="category-filter-title font-20 font-weight-bold text-dark-blue">{{ trans('site.recent_posts') }}</h3> <div class="pt-15"> @foreach($popularPosts as $popularPost) <div class="popular-post d-flex align-items-start mt-20"> <div class="popular-post-image rounded"> <img src="{{ $popularPost->image }}" class="img-cover rounded" alt="{{ $popularPost->title }}"> </div> <div class="popular-post-content d-flex flex-column ml-10"> <a href="{{ $popularPost->getUrl() }}"> <h3 class="font-14 text-dark-blue">{{ truncate($popularPost->title,40) }}</h3> </a> <span class="mt-auto font-12 text-gray">{{ dateTimeFormat($popularPost->created_at, 'j M Y') }}</span> </div> </div> @endforeach <a href="/blog" class="btn btn-sm btn-primary btn-block mt-30">{{ trans('home.view_all') }} {{ trans('site.posts') }}</a> </div> </div> </div> </div> </section> @include('web.default.blog.share_modal') @endsection @push('scripts_bottom') <script> var webinarDemoLang = '{{ trans('webinars.webinar_demo') }}'; var replyLang = '{{ trans('panel.reply') }}'; var closeLang = '{{ trans('public.close') }}'; var saveLang = '{{ trans('public.save') }}'; var reportLang = '{{ trans('panel.report') }}'; var reportSuccessLang = '{{ trans('panel.report_success') }}'; var messageToReviewerLang = '{{ trans('public.message_to_reviewer') }}'; var copyLang = '{{ trans('public.copy') }}'; var copiedLang = '{{ trans('public.copied') }}'; </script> <script src="/assets/default/js/parts/comment.min.js"></script> <script src="/assets/default/js/parts/blog.min.js"></script> @endpush
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.84 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285