@if($absensiTerbaru->count())
@else
@foreach($absensiTerbaru as $absen)
@php
$bukti = $absen->bukti_kehadiran ?? null;
$ext = $bukti ? strtolower(pathinfo($bukti, PATHINFO_EXTENSION)) : null;
$isImg = in_array($ext, ['jpg','jpeg','png','gif','webp']);
$imgUrl = $isImg ? asset('storage/absensi-kegiatan/' . $bukti) : null;
@endphp
@if($imgUrl)
@endif
@endforeach
Belum ada cerita.
@endif
@if(isset($updateTerbaru) && $updateTerbaru->count())
-
@foreach($updateTerbaru as $item)
@php
$imgUrl = $item->image ?? null;
$headline = $item->title ?? 'Update';
$lead = ($item->type === 'rapat' && !empty($item->subtitle)) ? $item->subtitle : $headline;
@endphp
-
@if($imgUrl){{ $lead }}{{ optional($item->date)->diffForHumans() }}@else@endif @if($item->type === 'kegiatan' && !empty($item->description))@endif{{ \Illuminate\Support\Str::limit($item->description, 300) }} @if(\Illuminate\Support\Str::length($item->description) > 300) @endif
@endforeach
Belum ada update.
@endif
Anggota RTIK
@if(isset($anggotaList) && $anggotaList->count())
-
@foreach($anggotaList as $a)
@php
$foto = $a->foto ?? null;
$fotoUrl = $foto ? asset('storage/anggotas/' . $foto) : null;
@endphp
-
{{ $a->nama }}{{ $a->jabatan ?? '' }}Skor {{ $a->skor_keaktifan }}
@endforeach
Belum ada data anggota.
@endif