File Manager Lite
Dir:
/home/codewavebd/public_html/resources/views/frontend/blog
Upload
[..]
index.blade.php (3.17 KB)
Edit
Rename
Del
show.blade.php (3.84 KB)
Edit
Rename
Del
Edit: show.blade.php
@extends('layouts.frontend') @section('seo_title', $post->seo_title ?? ($post->title . ' | CodeWave Blog')) @section('seo_description', $post->seo_meta_description ?? $post->short_description) @section('seo_keywords', $post->seo_keywords) @section('schemas') <!-- Breadcrumb Schema --> <script type="application/ld+json"> { "@@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Home", "item": "{{ url('/') }}" },{ "@type": "ListItem", "position": 2, "name": "Blog", "item": "{{ url('/blog') }}" },{ "@type": "ListItem", "position": 3, "name": "{{ $post->title }}", "item": "{{ request()->url() }}" }] } </script> @endsection @section('content') <!-- Hero Header --> <section class="case-study-hero"> <div class="container"> <!-- Breadcrumbs --> <nav aria-label="breadcrumb" class="mb-4"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="{{ route('home') }}" class="text-info text-decoration-none">Home</a></li> <li class="breadcrumb-item"><a href="{{ route('blog.index') }}" class="text-info text-decoration-none">Blog</a></li> <li class="breadcrumb-item active text-white" aria-current="page">{{ Str::limit($post->title, 30) }}</li> </ol> </nav> <span class="badge bg-secondary border border-info rounded-pill px-3 py-2 text-info uppercase tracking-wider mb-3 small"> Author Article </span> <h1 class="display-4 font-heading fw-bold text-white mb-3">{{ $post->title }}</h1> <p class="text-secondary small mb-0"> <i class="bi bi-person-fill text-info me-1"></i> By {{ $post->author_name }} • <i class="bi bi-calendar-event-fill text-info mx-1"></i> Published: {{ $post->published_at ? $post->published_at->format('M d, Y') : $post->created_at->format('M d, Y') }} </p> </div> </section> <!-- Content --> <section class="py-5"> <div class="container py-3"> <div class="row g-5"> <!-- Article Body --> <div class="col-lg-8 case-study-content"> @if($post->image) <img src="{{ asset('uploads/' . $post->image) }}" class="img-fluid rounded-4 mb-5 w-100" style="max-height: 400px; object-fit: cover;" alt="{{ $post->title }}" loading="lazy"> @endif <div class="text-secondary fs-6 text-article" style="line-height: 1.8;"> {!! $post->content !!} </div> </div> <!-- Sidebar --> <div class="col-lg-4"> <!-- Recent Articles --> <div class="glass-card p-4 border-info position-sticky" style="top: 100px;"> <h5 class="font-heading text-white border-bottom border-secondary pb-3 mb-3">Recent Articles</h5> <div class="list-group list-group-flush"> @forelse($recentPosts as $recent) <a href="{{ route('blog.show', $recent->slug) }}" class="list-group-item list-group-item-action bg-transparent border-0 text-secondary py-2 d-block"> <span class="text-info small d-block mb-1">{{ $recent->published_at ? $recent->published_at->format('M d, Y') : $recent->created_at->format('M d, Y') }}</span> <h6 class="mb-0 text-white font-heading text-truncate">{{ $recent->title }}</h6> </a> @empty <p class="text-muted small">No other recent posts found.</p> @endforelse </div> </div> </div> </div> </div> </section> @endsection
Simpan