<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Laporan Keuangan</title>
    <style>
        body { font-family: 'Helvetica', sans-serif; color: #333; }
        .header { text-align: center; margin-bottom: 30px; }
        .orange-text { color: #f97316; }
        .table { width: 100%; border-collapse: collapse; margin-top: 20px; }
        .table th { background-color: #fff7ed; color: #ea580c; border-bottom: 2px solid #fdba74; padding: 12px; text-align: left; font-size: 10px; text-transform: uppercase; }
        .table td { padding: 10px; border-bottom: 1px solid #eee; font-size: 11px; }
        .summary-box { background-color: #f97316; color: white; padding: 20px; border-radius: 10px; margin-bottom: 20px; }
        .summary-box h2 { margin: 0; font-size: 24px; }
        .summary-box p { margin: 0; opacity: 0.8; font-size: 12px; text-transform: uppercase; }
        .footer { margin-top: 30px; text-align: right; font-size: 10px; color: #999; }
    </style>
</head>
<body>
    <div class="header">
        <h1 class="orange-text">LAPORAN TRANSAKSI</h1>
        <p>Dicetak pada: <?php echo e($date); ?></p>
    </div>

    <div class="summary-box">
        <p>Total Penjualan Selesai</p>
        <h2>Rp <?php echo e(number_format($totalRevenue, 0, ',', '.')); ?></h2>
    </div>

    <table class="table">
        <thead>
            <tr>
                <th>No. Order</th>
                <th>Pelanggan</th>
                <th>Metode</th>
                <th>Ongkir</th>
                <th>Total Harga</th>
                <th>Status</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td>#<?php echo e($order->order_number ?? $order->id); ?></td>
                <td><?php echo e($order->user->name); ?></td>
                <td><?php echo e(strtoupper($order->payment_method ?? 'MIDTRANS')); ?></td>
                <td>Rp <?php echo e(number_format($order->shipping_cost ?? 0, 0, ',', '.')); ?></td>
                <td><strong>Rp <?php echo e(number_format($order->total_price, 0, ',', '.')); ?></strong></td>
                <td><?php echo e(strtoupper($order->status)); ?></td>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>

    <div class="footer">
        Laporan ini dihasilkan otomatis oleh sistem pada <?php echo e(now()); ?>

    </div>
</body>
</html><?php /**PATH C:\laragon\www\LokaPustaka\resources\views/orders/financial_pdf.blade.php ENDPATH**/ ?>