54 lines
2.0 KiB
PHP
54 lines
2.0 KiB
PHP
{{-- Shared b/w call card partial — used by both pdf-a4-bw and pdf-bulk-bw --}}
|
|
{{-- Expects all variables from buildCallPdfData() plus CSS classes from parent view --}}
|
|
|
|
<div class="logo-area">
|
|
@if($logoBase64)
|
|
<img src="{{ $logoBase64 }}" alt="{{ config('app.name') }}">
|
|
@else
|
|
<div class="app-name">{{ config('app.name') }}</div>
|
|
@endif
|
|
</div>
|
|
|
|
<div class="categories">
|
|
@foreach($tagCategories as $cat)
|
|
<div class="badge-row"><span class="category-badge">{{ $cat['name'] }}</span></div>
|
|
@endforeach
|
|
@if($callLocation)
|
|
<div class="badge-row"><span class="location-badge">{{ $callLocation }}</span></div>
|
|
@endif
|
|
@if($expiryBadgeText)
|
|
<div class="badge-row"><span class="location-badge">{{ $expiryBadgeText }}</span></div>
|
|
@endif
|
|
</div>
|
|
|
|
<div class="title">
|
|
@if($isDeleted)<span class="status-label">{{ $statusLabelDeleted }}: </span>
|
|
@elseif($call->is_suppressed)<span class="status-label">{{ $statusLabelBlocked }}: </span>
|
|
@elseif($call->is_paused)<span class="status-label">{{ $statusLabelPaused }}: </span>
|
|
@elseif($isExpired)<span class="status-label">{{ $statusLabelExpired }}: </span>
|
|
@endif{{ $call->tag?->translation?->name ?? $call->tag?->name }}
|
|
</div>
|
|
|
|
@if($callContent)
|
|
<div class="call-content">{{ $callContent }}</div>
|
|
@endif
|
|
|
|
<div class="footer-panel">
|
|
<table class="footer-table">
|
|
<tr>
|
|
@if($qrSvgBw)
|
|
<td class="footer-qr-cell">
|
|
<img src="{{ $qrSvgBw }}" alt="QR">
|
|
</td>
|
|
@endif
|
|
<td class="footer-callable-cell">
|
|
<div class="callable-name">{{ $call->callable?->name }}</div>
|
|
@if($callableLocation)
|
|
<div class="callable-location">{{ $callableLocation }}</div>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div class="footer-tagline">{{ config('app.name') }} — {{ timebank_config('footer.tagline') }}</div>
|
|
</div>
|