97 lines
3.9 KiB
PHP
97 lines
3.9 KiB
PHP
<div class="mw-modal-frame">
|
|
|
|
<div class="mw-modal-head">
|
|
<div class="mw-modal-title-wrap">
|
|
<h2 class="mw-modal-title">Queue-Nachricht</h2>
|
|
<span class="mw-modal-sub">{{ $message['id'] ?? $queueId }}</span>
|
|
</div>
|
|
<button wire:click="$dispatch('closeModal')" class="mw-modal-close">
|
|
<svg width="14" height="14" viewBox="0 0 14 14" fill="none"><path d="M2 2l10 10M12 2L2 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="mw-modal-body">
|
|
|
|
<div class="mw-modal-grid2">
|
|
<div class="mq-detail-row">
|
|
<span class="mq-detail-label">Status</span>
|
|
@php $q = $message['queue'] ?? '—'; @endphp
|
|
@if($q === 'active')
|
|
<span class="mq-badge ok">Aktiv</span>
|
|
@elseif($q === 'hold')
|
|
<span class="mq-badge na">Hold</span>
|
|
@elseif($q === 'deferred')
|
|
<span class="mq-badge warn">Deferred</span>
|
|
@else
|
|
<span class="mq-badge na">{{ $q }}</span>
|
|
@endif
|
|
</div>
|
|
<div class="mq-detail-row">
|
|
<span class="mq-detail-label">Größe</span>
|
|
<span>{{ ($message['size'] ?? 0) > 0 ? number_format(($message['size']) / 1024, 1) . ' KB' : '—' }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mq-detail-row">
|
|
<span class="mq-detail-label">Absender</span>
|
|
<span class="mq-detail-val">{{ $message['sender'] ?? '—' }}</span>
|
|
</div>
|
|
|
|
<div class="mq-detail-row">
|
|
<span class="mq-detail-label">Empfänger</span>
|
|
<div style="display:flex;flex-direction:column;gap:4px;">
|
|
@foreach($message['recipients'] ?? [] as $r)
|
|
<div>
|
|
<span class="mq-detail-val">{{ $r['address'] }}</span>
|
|
@if($r['reason'])
|
|
<div style="font-size:11px;color:var(--mw-am);margin-top:2px;">{{ $r['reason'] }}</div>
|
|
@endif
|
|
</div>
|
|
@endforeach
|
|
@if(empty($message['recipients']))
|
|
<span>—</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
@if(($message['arrival'] ?? 0) > 0)
|
|
<div class="mq-detail-row">
|
|
<span class="mq-detail-label">Eingang</span>
|
|
<span>{{ date('d.m.Y H:i:s', $message['arrival']) }}</span>
|
|
</div>
|
|
@endif
|
|
|
|
@if(!empty($message['header']))
|
|
<div>
|
|
<span class="mq-detail-label">Mail-Header</span>
|
|
<pre class="mq-header-pre">{{ $message['header'] }}</pre>
|
|
</div>
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div class="mw-modal-foot" style="justify-content:space-between;">
|
|
<div style="display:flex;gap:8px;">
|
|
@if(($message['queue'] ?? '') === 'hold')
|
|
<button wire:click="release" class="mw-btn-save">
|
|
<svg width="12" height="12" viewBox="0 0 14 14" fill="none"><path d="M2 7l3.5 3.5L12 3" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
Freigeben
|
|
</button>
|
|
@else
|
|
<button wire:click="hold" class="mw-btn-cancel">
|
|
<svg width="12" height="12" viewBox="0 0 14 14" fill="none"><rect x="3" y="2.5" width="3" height="9" rx="1" stroke="currentColor" stroke-width="1.2"/><rect x="8" y="2.5" width="3" height="9" rx="1" stroke="currentColor" stroke-width="1.2"/></svg>
|
|
Zurückstellen
|
|
</button>
|
|
@endif
|
|
</div>
|
|
<div style="display:flex;gap:8px;">
|
|
<button wire:click="$dispatch('closeModal')" class="mw-btn-cancel">Schließen</button>
|
|
<button wire:click="delete" wire:confirm="Nachricht endgültig löschen?" class="mq-btn-danger">
|
|
<svg width="12" height="12" viewBox="0 0 13 13" fill="none"><path d="M2 3.5h9M5 3.5V2h3v1.5M5.5 6v4M7.5 6v4M3 3.5l.5 7.5h6L10 3.5" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
Löschen
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|