Deploy to Production (witstore.wende.it) / deploy (push) Successful in 7s
- E-Mail-Templates: DB-gespeicherte HTML-Templates mit {{placeholder}}-System,
Admin-UI zum Bearbeiten von Betreff und Body, alle 4 Mailables aktualisiert
- Seiten-Layouts: 4 Layouts für CMS-Seiten (Standard, Sidebar, Volle Breite, Landing),
Layout-Auswahl im Admin-Formular
- Shop-Themes: 5 Farbthemen via CSS-Variablen, Picker in Einstellungen
- Deployment: EmailTemplateSeeder wird automatisch beim Deploy ausgeführt
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
40 lines
1.3 KiB
PHP
40 lines
1.3 KiB
PHP
{{-- Kategorien --}}
|
|
@php
|
|
$sidebarCats = \App\Models\Category::whereNull('parent_id')->where('active', true)->orderBy('sort_order')->get();
|
|
$sidebarBlogPages = \App\Models\Page::where('type','blog')->where('published',true)->orderByDesc('published_at')->limit(5)->get();
|
|
@endphp
|
|
|
|
@if($sidebarCats->count())
|
|
<div class="bg-white rounded shadow p-4">
|
|
<h3 class="font-semibold mb-3 text-gray-800">Kategorien</h3>
|
|
<ul class="space-y-1">
|
|
@foreach($sidebarCats as $cat)
|
|
<li>
|
|
<a href="{{ route('shop.category', $cat->slug) }}"
|
|
class="block px-2 py-1.5 rounded text-sm text-gray-700 hover-primary transition">
|
|
{{ $cat->name }}
|
|
</a>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
|
|
@if($sidebarBlogPages->count())
|
|
<div class="bg-white rounded shadow p-4">
|
|
<h3 class="font-semibold mb-3 text-gray-800">Aktuelle Beiträge</h3>
|
|
<ul class="space-y-3">
|
|
@foreach($sidebarBlogPages as $bp)
|
|
<li>
|
|
<a href="{{ route('page', $bp->slug) }}" class="text-sm text-primary hover:underline">
|
|
{{ $bp->title }}
|
|
</a>
|
|
@if($bp->published_at)
|
|
<p class="text-xs text-gray-400">{{ $bp->published_at->format('d.m.Y') }}</p>
|
|
@endif
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|