<!DOCTYPE html>
<html>
<head>
    <title>Laporan Pendapatan Tiket Rinci</title>
    <style>
        body { font-family: sans-serif; color: #333; line-height: 1.4; }
        .header { text-align: center; margin-bottom: 20px; border-bottom: 2px solid #000; padding-bottom: 10px; }
        .info-periode { font-size: 13px; margin-bottom: 15px; font-weight: bold; }
        table { width: 100%; border-collapse: collapse; margin-top: 10px; }
        th, td { border: 1px solid #999; padding: 8px; text-align: center; font-size: 11px; }
        th { background-color: #f2f2f2; text-transform: uppercase; }
        .text-left { text-align: left; }
        .total-row { font-weight: bold; background-color: #eee; }
        .footer { margin-top: 40px; text-align: right; font-size: 12px; padding-right: 20px; }
        .stamp { margin-top: 50px; }
    </style>
</head>
<body onload="window.print()">
    <div class="header">
        <h2 style="margin-bottom: 5px;">LAPORAN RINCIAN PENDAPATAN TIKET</h2>
        <h3 style="margin-top: 0; font-weight: normal;">Sistem Manajemen Pendakian Gunung Agung</h3>
        <p style="font-size: 11px;">Dicetak pada: <?php echo e(date('d/m/Y H:i')); ?> WITA</p>
    </div>

    <div class="info-periode">
        PERIODE LAPORAN: 
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(isset($start) && isset($end)): ?>
            <?php echo e(\Carbon\Carbon::parse($start)->format('d F Y')); ?> s/d <?php echo e(\Carbon\Carbon::parse($end)->format('d F Y')); ?>

        <?php else: ?>
            Semua Data
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    </div>

    <table>
        <thead>
            <tr>
                <th width="30">No</th>
                <th width="120">Waktu Transaksi</th>
                <th class="text-left">Nama Pendaki</th>
                <th width="100">Kategori</th>
                <th width="130">Harga Tiket</th>
            </tr>
        </thead>
        <tbody>
            <?php $totalRecord = 0; ?>
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__empty_1 = true; $__currentLoopData = $climbings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
            <tr>
                <td><?php echo e($i + 1); ?></td>
                <td><?php echo e($item->created_at->format('d/m/Y H:i')); ?></td>
                <td class="text-left"><?php echo e($item->name); ?></td>
                <td>
                    <?php echo e(strtolower($item->ticket->name ?? '') == 'mancanegara' ? '🌍 WNA' : '🇮🇩 WNI'); ?>

                </td>
                <td>Rp <?php echo e(number_format($item->ticket->price ?? 0, 0, ',', '.')); ?></td>
            </tr>
            <?php $totalRecord++; ?>
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
            <tr>
                <td colspan="5">Tidak ada data ditemukan pada rentang tanggal ini.</td>
            </tr>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            
            <tr class="total-row">
                <td colspan="4" style="text-align: right; padding-right: 15px;">GRAND TOTAL PENDAPATAN (<?php echo e($totalRecord); ?> Transaksi)</td>
                <td>Rp <?php echo e(number_format($totalIncomeAll, 0, ',', '.')); ?></td>
            </tr>
        </tbody>
    </table>

    <div class="footer">
        <p>Karangasem, <?php echo e(date('d F Y')); ?></p>
        <p>Mengetahui,</p>
        <div class="stamp">
            <p><strong>Admin Sistem Manajemen</strong></p>
        </div>
    </div>
</body>
</html><?php /**PATH C:\laragon\www\Pendaki_App-main\resources\views/admin/reports/rekap_kustom_pdf.blade.php ENDPATH**/ ?>