@php $honor_collection = collect($honors); $header = $honor_collection->transform(function ($item, $key) { $collect = collect($item->detail); return $collect->pluck('nama_honor'); })->flatten(1)->unique(); @endphp @for ($i = 1; $i <= count($honors); $i++) @php $honor = $honors[$i-1]; $count_honor = count($honor->detail); $collection = collect($honor->mata_kuliah); if ($collection) { $count_honor_mengajar = $collection->sum(function ($gaji) { return count($gaji['detail']); }); } else { $count_honor_mengajar = 0; } $total_count_honor = $count_honor_mengajar; $span_head = $total_count_honor == 0 ? 1 : $total_count_honor; @endphp @if ($count_honor + $total_count_honor > 0) @if (isset($honor->dosen->bank_dosen[0]->nama_bank)) @else @endif @endif @endfor
REKAPITULASI HONOR DOSEN @if ($request->input('perguruan_tinggi') == 'Semua') STIE {{{'&'}}} STMIK JAYAKARTA @else {{strtoupper($request->input('perguruan_tinggi'))}} @endif BULAN {{ strtoupper($request->input('bulan')) }} {{ $request->input('tahun') }}
No Nama Dosen Total Honor Dosen Rekening Bank Nomor Rekening
{{ $i }} {{ $honor->dosen->nama }} {{ $honor->total_honor_mengajar + $honor->total_honor - $honor->pajak_21 }}Bank {{ $honor->dosen->bank_dosen[0]->nama_bank }} a/n {{ $honor->dosen->bank_dosen[0]->nama_rekening }} {{ $honor->dosen->bank_dosen[0]->nomor_rekening }}- -
--- End of Document ---