{{-- ===== HEADER ===== --}}
{{ $company?->name ?? 'KSU Tabanan Jaya' }}
{{ $company?->tagline ?? 'Sistem Informasi Manajemen Keuangan Koperasi' }}
Periode Gaji
{{ $slip->period_formatted }}
PUBLISHED @else background:#fefcbf; color:#975a16; border:1px solid #f6e05e;"> DRAFT @endif
{{-- ===== META ROW ===== --}}
No. Slip {{ $slip->id }}...
Admin {{ $slip->generator?->name ?? 'Sistem' }}
Dicetak {{ \Carbon\Carbon::now()->format('d M Y, H:i') }} WITA
@if($slip->published_at)
Diterbit {{ \Carbon\Carbon::parse($slip->published_at)->format('d M Y, H:i') }}
@endif
{{-- ===== INFO CARDS ===== --}}
[1] Data Karyawan
Nama {{ $user->name }}
ID User {{ $user->id }}
Jabatan {{ $user->position ?? '-' }}
[2] Penempatan
Unit {{ $unit?->name ?? '-' }}
Resort {{ $resort?->name ?? '-' }}
ID Resort {{ $slip->resort_id ?? '-' }}
{{-- ===== DATA TABLE ===== --}} {{-- GAJI POKOK --}} {{-- INSENTIF OTOMATIS --}} @if(count($slip->incentives ?? []) > 0) @foreach($slip->incentives as $i => $incentive) @endforeach @endif {{-- INSENTIF MANUAL --}} @if(count($slip->manual_incentives ?? []) > 0) @foreach($slip->manual_incentives as $i => $manualInc) @php $idx = count($slip->incentives ?? []) + $i + 2; @endphp @endforeach @endif {{-- POTONGAN --}} @php $firstDeductionIdx = count($slip->incentives ?? []) + count($slip->manual_incentives ?? []) + 2; @endphp {{-- TITIP GAJI --}} @if($slip->saving_salary > 0) @php $savingIdx = $firstDeductionIdx + 1; @endphp @endif {{-- POTONGAN MANUAL --}} @if(count($slip->manual_deductions ?? []) > 0) @php $savingOffset = ($slip->saving_salary > 0) ? 1 : 0; @endphp @foreach($slip->manual_deductions as $j => $manualDed) @php $dedIdx = $firstDeductionIdx + $savingOffset + $j + 1; @endphp @endforeach @endif {{-- SUBTOTAL --}} @php $totalDeductions = $slip->bon_total + $slip->saving_salary + $slip->total_manual_deductions; $subtotal = $slip->base_salary + $slip->total_incentives - $totalDeductions; @endphp
No Komponen Gaji Nominal (Rp)
1 Gaji Pokok {{ number_format($slip->base_salary, 0, ',', '.') }}
[+] Tunjangan & Insentif (Otomatis)
{{ $i + 2 }} {{ $incentive['name'] }} + {{ number_format($incentive['amount'], 0, ',', '.') }}
[+] Insentif Manual
{{ $idx }} {{ $manualInc['name'] }} @if(!empty($manualInc['description']))
{{ $manualInc['description'] }}@endif
+ {{ number_format($manualInc['amount'], 0, ',', '.') }}
{{ $firstDeductionIdx }} Potongan Bon Sementara - {{ number_format($slip->bon_total, 0, ',', '.') }}
{{ $savingIdx }} Titipan Gaji
Simpanan dari gaji
- {{ number_format($slip->saving_salary, 0, ',', '.') }}
{{ $dedIdx }} {{ $manualDed['name'] }} @if(!empty($manualDed['description']))
{{ $manualDed['description'] }}@endif
- {{ number_format($manualDed['amount'], 0, ',', '.') }}
Subtotal (Gaji + Insentif - Potongan) {{ number_format($subtotal, 0, ',', '.') }}
{{-- ===== TOTAL BERSIH ===== --}}
Total Gaji Bersih
Take Home Pay
Rp {{ number_format($slip->net_salary, 0, ',', '.') }}
Terbilang: {{ \App\Helpers\CurrencyHelper::words($slip->net_salary) }}
{{-- ===== TANDA TANGAN ===== --}}
{{ $user->name }}
Penerima Gaji
{{ $slip->generator?->name ?? 'Koordinator' }}
Koordinator / Admin
{{-- ===== FOOTER ===== --}}
Dokumen resmi diterbitkan secara elektronik oleh Sistem {{ $company?->name ?? 'KSU Tabanan Jaya' }}  •  @if($slip->status == 'published') Slip valid tanpa tanda tangan basah @else Dokumen draft - belum diotorisasi @endif