<!doctype html>
<html lang="id">
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Bukti <?php echo e($disbursement->disbursement_no); ?></title><script src="https://cdn.tailwindcss.com"></script></head>
<body class="bg-white text-slate-900">
<main class="mx-auto max-w-4xl p-6">
    <div class="flex justify-between gap-4 border-b pb-5">
        <div><div class="text-sm text-slate-500">Bukti Pencairan Bonus</div><h1 class="text-2xl font-semibold"><?php echo e($disbursement->disbursement_no); ?></h1><div class="mt-1 text-sm text-slate-500"><?php echo e($disbursement->branch?->name); ?></div></div>
        <button onclick="print()" class="h-fit rounded-md border px-4 py-2 text-sm print:hidden">Print</button>
    </div>
    <div class="mt-5 grid gap-3 text-sm md:grid-cols-2">
        <div class="rounded-md bg-slate-50 p-3"><div class="text-slate-500">Periode</div><strong><?php echo e($disbursement->period_start->format('d/m/Y')); ?> - <?php echo e($disbursement->period_end->format('d/m/Y')); ?></strong></div>
        <div class="rounded-md bg-slate-50 p-3"><div class="text-slate-500">Staf</div><strong><?php echo e($disbursement->staff?->name ?? 'Semua staf'); ?></strong></div>
        <div class="rounded-md bg-slate-50 p-3"><div class="text-slate-500">Dicairkan oleh</div><strong><?php echo e($disbursement->disburser?->name ?? '-'); ?></strong></div>
        <div class="rounded-md bg-slate-50 p-3"><div class="text-slate-500">Total</div><strong>Rp <?php echo e(number_format($disbursement->total_amount, 0, ',', '.')); ?></strong></div>
    </div>
    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($disbursement->note): ?><div class="mt-4 rounded-md border p-3 text-sm"><?php echo e($disbursement->note); ?></div><?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    <table class="mt-6 w-full text-left text-sm">
        <thead class="border-b bg-slate-100"><tr><th class="p-3">Nota</th><th>Staf</th><th>Produk</th><th class="text-right">Bonus</th></tr></thead>
        <tbody class="divide-y">
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $disbursement->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
            <tr><td class="p-3"><?php echo e($item->orderDetail?->order?->invoice_no); ?></td><td><?php echo e($item->orderDetail?->staff?->name ?? '-'); ?></td><td><?php echo e($item->orderDetail?->product_name); ?></td><td class="text-right">Rp <?php echo e(number_format($item->bonus_amount, 0, ',', '.')); ?></td></tr>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
        </tbody>
    </table>
</main>
</body>
</html>
<?php /**PATH /Users/dedehermawan/Dokumen/project/laundry/resources/views/bonuses/disbursement.blade.php ENDPATH**/ ?>