Initial Commit

This commit is contained in:
2026-01-07 15:46:00 +01:00
commit 7133af82e3
1454 changed files with 362274 additions and 0 deletions

View File

@@ -0,0 +1,228 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
@yield('meta_tags')
<link rel="shortcut icon" href="/images/site/{{ isset(settings()->site_favicon) ? settings()->site_favicon : '' }}"
type="image/x-icon">
<link rel="icon" type="image/png" sizes="32x32"
href="/images/site/{{ isset(settings()->site_favicon) ? settings()->site_favicon : '' }}">
<link rel="icon" href="/images/site/{{ isset(settings()->site_favicon) ? settings()->site_favicon : '' }}"
type="image/x-icon">
<link rel="stylesheet" href="/front/plugins/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="/front/css/animate.min.css">
<link rel="stylesheet" href="/front/plugins/themify-icons/themify-icons.css">
<link rel="stylesheet" href="/front/plugins/slick/slick.css">
<link rel="stylesheet" href="/front/css/style.css">
@stack('stylesheets')
@yield('head')
@yield('structured_data')
</head>
<body>
<!-- navigation -->
<header class="sticky-top bg-white border-bottom border-default">
<div class="container-fluid">
<nav class="navbar navbar-expand-lg navbar-white">
<a class="navbar-brand" href="/">
<img class="img-fluid" width="150px"
src="/images/site/{{ isset(settings()->site_logo) ? settings()->site_logo : '' }}"
alt="{{ isset(settings()->site_title) ? settings()->site_title : '' }}">
</a>
<button class="navbar-toggler border-0" type="button" data-toggle="collapse" data-target="#navigation">
<i class="ti-menu"></i>
</button>
<div class="collapse navbar-collapse text-center" id="navigation">
<ul class="navbar-nav mx-auto">
<li class="nav-item">
<a class="nav-link" href="/">Home</a>
</li>
<!-- <li class="nav-item">
<a class="nav-link" href="about.html">About</a>
</li> -->
{!! navigations() !!}
<li class="nav-item">
<a class="nav-link" href="{{ route('contact') }}">Kontakt</a>
</li>
</ul>
<!-- search -->
<div class="search px-4">
<button id="searchOpen" class="search-btn"><i class="ti-search"></i></button>
<div class="search-wrapper">
<form action="{{ route('search_posts') }}" method="GET" class="h-100">
<input class="search-box pl-4" id="search-query" name="q" type="search"
placeholder="Gib ein wonach du suchst zb. discover articles, guide &amp; tutorials... "
value="{{ request('q') ? request('q') : '' }}">
</form>
<button id="searchClose" class="search-close"><i class="ti-close text-dark"></i></button>
</div>
</div>
<!-- /search -->
<!-- User Details + DropDown -->
@auth
<div class="user-details">
<img src="{{ auth()->user()->picture }}" alt="User Avatar" />
<div class="user-dropdown">
<a href="{{ route('admin.dashboard') }}">
<i class="ti-dashboard">Dashboard</i>
</a>
<a href="{{ route('admin.profile') }}">
<i class="ti-user">Profile</i>
</a>
@if (auth()->user()->type == 'superAdmin')
<a href="{{ route('admin.settings') }}">
<i class="ti-settings">Einstellungen</i>
</a>
@endif
<form id="front-logout-form" action="{{ route('admin.logout', ['source' => 'front']) }}"
method="POST" style="display:none;">
@csrf
</form>
<a href="javascript:;"
onclick="event.preventDefault();document.getElementById('front-logout-form').submit();">
<i class="ti-power-off">Ausloggen</i>
</a>
</div>
</div>
@endauth
<!-- /User Details + DropDown -->
</div>
</nav>
</div>
</header>
<!-- /navigation -->
<section class="section">
<div class="container">
@yield('content')
</div>
</section>
<footer class="section-sm pb-0 border-top border-default">
<div class="container">
<div class="row justify-content-between">
<div class="col-md-3 mb-4">
<a class="mb-4 d-block" href="#">
<img class="img-fluid" width="150px"
src="/images/site/{{ isset(settings()->site_logo) ? settings()->site_logo : '' }}"
alt="{{ isset(settings()->site_title) ? settings()->site_title : '' }}">
</a>
<p>{{ isset(settings()->site_meta_description) ? settings()->site_meta_description : '' }}</p>
</div>
<div class="col-lg-2 col-md-3 col-6 mb-4">
<h6 class="mb-4">Quick Links</h6>
<ul class="list-unstyled footer-list">
<li><a href="{{ route('contact') }}">Kontakt</a></li>
<!--
<li><a href="privacy-policy.html">Privacy Policy</a></li>
<li><a href="terms-conditions.html">Terms Conditions</a></li> -->
</ul>
</div>
<div class="col-lg-2 col-md-3 col-6 mb-4">
<h6 class="mb-4">Social Links</h6>
<ul class="list-unstyled footer-list">
@if (site_social_links()?->facebook_url)
<li><a href="{{ site_social_links()->facebook_url }}" target="_blank">Facebook</a></li>
@endif
@if (site_social_links()?->twitter_url)
<li><a href="{{ site_social_links()->twitter_url }}" target="_blank">Twitter</a></li>
@endif
@if (site_social_links()?->instagram_url)
<li><a href="{{ site_social_links()->instagram_url }}" target="_blank">Instagram</a></li>
@endif
@if (site_social_links()?->linkedin_url)
<li><a href="{{ site_social_links()->linkedin_url }}" target="_blank">Linkedin</a></li>
@endif
</ul>
</div>
<div class="col-md-3 mb-4">
<h6 class="mb-4">Newsletter abonnieren</h6>
@livewire('newsletter-form')
</div>
</div>
<div class="scroll-top">
<a href="#top" id="scrollTop"><i class="ti-angle-up"></i></a>
</div>
<div class="text-center">
<p class="content">&copy; 2026 - Design by SawaStacks &amp; Develop By MagicPotter</p>
</div>
</div>
</footer>
<script src="/front/plugins/jQuery/jquery.min.js"></script>
<script src="/front/plugins/bootstrap/bootstrap.min.js" async></script>
<script src="/front/plugins/slick/slick.min.js"></script>
<script src="/front/js/script.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script>
toastr.options = {
"closeButton": true,
"newestOnTop": false,
"progressBar": true,
"positionClass": "toast-bottom-right",
"preventDuplicates": false,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"timeOut": "5000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
};
window.addEventListener("showToastr", function(event) {
const payload = Array.isArray(event.detail) ? event.detail[0] : event.detail;
if (!payload) return;
const {
type,
message
} = payload;
const Toast = Swal.mixin({
toast: true,
position: "bottom-end",
showConfirmButton: false,
timer: 3000,
timerProgressBar: true,
didOpen: (toast) => {
toast.onmouseenter = Swal.stopTimer;
toast.onmouseleave = Swal.resumeTimer;
}
});
Toast.fire({
icon: type || "info",
title: message || ""
});
});
</script>
<script>
document.querySelector('.user-details').addEventListener('click', function() {
this.classList.toggle('active');
});
document.addEventListener('click', function(e) {
const userDetails = document.querySelector('.user-details');
if (!userDetails.contains(e.target)) {
userDetails.classList.remove('active');
}
});
</script>
@stack('scripts')
</body>
</html>

