Initial commit: WitShop Laravel Online-Shop
- Laravel 11, Blade, Alpine.js, Tailwind CSS - Produkt- & Kategorieverwaltung mit Varianten - Checkout (Vorkasse + Rechnung), Session-Warenkorb - Admin-Backend (Dashboard, Bestellungen, Kunden, CMS) - DSGVO-konform: Cookie-Consent, Impressum, Widerruf, AGB - PDF-Rechnung via dompdf, SMTP-Mailversand - Kundenverwaltung mit manueller Freischaltung Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
@extends('layouts.shop')
|
||||
@section('title', 'Blog')
|
||||
@section('content')
|
||||
<h1 class="text-3xl font-bold mb-8">Blog / Aktuelles</h1>
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||
@forelse($posts as $post)
|
||||
<a href="{{ route('blog.post', $post->slug) }}" class="block bg-white border rounded-lg overflow-hidden hover:shadow-md transition">
|
||||
@if($post->image)<img src="{{ asset('storage/'.$post->image) }}" class="w-full h-48 object-cover">@endif
|
||||
<div class="p-5">
|
||||
<p class="text-xs text-gray-400 mb-1">{{ $post->published_at?->format('d.m.Y') }}</p>
|
||||
<h2 class="font-semibold text-lg mb-2">{{ $post->title }}</h2>
|
||||
</div>
|
||||
</a>
|
||||
@empty
|
||||
<p class="col-span-2 text-gray-400 text-center py-16">Noch keine Beiträge.</p>
|
||||
@endforelse
|
||||
</div>
|
||||
<div class="mt-8">{{ $posts->links() }}</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,11 @@
|
||||
@extends('layouts.shop')
|
||||
@section('title', $post->meta_title ?: $post->title)
|
||||
@section('content')
|
||||
<div class="max-w-3xl mx-auto">
|
||||
<p class="text-sm text-gray-400 mb-2">{{ $post->published_at?->format('d.m.Y') }}</p>
|
||||
<h1 class="text-3xl font-bold mb-6">{{ $post->title }}</h1>
|
||||
@if($post->image)<img src="{{ asset('storage/'.$post->image) }}" class="w-full rounded-lg mb-6">@endif
|
||||
<div class="prose max-w-none text-gray-700">{!! $post->content !!}</div>
|
||||
<div class="mt-8"><a href="{{ route('blog') }}" class="text-blue-600 hover:underline">← Zurück zum Blog</a></div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user