@php $logoSrc = null; $rawLogo = $settings['logo_path'] ?? null; if ($rawLogo) { // If it's a full URL, use it directly (PDF generator must allow remote if so) if (filter_var($rawLogo, FILTER_VALIDATE_URL)) { $logoSrc = $rawLogo; } else { // normalize stored path by removing a leading 'storage/' if present $relative = preg_replace('#^storage/#', '', $rawLogo); // Try public disk (storage/app/public) try { $candidate = \Illuminate\Support\Facades\Storage::disk('public')->path($relative); } catch (Throwable $e) { $candidate = storage_path('app/public/' . $relative); } // Prefer the public asset URL (https://your-domain/storage/...), this // matches environments where the web-accessible storage is served // through the public/storage symlink or a CDN. Dompdf must have // remote enabled to fetch this URL when generating PDFs. $logoSrc = asset('storage/' . $relative); } } @endphp @if($logoSrc)
Logo {{ $settings['site_name'] ?? 'PSPA UEU' }}
@endif

{{ $settings['site_name'] ?? 'PSPA UEU' }}

Laporan Data Kelas dan Praktek

Tanggal Export: {{ date('d F Y, H:i:s') }} Total Kelas: {{ $classes->count() }}
Periode: {{ date('Y') }}/{{ date('Y') + 1 }} User Export: {{ auth()->user()->name }}
Total Mahasiswa: {{ $classes->sum(function($class) { return $class->participants->count(); }) }} Total Dosen: {{ $classes->unique('dosen_id')->count() }}
Total Pembimbing: {{ $classes->flatMap->supervisors->unique('id')->count() }} Kelas Aktif: {{ $classes->where('status', 'aktif')->count() }}
@if($request->hasAny(['search', 'semester', 'tahun_akademik', 'status']))

Filter yang Diterapkan:

@if($request->filled('search'))

Pencarian: "{{ $request->search }}"

@endif @if($request->filled('semester'))

Semester: {{ ucfirst($request->semester) }}

@endif @if($request->filled('tahun_akademik'))

Tahun Akademik: {{ $request->tahun_akademik }}

@endif @if($request->filled('status'))

Status: {{ ucfirst($request->status) }}

@endif
@endif @if($classes->count() > 0) @foreach($classes as $index => $class) @endforeach
No Nama Kelas Tahun Akademik Semester Dosen Pembimbing Lahan Peserta Progress Status
{{ $index + 1 }}
{{ $class->nama_kelas }}
@if($class->location)
📍 {{ $class->location }}
@endif
🕒 {{ $class->waktu_mulai->format('d/m/Y H:i') }}
{{ $class->tahun_akademik ?? '-' }} @if($class->semester) {{ ucfirst($class->semester) }} @else - @endif
{{ $class->dosen->name }}
📧 {{ $class->dosen->email }}
@if($class->dosen->phone)
📱 {{ $class->dosen->phone }}
@endif
@if($class->supervisors->count() > 0) @foreach($class->supervisors as $supervisor)
{{ $supervisor->name }}
📧 {{ $supervisor->email }}
@if($supervisor->phone)
📱 {{ $supervisor->phone }}
@endif
@if(!$loop->last)
@endif @endforeach @else
Belum ada pembimbing
@endif
{{ $class->participants->count() }}/{{ $class->max_participants }}
{{ $class->supervisors->count() }} Pembimbing
@if($class->participants->count() > 0)
{{ $class->grading_progress }}%
{{ $class->graded_students_count }}/{{ $class->participants->count() }} dinilai
@else
Belum ada peserta
@endif
{{ ucfirst($class->status) }} @if($class->average_grade > 0)
Rata-rata: {{ number_format($class->average_grade, 1) }}
@endif
@else

Tidak ada data kelas yang ditemukan

Silakan ubah filter pencarian atau tambah kelas baru.

@endif