View File

@@ -0,0 +1,92 @@
@extends('front.layout.pages-layout')
@section('pageTitle', isset($pageTitle) ? $pageTitle : 'Document Title')
@section('head')
<meta name="robots" content="noindex,follow">
@endsection
@section('meta_tags')
{!! SEO::generate() !!}}
@endsection
@section('content')
<section class="section-sm border-bottom pb-3 pt-3">
<div class="container">
<!-- Author Profile -->
<div class="author-card">
<img src="{{ $author->picture }}" alt="Author's Photo">
<h3 class="mt-3 title-color">{{ $author->name }}</h3>
<p> {{ $author->username }}</p>
<p>{{ $author->bio }}</p>
<!-- Social Links -->
@if ($author->social_links)
<div class="social-links mt-3">
@if ($author->social_links->github_url)
<a href="{{ $author->social_links->github_url }}" target="_blank" title="GitHub"><i
class="ti-github"></i></a>
@endif
@if ($author->social_links->youtube_url)
<a href="{{ $author->social_links->youtube_url }}" target="_blank" title="Youtube"><i
class="ti-youtube"></i></a>
@endif
@if ($author->social_links->facebook_url)
<a href="{{ $author->social_links->facebook_url }}" target="_blank" title="Facebook"><i
class="ti-facebook"></i></a>
@endif
@if ($author->social_links->linkedin_url)
<a href="{{ $author->social_links->linkedin_url }}" target="_blank" title="LinkedIn"><i
class="ti-linkedin"></i></a>
@endif
@if ($author->social_links->twitter_url)
<a href="{{ $author->social_links->twitter_url }}" target="_blank" title="Twitter"><i
class="ti-twitter"></i></a>
@endif
@if ($author->social_links->instagram_url)
<a href="{{ $author->social_links->instagram_url }}" target="_blank" title="Instagram"><i
class="ti-instagram"></i></a>
@endif
</div>
@endif
</div>
<!-- Author's Posts -->
</div>
</section>
<section class="section-sm mt-0 pt-4">
<div class="container">
<div class="row">
@forelse ($posts as $post)
<div class="col-sm-6 col-md-4 col-lg-3 mb-2">
<article class="mb-2">
<div class="mb-2">
<img src="/images/posts/resized/resized_{{ $post->featured_image }}" alt="featured_image"
class="img-fluid rounded-lg">
</div>
<h5>
<a class="post-title" href="{{ route('read_post', $post->slug) }}">
{{ $post->title }}
</a>
</h5>
<ul class="list-inline post-meta mb-2">
<li class="list-inline-item">Datum : {{ date_formatter($post->created_at) }}</li>
<li class="list-inline-item">Kategorie : <a
href="{{ route('category_posts', $post->post_category->slug) }}"
class="ml-1">{{ $post->post_category->name }} </a>
</li>
</ul>
</article>
</div>
@empty
<div class="col-span-12">
<div class="text-danger text-center">
Dieser Author hat keine Posts
</div>
</div>
@endforelse
</div>
<div class="pagination-block">
{{ $posts->appends(request()->input())->links('custom_pagination') }}
</div>
</div>
</section>
@endsection

