

<?php $__env->startSection('content'); ?>
<!-- Content wrapper scroll start -->
<div class="content-wrapper-scroll">

<!-- Content wrapper start -->
<div class="content-wrapper">

<div>
    <h4>SALES REPORT FROM <strong><?php echo e(request()->date); ?></strong></h4>
</div>

        <!-- Row start -->
        <div class="row gutters">
            <div class="col-xl-4 col-lg-4 col-md-4 col-sm-6 col-12">
                <div class="stats-tile">
                    <div class="sale-icon">
                        <i class="icon-shopping-bag1"></i>
                    </div>
                    <div class="sale-details">
                        <h2><?php echo e(empty($app->currency) ? "GHS" : $app->currency); ?><?php echo number_format($general_total_general - $total_deliveries, 2); ?></h2>
                        <p>Total Net Sales</p>
                    </div>
                </div>
            </div>
            <div class="col-xl-4 col-lg-4 col-md-4 col-sm-6 col-12">
                <div class="stats-tile">
                    <div class="sale-icon">
                        <i class="icon-shopping-bag1"></i>
                    </div>
                    <div class="sale-details">
                        <h2><?php echo e(empty($app->currency) ? "GHS" : $app->currency); ?><?php echo number_format($general_total_house, 2); ?></h2>
                        <p><a href="">No Charge</a></p>
                    </div>
                </div>
            </div>
            <div class="col-xl-4 col-lg-4 col-md-4 col-sm-12 col-12">
                <div class="stats-tile">
                    <div class="sale-icon">
                        <i class="icon-check-circle"></i>
                    </div>
                    <div class="sale-details">
                        <h2><?php echo e(empty($app->currency) ? "GHS" : $app->currency); ?><?php echo number_format($general_total_reject, 2); ?></h2>
                        <p><a href="#">Rejected Item</a></p>
                    </div>
                </div>
            </div>
        </div>


    <!-- Row start -->
    <div class="row gutters">
        <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
            
            <div class="card">
            <div class="card-header">
            <form action="<?php echo e(route('allDepartmentSummary')); ?>">
                    <input type="text" value="<?php echo e(request()->date); ?>" hidden name="date">
                    <button class="btn btn-outline-primary">Category Report</button>
                    </form>
                    <form action="<?php echo e(route('allItemSummary')); ?>">
                    <input type="text" value="<?php echo e(request()->date); ?>" name="date" hidden>
                    <button class="btn btn-primary">Product Report</button>
                    </form>
                </div>
                <div class="card-body">
                    
                    <div class="table-responsive">
                    <table id="copy-print-csv" class="table v-middle">
                                <thead>
                                    <tr>
                                        <th>Order No.</th>
                                        <th>Ordered Date</th>
                                        <th>Product</th>
                                        <th>Quantity</th>												
                                        <th>Unit Price</th>
                                        <th>Category</th>
                                        <th>Total Price</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php $__currentLoopData = $sales_today_general; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td>#<?php echo e($list->invoice_number); ?></td>
                                        <td><?php echo e($list->created_at); ?></td>
                                        <td>
                                        <?php echo e(@strtoupper($list->invoice_product_name)); ?>

                                        </td>
                                        <td>
                                            <?php echo e($list->invoice_quantity); ?>

                                        </td>
                                        <td><?php echo e(empty($app->currency) ? "GHS" : $app->currency); ?><?php echo number_format($list->invoice_unit_price, 2); ?></td>
                                        <td> <?php echo e(@strtoupper($list->invoice_category)); ?></td>
                                        <td><?php echo e(empty($app->currency) ? "GHS" : $app->currency); ?><?php echo number_format($list->invoice_total_price, 2); ?></td>
                                    </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </tbody>
                            </table>
                    </div>

                </div>
            </div>

        </div>
    </div>
    <!-- Row end -->




    <!-- on the house sales and rejected orders -->

        <!-- Row start -->
        <div class="row gutters">
        <div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">

            <!-- Card start -->
            <div class="card">
                <div class="card-header">
                    <div class="card-title">No Charge</div>
                </div>
                <div class="card-body">
                    
                    <!-- Row start -->
                    <div class="row gutters">
                        <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">        
                        <table                         id="apiCallbacks" class="table custom-table">

                                <thead>
                                    <tr>
                                        <th>Product</th>
                                        <th>Quantity</th>												
                                        <th>Unit Price</th>
                                        <th>Total Price</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php $__currentLoopData = $general_total_house_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td>
                                        <?php echo e(@strtoupper($list->invoice_product_name)); ?>

                                        </td>
                                        <td>
                                            <?php echo e($list->invoice_quantity); ?>

                                        </td>
                                        <td><?php echo e(empty($app->currency) ? "GHS" : $app->currency); ?><?php echo number_format($list->invoice_unit_price, 2); ?></td>
                                        <td><?php echo e(empty($app->currency) ? "GHS" : $app->currency); ?><?php echo number_format($list->invoice_total_price, 2); ?></td>
                                    </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </tbody>
                            </table>

                        </div>
                    </div>
                    <!-- Row end -->

                </div>
            </div>
            <!-- Card end -->

        </div>
        <div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">

            <!-- Card start -->
            <div class="card">
                <div class="card-header">
                    <div class="card-title">Rejected Item</div>
                </div>
                <div class="card-body">
                    
                    <!-- Row start -->
                    <div class="row gutters">
                        <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                            
                        <table id="copy-print-csv" class="table v-middle">
                                <thead>
                                    <tr>
                                        <th>Order No.</th>
                                        <th>Product</th>
                                        <th>Quantity</th>												
                                        <th>Unit Price</th>
                                        <th>Total Price</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php $__currentLoopData = $general_total_reject_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td>#<?php echo e($list->invoice_number); ?></td>
                                        <td>
                                        <?php echo e(@strtoupper($list->invoice_product_name)); ?>

                                        </td>
                                        <td>
                                            <?php echo e($list->invoice_quantity); ?>

                                        </td>
                                        <td><?php echo e(empty($app->currency) ? "GHS" : $app->currency); ?><?php echo number_format($list->invoice_unit_price, 2); ?></td>
                                        <td><?php echo e(empty($app->currency) ? "GHS" : $app->currency); ?><?php echo number_format($list->invoice_total_price, 2); ?></td>
                                    </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </tbody>
                            </table>
                           
                        
                    </div>
                    <!-- Row end -->

                </div>
            </div>
            <!-- Card end -->

        </div>
    </div>
    <!-- Row end -->

    <!-- Row start -->
    <div class="row gutters">
        <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
            
            <div class="card">
                <div class="card-body">
                <div>Track Sales by type(Deleivery or Counter)</div>
                    <div class="table-responsive">
                    <table id="copy-print-csv" class="table v-middle">
                            <thead>
                                <tr>
                                  <th>Sale Category</th>
                                  <th>Description</th>
                                  <th>Actions</th>
                                </tr>
                            </thead>
                            <tbody>
                                
                                <tr>												  
                                  <td>Delivery</td>
                                  <td>view delivery and call center sales report</td>
                                  <td>
                                  <form action="<?php echo e(route('getDeliveryReportDate')); ?>" method="get">
                                        <?php echo csrf_field(); ?>
                                        <input type="text" name="category" hidden value="Delivery">
                                        <input type="text" readonly hidden name="date" value="<?php echo e(request()->date); ?>">
                                        <button type="submit" class="btn btn-outline-primary btn-sm"> 
                                        view report
                                        </button>
                                    </form>
                                  </td>
                                </tr>

                                <tr>												  
                                  <td>Counter</td>
                                  <td>Display [Walk in customer sales report]</td>
                                  <td>
                                  <form action="<?php echo e(route('getDeliveryReportDate')); ?>" method="get">
                                        <?php echo csrf_field(); ?>
                                        <input type="text" name="category" hidden value="Counter">
                                        <input type="text" readonly hidden name="date" value="<?php echo e(request()->date); ?>">
                                        <button type="submit" class="btn btn-outline-primary btn-sm"> 
                                        view report
                                        </button>
                                    </form>
                                  </td>
                                </tr>
                                
                            </tbody>
                    </table>
                    </div>

                </div>
            </div>

        </div>
    </div>
    <!-- Row end -->


</div>
<!-- Content wrapper end -->

</div>
</div>


<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/morttacy/morttsonsposfiles/resources/views/sales/general-sales-report.blade.php ENDPATH**/ ?>