
<?php $__env->startSection('title', 'Gaji Saya'); ?>
<?php $__env->startSection('content'); ?>

<div class="max-w-3xl mx-auto" style="font-family: 'Plus Jakarta Sans', sans-serif;">

    <div class="mb-8">
        <h1 class="text-3xl font-black text-slate-800 italic tracking-tight">Gaji Saya 💸</h1>
        <p class="text-pink-400 font-bold text-sm mt-1">Riwayat penghasilan kamu</p>
    </div>

    <?php if($salaries->isEmpty()): ?>
        <div class="bg-white rounded-[32px] border-2 border-dashed border-pink-100 py-20 text-center">
            <p class="text-5xl mb-4">🙈</p>
            <p class="text-slate-400 font-black italic">Belum ada riwayat gaji.</p>
            <p class="text-slate-300 text-sm mt-1">Selesaikan pengiriman untuk mulai dapat gaji!</p>
        </div>
    <?php else: ?>
        <div class="space-y-4">
            <?php $__currentLoopData = $salaries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $s): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="bg-white rounded-[28px] border border-pink-50 shadow-sm p-6">
                <div class="flex flex-wrap items-center justify-between gap-4">

                    
                    <div>
                        <p class="font-black text-slate-800 text-lg"><?php echo e($s->month_name); ?> <?php echo e($s->year); ?></p>
                        <p class="text-xs text-slate-400 font-bold mt-0.5"><?php echo e($s->total_deliveries); ?> pengiriman selesai</p>
                    </div>

                    
                    <div class="flex flex-wrap gap-5 text-center">
                        <div>
                            <p class="text-[10px] font-black text-slate-400 uppercase tracking-widest">Gaji Pokok</p>
                            <p class="font-black text-slate-700">Rp <?php echo e(number_format($s->base_salary, 0, ',', '.')); ?></p>
                        </div>
                        <div>
                            <p class="text-[10px] font-black text-slate-400 uppercase tracking-widest">Bonus</p>
                            <p class="font-black text-pink-500">+ Rp <?php echo e(number_format($s->bonus, 0, ',', '.')); ?></p>
                        </div>
                        <div>
                            <p class="text-[10px] font-black text-slate-400 uppercase tracking-widest">Total</p>
                            <p class="font-black text-emerald-600 text-lg">Rp <?php echo e(number_format($s->total_salary, 0, ',', '.')); ?></p>
                        </div>
                    </div>

                    
                    <?php if($s->status === 'paid'): ?>
                        <div class="text-right">
                            <span class="px-4 py-1.5 bg-emerald-100 text-emerald-600 text-[10px] font-black uppercase tracking-widest rounded-full">✅ Dibayar</span>
                            <p class="text-[10px] text-slate-400 mt-1"><?php echo e($s->paid_at->format('d M Y')); ?></p>
                        </div>
                    <?php else: ?>
                        <span class="px-4 py-1.5 bg-amber-100 text-amber-600 text-[10px] font-black uppercase tracking-widest rounded-full">⏳ Menunggu</span>
                    <?php endif; ?>

                </div>
            </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    <?php endif; ?>

</div>

<script>lucide.createIcons();</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\laragon\www\SwiftCart\resources\views/courier/salary.blade.php ENDPATH**/ ?>