View File

@@ -0,0 +1,45 @@
@extends('front.layout.pages-layout')
@section('pageTitle', isset($pageTitle) ? $pageTitle : 'Document Title')
@section('head')
<meta name="robots" content="noindex,follow">
@endsection
@section('meta_tags')
{!! SEO::generate() !!}
@endsection
@section('content')
<div class="w-full mb-3">
<h3 class="title-color">{{ $pageTitle }}</h3>
</div>
@if ($posts->count())
<div class="row">
@foreach ($posts as $post)
<div class="col-sm-6 col-md-4 col-lg-3 mb-2">
<article class="mb-2">
<div class="mb-2">
<img src="/images/posts/resized/resized_{{ $post->featured_image }}" alt="category_image"
class="img-fluid rounded-lg" />
</div>
<h5>
<a class="post-title" href="{{ route('read_post', $post->slug) }}">
{{ $post->title }}
</a>
</h5>
<ul class="list-inline post-meta mb-2">
<li class="list-inline-item">Date: {{ date_formatter($post->created_at) }}</li>
<li class="list-inline-item">Kategorie: <a
href="{{ route('category_posts', $post->post_category->slug) }}"
class="ml-1">{{ $post->post_category->name }}</a> </li>
</ul>
</article>
</div>
@endforeach
</div>
@else
<p><span class="text-danger">Keine Posts in dieser Kategorie gefunden</span></p>
@endif
<div class="pagination-block">
{{ $posts->appends(request()->input())->links('custom_pagination') }}
</div>
@endsection

View File

