@extends('layouts.app') @section('title', 'Cetak Gaji') @section('content')

Standar PembiayaanManajemen Gaji

Cetak Gaji

Hitung honor bulanan menggunakan seluruh komponen penambahan dan potongan yang ditetapkan untuk tiap guru.

Cetak rekap
@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any()) @endif @if (! $period)
Belum ada periode akademik aktif. Atur periode terlebih dahulu sebelum memproses gaji.
@elseif ($activeComponents === [])
Skema gaji untuk periode ini belum dipilih. Pilih komponen dan atur tarif guru terlebih dahulu di menu Atur Sistem Gaji.
@endif

Filter Periode & Pertemuan

@if ($usesAttendance) @else @endif
@if ($activeComponents !== [])

Rincian Perhitungan Honor Guru

Nilai berikut dihitung otomatis: Total Honor = Total Penambahan (+) dikurangi Total Potongan (-). @if ($usesAttendance) Komponen berbasis kehadiran disesuaikan proporsional berdasarkan input jumlah hadir. @endif Klik "Simpan data honor" untuk menyimpan snapshot rekap dan slip.

@csrf @if ($usesAttendance) @endif
@if ($usesAttendance) @endif @foreach ($activeComponents as $comp) @php $isPot = ($comp['tipe'] ?? '') === 'potongan'; @endphp @endforeach @forelse ($rows as $row) @if ($usesAttendance) @endif @foreach ($activeComponents as $comp) @php $ckey = $comp['key']; $line = collect($row->components)->firstWhere('komponen', $ckey); $isPot = ($comp['tipe'] ?? '') === 'potongan'; $nom = (float) ($line['nominal'] ?? 0); @endphp @endforeach @empty @endforelse
No. Nama guruHadir sistem Hadir (input)
{{ $comp['label'] }} {{ $isPot ? '(-)' : '(+)' }}
Total honor Slip
{{ $loop->iteration }} {{ $row->nama }} {{ $row->absensi_hadir }} kali @if ($ckey === 'sks' && $line) {{ rtrim(rtrim(number_format((float) $line['kuantitas'], 2, ',', '.'), '0'), ',') }} SKS × Rp {{ number_format((float) $line['tarif'], 0, ',', '.') }}
@elseif ($ckey === 'kehadiran' && $line) {{ $line['kuantitas'] }} / {{ $line['target'] }} hadir × Rp {{ number_format((float) $line['tarif'], 0, ',', '.') }}
@elseif (($comp['mode'] ?? '') === 'kehadiran' && $line) {{ $line['kuantitas'] }} / {{ $line['target'] }} hadir × Rp {{ number_format((float) $line['tarif'], 0, ',', '.') }}
@endif {{ $isPot ? '- ' : '' }}Rp {{ number_format(abs($nom), 0, ',', '.') }}
Rp {{ number_format($row->total_gaji, 0, ',', '.') }} @if ($row->payroll_id) Slip @else Simpan dulu @endif
Belum ada konfigurasi komponen gaji untuk guru pada periode aktif. Atur sistem gaji terlebih dahulu.
@if ($rows->isNotEmpty())

Pastikan data hadir dan honor telah sesuai sebelum mencetak rekap atau slip gaji.

@endif
@endif
@endsection