/
home
/
sjslayjy
/
public_html
/
olddevlok
/
storage
/
framework
/
views
/
Upload File
HOME
<?php $__env->startSection('style'); ?> <?php echo e(Html::style("//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css")); ?> <?php $__env->stopSection(); ?> <div class="tabbable"> <ul class="nav nav-tabs padding-12 tab-color-blue background-blue" id="myTab4"> <li class="active"> <a data-toggle="tab" href="#today_sales">Sales</a> </li> <li class=""> <a data-toggle="tab" href="#today_purchase">Purchase</a> </li> <li><input type="text" class="form-control datepicker" value="<?php echo e($date); ?>" placeholder="date" onchange="getSaleAndPurchase(this.value)"></li> </ul> <div class="tab-content" id=""> <div id="today_sales" class="tab-pane active"> <table class="table table-bordered table-striped"> <thead class="thin-border-bottom"> <tr> <th>From Account</th> <th>Product</th> <th>Quantity</th> <th>Value</th> </tr> </thead> <tbody> <?php if(count($today_sales)>0): ?> <?php $__currentLoopData = $today_sales; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($sale['party']); ?></td> <td><?php echo e($sale['product']); ?></td> <td><?php echo e($sale['total_sale_quantity']); ?></td> <td>Rs <?php echo e($sale['total_sale_amount']); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <tr><td colspan="4">No record found</td></tr> <?php endif; ?> </tbody> </table> </div> <div id="today_purchase" class="tab-pane"> <table class="table table-bordered table-striped"> <thead class="thin-border-bottom"> <tr> <th>From Account</th> <th>Product</th> <th>Quantity</th> <th>Value</th> </tr> </thead> <tbody> <?php if(count($today_purchase)>0 || count($today_purchase)>0): ?> <?php $__currentLoopData = $today_purchase; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $purchase): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($purchase['party']); ?></td> <td><?php echo e($purchase['product']); ?></td> <td><?php echo e($purchase['total_purchase_quantity']); ?></td> <td>Rs <?php echo e($purchase['total_purchase_amount']); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <tr><td colspan="4">No record found</td></tr> <?php endif; ?> </tbody> </table> </div> </div> </div> <?php $__env->startSection('script'); ?> <?php echo e(Html::script("/assets/js/jquery-2.1.4.min.js")); ?> <?php echo e(Html::script("https://code.jquery.com/ui/1.12.1/jquery-ui.js")); ?> <script> jQuery(function($) { $( ".datepicker" ).datepicker({ onSelect: function(dateText) { getSaleAndPurchase(this.value); } }); }); </script> <?php $__env->stopSection(); ?><?php /**PATH /home/pmmsanvp/public_html/srt/resources/views/dashboard/get-sales-and-purchase.blade.php ENDPATH**/ ?>