@@ -0,0 +1,101 @@
@extends('front.layout.pages-layout')
@section('pageTitle', isset($pageTitle) ? $pageTitle : 'Document Title')
@section('meta_tags')
{!! SEO::generate() !!}}
@endsection
@section('content')
<section class="section">
<div class="container">
<div class="row">
<div class="col-12">
<div class="mb-5 d-flex align-items-center">
<h3 class="title-color">Kontaktieren Sie uns</h3>
<ul class="list-inline social-icons ml-auto mr-3 d-none d-sm-block">
@if (site_social_links()->facebook_url)
<li class="list-inline-item">
<a href="{{ site_social_links()->facebook_url }}" target="_blank">
<i class="ti-facebook"></i>
</a>
</li>
@endif
@if (site_social_links()->twitter_url)
<li class="list-inline-item">
<a href="{{ site_social_links()->twitter_url }}" target="_blank">
<i class="ti-twitter-alt"></i>
</a>
</li>
@endif
@if (site_social_links()->linkedin_url)
<li class="list-inline-item">
<a href="{{ site_social_links()->linkedin_url }}" target="_blank">
<i class="ti-linkedin"></i>
</a>
</li>
@endif
@if (site_social_links()->instagram_url)
<li class="list-inline-item">
<a href="{{ site_social_links()->instagram_url }}" target="_blank">
<i class="ti-instagram"></i>
</a>
</li>
@endif
</ul>
</div>
</div>
<div class="col-md-6">
<div class="content mb-5">
<h4>Wir freuen uns auf Ihre Nachricht</h4>
<p>Wir freuen uns auf Ihre Nachricht
Haben Sie Fragen, Anregungen oder Feedback? Zögern Sie nicht, uns zu kontaktieren. Wir helfen
Ihnen gerne weiter und melden uns so schnell wie möglich bei Ihnen.</p>
@if (settings()->site_email != '')
<h4 class="mt-5">Sie mögen keine Formulare? Schreiben Sie uns direkt per E-Mail</h4>
<p><i class="ti-email mr-2 text-primary"></i><a
href="mailto:{{ settings()->site_email }}">{{ settings()->site_email }}</a>
</p>
@endif
</div>
</div>
<div class="col-md-6">
<form method="POST" action="{{ route('send_email') }}">
@csrf
<x-form-alerts></x-form-alerts>
<div class="form-group">
<label for="name"><b class="title-color">Ihr Name</b> (Required):</label>
<input type="text" name="name" id="name" class="form-control"
value="{{ old('name') }}" placeholder="eg: William Woods" />
@error('name')
<span class="text-danger ml-1">{{ $message }}</span>
@enderror
</div>
<div class="form-group">
<label for="email"> <b class="title-color">Ihre Email Addresse</b> (Required): </label>
<input type="email" name="email" id="email" class="form-control"
value="{{ old('email') }}" placeholder="eg: williamwoods@example.com" />
@error('email')
<span class="text-danger ml-1">{{ $message }}</span>
@enderror
</div>
<div class="form-group">
<label for="subject"><b class="title-color">Titel</b>: (Required):</label>
<input type="text" name="subject" id="subject" class="form-control"
value="{{ old('subject') }}" placeholder="eg: Advertising" />
@error('subject')
<span class="text-danger ml-1">{{ $message }}</span>
@enderror
</div>
<div class="form-group">
<label for="message"><b class="title-color">Ihre Nachricht</b>: (Required):</label>
<textarea name="message" id="message" class="form-control">{{ old('message') }}</textarea>
@error('message')
<span class="text-danger ml-1">{{ $message }}</span>
@enderror
</div>
<button type="submit" class="btn btn-primary">Absenden</button>
</form>
</div>
</div>
</div>
</section>
@endsection

View File

@@ -0,0 +1,9 @@
@extends('front.layout.pages-layout')
@section('pageTitle', isset($pageTitle) ? $pageTitle : 'Document Title')
@section('meta_tags')
{!! SEO::generate() !!}}
@endsection
@section('content')
-- Page Content
@endsection

View File

