@extends('layouts.main') @section('content')

Daftar Peserta Aktivitas

@php $rowIndex = 1; @endphp @foreach($participants as $peserta) @php $userParticipant = optional($peserta)->user; if (! $userParticipant) { continue; } $profileParticipant = optional($userParticipant->profile); @endphp @php $rowIndex++; @endphp @endforeach @if($rowIndex === 1) @endif
No Nama Provinsi Jumlah Cetak
{{ $rowIndex }} {{ $userParticipant->name ?? '-' }} {{ optional($profileParticipant->province)->name ?? ($profileParticipant->other_province ?? '-') }} {{ $peserta->print_count ?? 0 }}
Belum ada peserta
@php $uCard = auth()->user(); $pCard = optional($uCard->profile); $provinceCard = optional($pCard->province)->name ?? ($pCard->other_province ?? null); @endphp @php $titleVisible = data_get($certificateSetting ?? [], 'title.visible', true); @endphp @if($titleVisible)
{{ $activity->name ?? 'Sertifikat PESERTA' }}
@endif @php $photoVisible = data_get($certificateSetting ?? [], 'photo.visible', true); @endphp @if($photoVisible)
@if(auth()->user()->profile && auth()->user()->profile->foto) @php $photoPath = auth()->user()->profile->foto; $publicPath = asset('assets/images/profilefoto/' . $photoPath); @endphp @else @endif
@endif
@php $qrData = $currentCertificateId ?? Auth::user()->id; try { $qrPng = \SimpleSoftwareIO\QrCode\Facades\QrCode::format('png')->size(80)->generate((string) $qrData); $qrBase64 = 'data:image/png;base64,'.base64_encode($qrPng); } catch (\Throwable $e) { $qrBase64 = 'https://api.qrserver.com/v1/create-qr-code/?size=80x80&data='.urlencode((string) $qrData); } @endphp QR Code
@php $user = auth()->user(); $isSuperAdmin = $user->role === 'superadmin'; $isAdmin = $user->role === 'admin'; $creator = $activity->user ?? \App\Models\User::find($activity->user_id); $creatorHasCards = method_exists($activity, 'creatorHasFeature') ? $activity->creatorHasFeature('digital_cards') : false; $isActivityOwner = method_exists($user, 'isCreator') ? ($user->isCreator() && $activity->user_id === $user->id) : false; $isCommitteeMember = method_exists($activity, 'canManageRegistration') ? $activity->canManageRegistration($user->id) : false; $shouldShowButtons = $isSuperAdmin || ($isAdmin && $canAdminViewButtons) || ($creatorHasCards && ($isActivityOwner || $isCommitteeMember)); @endphp @if($shouldShowButtons)
@endif @if($isSuperAdmin) @endif
@if($shouldShowButtons)
@endif

Pengaturan Teks Sertifikat

Mengedit: Pilih teks pada Sertifikat
x
@php $bgDir = public_path('assets/images/certificate'); $bgFiles = glob($bgDir . '/*.{png,jpg,jpeg,gif,webp}', GLOB_BRACE); @endphp @if(count($bgFiles) > 0) @foreach($bgFiles as $file) @php $filename = basename($file); @endphp @php $isUploaded = DB::table('certificate_backgrounds')->where('filename', $filename)->exists(); @endphp
{{ $filename }} @if($isUploaded) @endif
@endforeach @endif
@push('styles') @endpush @endsection