@foreach (get_const()['bulan'] as $key => $item) @if($loop->first) @else @endif @endforeach @php $total = []; @endphp @forelse ($data as $item) @foreach (get_const()['bulan'] as $key => $bulan) @php $x = $item->isAnggaran($key); $total[$key] = optional($total)[$key] + ($x ? 1 : 0); @endphp @endforeach @empty @endforelse @foreach (get_const()['bulan'] as $key => $bulan) @endforeach
NO KODE KEGIATAN NAMA KEGIATAN BULAN PENANGGUNG JAWAB
{{ $key + 1 }}{{ $key + 1 }}
{{ $loop->iteration }} {{ $item->kode_kegiatan }}
{{ $item->kode_sub_kegiatan }}
{{ $item->kode_program_kegiatan }}
{!! wordwrap($item->nama_program, 40,'
',true) !!}
{{ optional(optional($item->SubBidangProperty)->BidangProperty)->nama }}
TIDAK ADA ADA
JUMLAH {{ $total[$key] }}