@@ -0,0 +1,144 @@
@extends('front.layout.pages-layout')
@section('pageTitle', isset($pageTitle) ? $pageTitle : 'Document Title')
@section('meta_tags')
{!! SEO::generate() !!}}
@endsection
@section('content')
<div class="row">
<div class="col-lg-8 mb-5 mb-lg-0">
<article class="row mb-5">
@if (!empty(get_slides()))
<div class="col-12">
<div class="post-slider">
@foreach (get_slides() as $slide)
<div class="slider-item">
<img fetchpriority="high" decoding="async" src="/images/slides/{{ $slide->image }}"
class="img-fluid" alt="post-thumb">
<div class="slider-content">
@if ($slide->link)
<a href="{{ $slide->link }}">
<h2 class="animate__animated">{{ $slide->heading }}</h2>
</a>
@else
<h2 class="animate__animated">{{ $slide->heading }}</h2>
@endif
</div>
</div>
@endforeach
</div>
</div>
@endif
@if (!empty(latest_posts(0, 1)))
@foreach (latest_posts(0, 1) as $post)
<div class="col-12 mx-auto">
<h3>
<a class="post-title" href="{{ route('read_post', $post->slug) }}">
{{ $post->title }}
</a>
</h3>
<ul class="list-inline post-meta mb-4">
<li class="list-inline-item"><i class="ti-user mr-1"></i>
<a
href="{{ route('author_posts', $post->author->username) }}">{{ $post->author->name }}</a>
</li>
<li class="list-inline-item"><i
class="ti-calendar mr-1"></i>{{ date_formatter($post->created_at) }}</li>
<li class="list-inline-item">Category : <a
href="{{ route('category_posts', $post->post_category->slug) }}" class="ml-1">Web
{{ $post->post_category->name }}
</a>
</li>
<li class="list-inline-item"><i class="ti-timer mr-1"></i>
{{ readDuration($post->title, $post->content) }} @choice('min|mins', readDuration($post->title, $post->content))
</li>
</ul>
<p>
{!! Str::ucfirst(words($post->content, 45)) !!}
</p>
<a href="{{ route('read_post', $post->slug) }}" class="btn btn-outline-primary">Read
more...</a>
</div>
@endforeach
@endif
</article>
<section id="home__latest-posts">
@if (!empty(latest_posts(1, 3)))
@foreach (latest_posts(1, 3) as $post)
<article class="row mb-5">
<div class="col-md-4 mb-4 mb-md-0">
<div class="post-img-box">
<img src="/images/posts/resized/resized_{{ $post->featured_image }}"
class="img-fluid rounded-lg" alt="post-thumb">
</div>
</div>
<div class="col-md-8">
<h4>
<a class="post-title" href="{{ route('read_post', $post->slug) }}">
{{ $post->title }}
</a>
</h4>
<ul class="list-inline post-meta mb-2">
<li class="list-inline-item"><i class="ti-user mr-2"></i><a
href="{{ route('author_posts', $post->author->username) }}">{{ $post->author->name }}</a>
</li>
<li class="list-inline-item">{{ date_formatter($post->created_at) }}</li>
<li class="list-inline-item">Kategorie : <a
href="{{ route('category_posts', $post->post_category->slug) }}"
class="ml-1">{{ $post->post_category->name }} </a>
</li>
<li class="list-inline-item"><i class="ti-timer mr-1"></i>
{{ readDuration($post->title, $post->content) }} @choice('min|mins', readDuration($post->title, $post->content))
</li>
</ul>
<p>
{!! Str::ucfirst(words($post->content, 30)) !!}
</p>
<a href="{{ route('read_post', $post->slug) }}" class="btn btn-outline-primary">Read
more...</a>
</div>
</article>
@endforeach
@endif
</section>
</div>
<aside class="col-lg-4">
<!-- Search -->
<x-sidebar-search></x-sidebar-search>
<!-- categories -->
<x-sidebar-categories></x-sidebar-categories>
<!-- tags -->
<x-sidebar-tags></x-sidebar-tags>
<!-- latest post -->
<div class="widget">
<h5 class="widget-title"><span>Letzte Post</span></h5>
<!-- post-item -->
@foreach (sidebar_latest_posts(4) as $item)
<ul class="list-unstyled widget-list">
<li class="media widget-post align-items-center">
<a href="{{ route('read_post', $item->slug) }}">
<img loading="lazy" class="mr-3" alt="post-thumb"
src="/images/posts/resized/thumb_{{ $post->featured_image }}">
</a>
<div class="media-body">
<h6 class="mb-0">
<a href="{{ route('read_post', $item->slug) }}">{{ $item->title }}</a>
</h6>
<small>{{ date_formatter($post->created_at) }}</small>
</div>
</li>
</ul>
@endforeach
</div>
<a href="https://www.checkout-ds24.com/product/614053?aff=MagicPotter"
class="ad-banner d-flex align-items-center justify-content-center">
<span class="ad-text">Jetzt klicken</span>
</a>
</aside>
</div>
@endsection

