<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "//www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title> Sale report pdf</title>
    <link rel="icon" type="image/png" sizes="32x32" href="<?php echo e(asset('images/favicon.ico')); ?>">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <!-- Fonts -->
    <!-- General CSS Files -->
    <link href="<?php echo e(asset('assets/css/bootstrap.min.css')); ?>" rel="stylesheet" type="text/css"/>
</head>
<body>
<table width="100%" cellspacing="0" cellpadding="10" style="margin-top: 40px;">
    <thead>
    <tr style="background-color: dodgerblue;">
        <th style="width: 200%"><?php echo e(__('messages.pdf.reference')); ?></th>
        <th style="width: 300%"><?php echo e(__('messages.pdf.customer')); ?></th>
        <th style="width: 200%"><?php echo e(__('messages.pdf.warehouse')); ?></th>
        <th style="width: 200%"><?php echo e(__('messages.pdf.status')); ?></th>
        <th style="width: 200%"><?php echo e(__('messages.pdf.total')); ?></th>
        <th style="width: 300%"><?php echo e(__('messages.pdf.received_amount')); ?></th>
        <th style="width: 300%"><?php echo e(__('messages.pdf.payment_status')); ?></th>
    </tr>
    </thead>
    <tbody>
    <?php $__currentLoopData = $sales; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr align="center">
            <td><?php echo e($sale->reference_code); ?></td>
            <td><?php echo e($sale->customer->name); ?></td>
            <td><?php echo e($sale->warehouse->name); ?></td>
            <?php if($sale->status == \App\Models\Sale::COMPLETED): ?>
                <td>Completed</td>
            <?php elseif($sale->status == \App\Models\Sale::PENDING): ?>
                <td>Pending</td>
            <?php elseif($sale->status == \App\Models\Sale::ORDERED): ?>
                <td>Ordered</td>
            <?php endif; ?>
            <td style="float: left"><?php echo e(number_format($sale->grand_total,2)); ?></td>
            <td><?php echo e(number_format((float)$sale->payments->sum('amount'), 2)); ?></td>
            <?php if($sale->status == \App\Models\Sale::PAID): ?>
                <td>paid</td>
            <?php elseif($sale->status == \App\Models\Sale::UNPAID): ?>
                <td>unpaid</td>
            <?php elseif($sale->status == \App\Models\Sale::PARTIAL_PAID): ?>
                <td>partial</td>
            <?php endif; ?>
            <td></td>
        </tr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </tbody>
</table>
</body>
</html>
<?php /**PATH /home/khaagibs/mrcocorico.site/resources/views/excel/all-sale-report-excel.blade.php ENDPATH**/ ?>