<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Monthly Profit & Loss — <?php echo e($month); ?></title>
    <style>
        body { font-family: DejaVu Sans, sans-serif; font-size: 13px; color: #333; margin: 30px; }
        h1 { font-size: 20px; margin-bottom: 4px; }
        .subtitle { font-size: 12px; color: #666; margin-bottom: 20px; }
        table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
        th { background: #0dcaee; color: #fff; padding: 8px 10px; text-align: left; }
        td { padding: 7px 10px; border-bottom: 1px solid #e0e0e0; }
        .text-right { text-align: right; }
        .total-row td { font-weight: bold; background: #f5f5f5; }
        .profit { color: #198754; }
        .loss { color: #dc3545; }
    </style>
</head>
<body>
    <h1><?php echo e(__('Monthly Profit & Loss Report')); ?></h1>
    <div class="subtitle"><?php echo e(__('Month')); ?>: <?php echo e($month); ?></div>

    <table>
        <thead>
            <tr>
                <th><?php echo e(__('Description')); ?></th>
                <th class="text-right"><?php echo e(__('Amount')); ?></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><?php echo e(__('Total Sales (Income)')); ?></td>
                <td class="text-right profit"><?php echo e(number_format($sales, 2)); ?></td>
            </tr>
            <tr>
                <td><?php echo e(__('Total Purchases (Cost)')); ?></td>
                <td class="text-right loss"><?php echo e(number_format($purchases, 2)); ?></td>
            </tr>
            <tr>
                <td><?php echo e(__('Total Expenses')); ?></td>
                <td class="text-right loss"><?php echo e(number_format($expenses, 2)); ?></td>
            </tr>
            <tr class="total-row">
                <td><?php echo e($profit >= 0 ? __('Net Profit') : __('Net Loss')); ?></td>
                <td class="text-right <?php echo e($profit >= 0 ? 'profit' : 'loss'); ?>"><?php echo e(number_format(abs($profit), 2)); ?></td>
            </tr>
        </tbody>
    </table>

    <div style="margin-top:30px; font-size:11px; color:#999; text-align:right;">
        <?php echo e(__('Generated on')); ?> <?php echo e(now()->format('Y-m-d H:i')); ?>

    </div>
</body>
</html>
<?php /**PATH C:\Users\anwar\OneDrive\Desktop\Babu KSA\software\restaurant-management\resources\views/reports/pdf/monthly.blade.php ENDPATH**/ ?>