View File

@@ -0,0 +1,95 @@
@extends('front.layout.pages-layout')
@section('pageTitle', isset($pageTitle) ? $pageTitle : 'Document Title')
@section('meta_tags')
{!! SEO::generate() !!}}
@endsection
@section('content')
<div class="d-flex align-items-center mb-3">
<h4 class="title-color">Suche nach:</h4>
<span class="ml-2">{{ $query }}</span>
</div>
<div class="row">
<div class="col-lg-8 mb-5 mb-lg-0">
<div class="col-12 mb-5 mb-lg-0">
@forelse ($posts as $post)
<article class="row mb-5">
<div class="col-md-4 mb-4 mb-md-0">
<div class="post-img-box">
<img src="/images/posts/resized/resized_{{ $post->featured_image }}"
class="img-fluid rounded-lg" alt="post-thumb">
</div>
</div>
<div class="col-md-8">
<h5>
<a class="post-title" href="{{ route('read_post', $post->slug) }}">
{{ $post->title }}
</a>
</h5>
<ul class="list-inline post-meta mb-2">
<li class="list-inline-item">
<i class="ti-user mr-1"></i><a
href="{{ route('author_posts', $post->author->username) }}">{{ $post->author->name }}</a>
</li>
<li class="list-inline-item">
<i class="ti-calendar mr-1"></i>{{ date_formatter($post->created_at) }}
</li>
<li class="list-inline-item">
Kategorie : <a href="{{ route('category_posts', $post->post_category->slug) }}"
class="ml-1">{{ $post->post_category->name }}</a>
</li>
<li class="list-inline-item"><i class="ti-timer mr-1"></i>
{{ readDuration($post->title, $post->content) }} @choice('min|mins', readDuration($post->title, $post->content))
</li>
</ul>
<p>
{!! Str::ucfirst(words($post->content, 45)) !!}
</p>
<a href="{{ route('read_post', $post->slug) }}" class="btn btn-outline-primary">Mehr
lesen...</a>
</div>
</article>
@empty
<div class="col-span-12">
<div class="text-danger text-center">
Keine Ergebnisse für diese Suche
</div>
</div>
@endforelse
</div>
<div class="pagination-block">
{{ $posts->appends(request()->input())->links('custom_pagination') }}
</div>
</div>
<aside class="col-lg-4">
<!-- Search -->
<x-sidebar-search></x-sidebar-search>
<!-- categories -->
<x-sidebar-categories></x-sidebar-categories>
<!-- tags -->
<x-sidebar-tags></x-sidebar-tags>
<!-- latest post -->
<div class="widget">
<h5 class="widget-title"><span>Letzte Posts</span></h5>
<!-- post-item -->
@foreach (sidebar_latest_posts() as $item)
<ul class="list-unstyled widget-list">
<li class="media widget-post align-items-center">
<a href="{{ route('read_post', $item->slug) }}">
<img loading="lazy" class="mr-3" alt="post-thumb"
src="/images/posts/resized/thumb_{{ $item->featured_image }}">
</a>
<div class="media-body">
<h6 class="mb-0">
<a href="{{ route('read_post', $item->slug) }}">{{ $item->title }}</a>
</h6>
<small>{{ date_formatter($item->created_at) }}</small>
</div>
</li>
</ul>
@endforeach
</div>
</aside>
</div>
@endsection

