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>
44 lines
1.7 KiB
PHP
44 lines
1.7 KiB
PHP
@extends('layouts.admin')
|
|
@section('title', 'E-Mail-Templates')
|
|
@section('content')
|
|
<div class="flex items-center justify-between mb-6">
|
|
<h2 class="text-xl font-bold">E-Mail-Templates</h2>
|
|
</div>
|
|
|
|
@if(session('success'))
|
|
<div class="bg-green-100 border border-green-300 text-green-800 px-4 py-3 rounded mb-4">{{ session('success') }}</div>
|
|
@endif
|
|
|
|
@if($templates->isEmpty())
|
|
<div class="bg-yellow-50 border border-yellow-200 text-yellow-800 px-4 py-3 rounded">
|
|
Keine Templates gefunden. Bitte führen Sie <code>php artisan db:seed --class=EmailTemplateSeeder</code> aus.
|
|
</div>
|
|
@else
|
|
<div class="bg-white rounded shadow overflow-hidden">
|
|
<table class="w-full text-sm">
|
|
<thead class="bg-gray-50 text-gray-600 uppercase text-xs">
|
|
<tr>
|
|
<th class="px-4 py-3 text-left">Template</th>
|
|
<th class="px-4 py-3 text-left">Betreff</th>
|
|
<th class="px-4 py-3 text-left">Zuletzt geändert</th>
|
|
<th class="px-4 py-3"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="divide-y divide-gray-100">
|
|
@foreach($templates as $tpl)
|
|
<tr class="hover:bg-gray-50">
|
|
<td class="px-4 py-3 font-medium">{{ $tpl->label }}</td>
|
|
<td class="px-4 py-3 text-gray-600 max-w-xs truncate">{{ $tpl->subject }}</td>
|
|
<td class="px-4 py-3 text-gray-500">{{ $tpl->updated_at->format('d.m.Y H:i') }}</td>
|
|
<td class="px-4 py-3 text-right">
|
|
<a href="{{ route('admin.email-templates.edit', $tpl) }}"
|
|
class="text-blue-600 hover:underline">Bearbeiten</a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
@endif
|
|
@endsection
|