@extends('layouts.main') @section('css') @endsection @section('breadcrumb') @endsection @section('content')
@foreach ($kegiatans as $key => $kegiatan) @endforeach
@endsection @section('modal') @endsection @section('js') @php $anyHasLaporanSyarat = collect($kegiatans)->some(function ($kegiatan) { $anggota = $kegiatan['anggota'] ?? collect(); if ($anggota->isEmpty()) { return false; } $first = $anggota->first(); return isset($first->rubrik->syarats) && $first->rubrik->syarats->whereIn('nama', ['laporan kegiatan'])->count() > 0; }); @endphp @endsection