View File

@@ -0,0 +1,173 @@
@extends('front.layout.pages-layout')
@section('pageTitle', isset($pageTitle) ? $pageTitle : 'Document Title')
@section('meta_tags')
{!! SEO::generate() !!}}
@endsection
@section('structured_data')
@if (!empty($post->structured_data))
<script type="application/ld+json">
{!! $post->structured_data !!}
</script>
@endif
@endsection
@section('content')
<div class="row">
<div class="col-lg-8 mb-5 mb-lg-0">
<article class="row mb-4">
<div class="col-lg-12 mb-2">
<h2 class="mb-3">{{ $post->title }}</h2>
<ul class="list-inline post-meta">
<li class="list-inline-item"><i class="ti-user mr-2"></i><a
href="{{ route('author_posts', $post->author->username) }}">{{ $post->author->name }}</a>
</li>
<li class="list-inline-item">Datum : {{ date_formatter($post->created_at) }}</li>
<li class="list-inline-item">Kategorie : <a
href="{{ route('category_posts', $post->post_category->slug) }}"
class="ml-1">{{ $post->post_category->name }}</a>
</li>
<li class="list-inline-item"><i class="ti-timer mr-1"></i>
{{ readDuration($post->title, $post->content) }} @choice('min|mins', readDuration($post->title, $post->content))
</li>
</ul>
</div>
<div class="col-12 mb-3">
<img alt="single-image" src="/images/posts/{{ $post->featured_image }}" class="img-fluid rounded-lg">
</div>
<!-- SHARE BUTTONS -->
<div class="share-buttons">
<span class="title-color">Share: </span>
<a href="https://www.facebook.com/sharer/sharer.php?u={{ urlencode(route('read_post', $post->slug)) }}"
target="_blank" class="btn-facebook">
<i class="ti-facebook"></i>
</a>
<a href="https://twitter.com/intent/tweet?url={{ urlencode(route('read_post', $post->slug)) }}&text={{ urlencode($post->title) }}"
target="_blank" class="btn-twitter">
<i class="ti-twitter-alt"></i>
</a>
<a href="https://www.pinterest.com/pin/create/button?url={{ urlencode(route('read_post', $post->slug)) }}&description={{ urlencode($post->title) }}"
target="_blank" class="btn-pinterest">
<i class="ti-pinterest"></i>
</a>
<a href="mailto:?subject={{ urlencode('Schau dir das an: ' . $post->title) }}&body={{ urlencode('Schau dir diesen Post an: ' . route('read_post', $post->slug)) }}"
target="_blank" class="btn-email">
<i class="ti-email"></i>
</a>
</div>
<!-- SHARE BUTTONS -->
<div class="col-lg-12">
<div class="content">
<p>
{!! $post->content !!}
</p>
</div>
</div>
</article>
<div class="prev-next-posts mt-3 mb-3">
<div class="row justify-content-between p-4">
<div class="col-md-6 mb-2">
@if ($prevPost)
<div>
<h6>&laquo; Vorige</h6>
<a href="{{ route('read_post', $prevPost->slug) }}">{{ $prevPost->title }}</a>
</div>
@endif
</div>
<div class="col-md-6 mb-2 text-md-right">
@if ($nextPost)
<div>
<h6>Nächste &raquo;</h6>
<a href="{{ route('read_post', $nextPost->slug) }}">{{ $nextPost->title }}</a>
</div>
@endif
</div>
</div>
</div>
@if ($relatedPosts)
<section>
<h4>Relevante Posts</h4>
<hr>
@foreach ($relatedPosts as $related)
<article class="row mb-5 mt-4">
<div class="col-md-4 mb-4 mb-md-0">
<div class="post-img-box">
<img src="/images/posts/resized/thumb_{{ $related->featured_image }}"
class="img-fluid rounded-lg" alt="post-thumb">
</div>
</div>
<div class="col-md-8">
<h4>
<a class="post-title" href="{{ route('read_post', $related->slug) }}">
{{ $related->title }}
</a>
</h4>
<ul class="list-inline post-meta mb-2">
<li class="list-inline-item">
<i class="ti-user mr-1"></i><a
href="{{ route('author_posts', $post->author->username) }}">{{ $related->author->name }}</a>
</li>
<li class="list-inline-item">
<i class="ti-calendar mr-1"></i>{{ date_formatter($related->created_at) }}
</li>
<li class="list-inline-item">
Kategorie : <a href="{{ route('category_posts', $related->post_category->slug) }}"
class="ml-1">{{ $related->post_category->name }}</a>
</li>
<li class="list-inline-item"><i class="ti-timer mr-1"></i>
{{ readDuration($post->title, $post->content) }} @choice('min|mins', readDuration($related->title, $related->content))
</li>
</ul>
{!! Str::ucfirst(words($related->content, 28)) !!}
<a href="{{ route('read_post', $related->slug) }}" class="btn btn-outline-primary">Mehr
lesen...</a>
</div>
</article>
@endforeach
</section>
@endif
</div>
<aside class="col-lg-4">
<!-- Search -->
<x-sidebar-search></x-sidebar-search>
<!-- categories -->
<x-sidebar-categories></x-sidebar-categories>
<!-- tags -->
<x-sidebar-tags></x-sidebar-tags>
<!-- latest post -->
<div class="widget">
<h5 class="widget-title"><span>Letzte Post</span></h5>
<!-- post-item -->
@foreach (sidebar_latest_posts(4, $post->id) as $item)
<ul class="list-unstyled widget-list">
<li class="media widget-post align-items-center">
<a href="{{ route('read_post', $item->slug) }}">
<img loading="lazy" class="mr-3" alt="post-thumb"
src="/images/posts/resized/thumb_{{ $item->featured_image }}">
</a>
<div class="media-body">
<h6 class="mb-0">
<a href="{{ route('read_post', $item->slug) }}">{{ $item->title }}</a>
</h6>
<small>{{ date_formatter($item->created_at) }}</small>
</div>
</li>
</ul>
@endforeach
</div>
</aside>
</div>
@endsection
@push('scripts')
<script>
$(document).on('click', '.share-buttons > a', function(e) {
e.preventDefault();
window.open($(this).attr('href'), '', 'height=450,width=450,top=' + ($(window).height() / 2 - 275) +
', left=' + ($(window).width() / 2 - 225) +
', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0');
return false;
});
</script>
@endpush

