T14: Service Edit Page Layout + Routing
- ServiceController::edit() with eager-loaded relationships
- Services/Edit.vue with 4 collapsible accordion blocks
- Route: GET /services/{service}/edit
- Information slides query: global + service-specific with expire_date filtering
- Tests: 2 new (edit page render + auth guard)
T15: Information Block (Slides + Expire Dates)
- InformationBlock.vue with dynamic expire_date filtering
- Shows slides where type='information' AND expire_date >= service.date
- Global visibility across services (not service-specific)
- SlideUploader with showExpireDate=true
- SlideGrid with prominent expire date + inline editing
- Badge showing slide count + 'expiring soon' warning (within 3 days)
- Tests: 7 new (105 assertions)
T16: Moderation Block (Service-Specific)
- ModerationBlock.vue (service-specific slides)
- Filters: type='moderation' AND service_id = current_service
- No expire date field (unlike Information block)
- Service isolation (slides from Service A don't appear in Service B)
- Tests: 5 new (14 assertions)
T17: Sermon Block (Service-Specific)
- SermonBlock.vue (identical to Moderation but type='sermon')
- Service-specific slides, no expire date
- Tests: 5 new (14 assertions)
T18: Songs Block (Matching + Arrangement + Translation)
- SongsBlock.vue with conditional UI (unmatched vs matched states)
- Unmatched: 'Erstellung anfragen' button + searchable select for manual assign
- Matched: ArrangementConfigurator + translation checkbox + preview/download buttons
- ServiceSongController::update() for use_translation and song_arrangement_id
- ArrangementConfigurator emits 'arrangement-selected' for auto-save
- ServiceController::edit() provides songsCatalog for matching search
- Tests: 2 new (45 assertions)
T19: Song PDF (INCOMPLETE - timeout)
- SongPdfController.php created (partial)
- resources/views/pdf/song.blade.php created (partial)
- SongPreviewModal.vue MISSING
- Tests MISSING
- Will be completed in next commit
All tests passing: 124/124 (703 assertions)
Build: ✓ Vite production build successful
German UI: All user-facing text in German with 'Du' form
Dependencies: barryvdh/laravel-dompdf added for PDF generation
118 lines
3 KiB
PHP
118 lines
3 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<style>
|
|
/* CRITICAL: Old-school CSS only — NO Tailwind. DomPDF requires simple CSS. */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'DejaVu Sans', sans-serif;
|
|
font-size: 11pt;
|
|
color: #1a1a1a;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.header {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 2px solid #333333;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 18pt;
|
|
font-weight: bold;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.header .arrangement-name {
|
|
font-size: 11pt;
|
|
color: #666666;
|
|
}
|
|
|
|
.group-section {
|
|
margin-bottom: 16px;
|
|
page-break-inside: avoid;
|
|
}
|
|
|
|
.group-header {
|
|
padding: 4px 10px;
|
|
margin-bottom: 6px;
|
|
font-size: 10pt;
|
|
font-weight: bold;
|
|
color: #ffffff;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.slide {
|
|
margin-bottom: 10px;
|
|
padding-left: 10px;
|
|
}
|
|
|
|
.slide-text {
|
|
white-space: pre-wrap;
|
|
font-size: 11pt;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.slide-translation {
|
|
white-space: pre-wrap;
|
|
font-size: 10pt;
|
|
font-style: italic;
|
|
color: #555555;
|
|
line-height: 1.5;
|
|
margin-top: 4px;
|
|
padding-left: 10px;
|
|
border-left: 2px solid #cccccc;
|
|
}
|
|
|
|
.copyright-footer {
|
|
margin-top: 30px;
|
|
padding-top: 10px;
|
|
border-top: 1px solid #cccccc;
|
|
font-size: 8pt;
|
|
color: #888888;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="header">
|
|
<h1>{{ $song->title }}</h1>
|
|
<div class="arrangement-name">Arrangement: {{ $arrangement->name }}</div>
|
|
</div>
|
|
|
|
@foreach ($groupsInOrder as $group)
|
|
<div class="group-section">
|
|
<div class="group-header" style="background-color: {{ $group['color'] }};">
|
|
{{ $group['name'] }}
|
|
</div>
|
|
|
|
@foreach ($group['slides'] as $slide)
|
|
<div class="slide">
|
|
<div class="slide-text">{{ $slide['text_content'] }}</div>
|
|
|
|
@if (!empty($slide['text_content_translated']))
|
|
<div class="slide-translation">{{ $slide['text_content_translated'] }}</div>
|
|
@endif
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
@endforeach
|
|
|
|
@if ($song->copyright_text)
|
|
<div class="copyright-footer">
|
|
© {{ $song->copyright_text }}
|
|
@if ($song->ccli_id)
|
|
· CCLI {{ $song->ccli_id }}
|
|
@endif
|
|
</div>
|
|
@endif
|
|
</body>
|
|
</html>
|