status emel
This commit is contained in:
@@ -100,12 +100,17 @@
|
||||
<th>Sesi</th>
|
||||
<th>Sumber</th>
|
||||
<th>Status</th>
|
||||
<th>E-Sijil</th>
|
||||
<th class="text-end">Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($programParticipants as $i => $pp)
|
||||
@php $p = $pp->participant; @endphp
|
||||
@php
|
||||
$p = $pp->participant;
|
||||
$cert = $certificates[$pp->participant_id] ?? null;
|
||||
$emailLog = $cert ? ($emailLogs[$cert->id] ?? null) : null;
|
||||
@endphp
|
||||
<tr>
|
||||
<td class="text-muted small">{{ $programParticipants->firstItem() + $i }}</td>
|
||||
<td>
|
||||
@@ -143,6 +148,54 @@
|
||||
<span class="badge bg-light text-dark border">Berdaftar</span>
|
||||
@endif
|
||||
</td>
|
||||
<td style="min-width:130px;">
|
||||
@if(! $cert)
|
||||
<span class="text-muted small">—</span>
|
||||
@else
|
||||
{{-- Sijil --}}
|
||||
@if(in_array($cert->status, ['generated','emailed','downloaded']))
|
||||
<span class="badge bg-success-subtle text-success border border-success-subtle">
|
||||
<i class="bi bi-award-fill me-1"></i>Jana ✓
|
||||
</span>
|
||||
@elseif($cert->status === 'pending')
|
||||
<span class="badge bg-warning-subtle text-warning border border-warning-subtle">
|
||||
<i class="bi bi-hourglass-split me-1"></i>Menjana...
|
||||
</span>
|
||||
@elseif($cert->status === 'failed')
|
||||
<span class="badge bg-danger-subtle text-danger border border-danger-subtle">
|
||||
<i class="bi bi-x-circle me-1"></i>Gagal Jana
|
||||
</span>
|
||||
@endif
|
||||
|
||||
{{-- Emel --}}
|
||||
@if($emailLog)
|
||||
@if($emailLog->status === 'sent')
|
||||
<div class="text-success mt-1" style="font-size:.7rem;">
|
||||
<i class="bi bi-envelope-check me-1"></i>Emel Dihantar
|
||||
</div>
|
||||
@elseif($emailLog->status === 'failed')
|
||||
<div class="text-danger mt-1" style="font-size:.7rem;">
|
||||
<i class="bi bi-envelope-x me-1"></i>Emel Gagal
|
||||
</div>
|
||||
@elseif($emailLog->status === 'pending')
|
||||
<div class="text-warning mt-1" style="font-size:.7rem;">
|
||||
<i class="bi bi-hourglass-split me-1"></i>Dalam Antrian
|
||||
</div>
|
||||
@endif
|
||||
@elseif($cert->isGenerated())
|
||||
<div class="text-muted mt-1" style="font-size:.7rem;">
|
||||
<i class="bi bi-envelope me-1"></i>Belum Dihantar
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{-- Muat turun --}}
|
||||
@if($cert->download_count > 0)
|
||||
<div class="text-primary mt-1" style="font-size:.7rem;">
|
||||
<i class="bi bi-download me-1"></i>{{ $cert->download_count }}× Muat Turun
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-end">
|
||||
@if($pp->status !== 'checked_in')
|
||||
<form method="POST"
|
||||
|
||||
Reference in New Issue
Block a user