View File

@@ -0,0 +1,45 @@
@extends('front.layout.pages-layout')
@section('pageTitle', isset($pageTitle) ? $pageTitle : 'Document Title')
@section('head')
<meta name="robots" content="noindex,follow">
@endsection
@section('meta_tags')
{!! SEO::generate() !!}
@endsection
@section('content')
<div class="w-full mb-3">
<h3 class="title-color">{{ $pageTitle }}</h3>
</div>
@if ($posts->count())
<div class="row">
@foreach ($posts as $post)
<div class="col-sm-6 col-md-4 col-lg-3 mb-2">
<article class="mb-2">
<div class="mb-2">
<img src="/images/posts/resized/resized_{{ $post->featured_image }}" alt="tag-thumb"
class="img-fluid rounded-lg" />
</div>
<h5>
<a class="post-title" href="{{ route('read_post', $post->slug) }}">
{{ $post->title }}
</a>
</h5>
<ul class="list-inline post-meta mb-2">
<li class="list-inline-item">Datum: {{ date_formatter($post->created_at) }}</li>
<li class="list-inline-item">Kategorie: <a
href="{{ route('category_posts', $post->post_category->slug) }}"
class="ml-1">{{ $post->post_category->name }}</a> </li>
</ul>
</article>
</div>
@endforeach
</div>
@else
<p><span class="text-danger">Keine Posts mit diesen Tags gefunden</span></p>
@endif
<div class="pagination-block">
{{ $posts->appends(request()->input())->links('custom_pagination') }}
</div>
@endsection