Server : Apache System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 User : vapecompany ( 2719) PHP Version : 7.4.33 Disable Function : NONE Directory : /home/vapecompany/demo.vapecompany.com.bd/storage/framework/views/ |
Upload File : |
<!-- Column --> <div class="card"> <div class="card-body"> <h4 class="card-title">Stock Summary</h4> <div class="row"> </div> <?php if($stocks->count() > 0): ?> <div style="padding: 10px;margin-bottom: 10px;" role="group" class="btn-group btn-group-sm filter-pdf-btn"> <form action="<?php echo e(url('admin/reports/stock_summary/pdf')); ?>" method="get"> <input type="hidden" name="action_type" value="download"> <input type="hidden" name="category" value="<?php echo e($category_id); ?>"> <input type="hidden" name="category" value="<?php echo e($category_id); ?>"> <input type="hidden" name="product" value="<?php echo e($product); ?>"> <input type="hidden" name="type" value="product_wise"> <button style="padding: 10px" type="submit" class="btn btn-secondary rounded-0 btn-sm pl-2 pr-2"><i class="fas fa-file-pdf mr-2"></i> PDF </button> </form> <form action="<?php echo e(url('admin/reports/stock_summary/pdf')); ?>" method="get" target="_blank"> <input type="hidden" name="action_type" value="print"> <input type="hidden" name="category" value="<?php echo e($category_id); ?>"> <input type="hidden" name="category" value="<?php echo e($category_id); ?>"> <input type="hidden" name="product" value="<?php echo e($product); ?>"> <input type="hidden" name="type" value="product_wise"> <button style="padding: 10px" type="submit" class="btn btn-warning btn-sm rounded-0 pl-2 pr-2"><i class="fa fa-print mr-2"></i> Print </button> </form> <form action="<?php echo e(url('admin/reports/stock_summary/pdf')); ?>" method="get"> <input type="hidden" name="action_type" value="excel"> <input type="hidden" name="category" value="<?php echo e($category_id); ?>"> <input type="hidden" name="category" value="<?php echo e($category_id); ?>"> <input type="hidden" name="product" value="<?php echo e($product); ?>"> <input type="hidden" name="type" value="product_wise"> <button style="padding: 10px" type="submit" class="btn btn-secondary btn-sm rounded-0 pl-2 pr-2"><i class="fas fa-file-excel mr-2"></i> Excel </button> </form> </div> <div class="table-responsive"> <table id="dtables" class="table table-striped table-bordered dt-responsive nowrap" style="width:100%"> <thead> <tr> <th class="min-mobile">SL</th> <th class="not-mobile">category</th> <th class="not-mobile">Product Name</th> <?php $__currentLoopData = $colors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $color): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <th class="not-mobile"><?php echo e($color->color_name); ?></th> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <th class="not-mobile">Total</th> </tr> </thead> <tbody> <?php $i=1;$g_total=0;$tatal_arr=array(); ?> <?php $__currentLoopData = $stocks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $chalan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td class="min-mobile"><?php echo e($i); ?></td> <td class="min-mobile"><?php echo e($chalan->category->category_name); ?></td> <td class="not-mobile"><?php echo e($chalan->product_name); ?></td> <?php $total=0; ?> <?php $__currentLoopData = $colors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $color): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <td class="not-mobile"> <?php $q= $chalan->barcodes->where('color_id',$color->color_id)->sum('quantity'); if(!isset($tatal_arr[$color->color_id])){ $tatal_arr[$color->color_id]=0; } $tatal_arr[$color->color_id] += $q; $total += $q; ?> <?php echo e($q); ?> </td> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <td class="min-mobile"><?php echo e($total); ?></td> </tr> <?php $g_total += $total; $i++; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <tr> <td style="text-align:right;" colspan="4"><strong>Total:</strong></td> <?php $__currentLoopData = $colors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $color): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <td><strong><?php echo e($tatal_arr[$color->color_id]); ?></strong></td> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <td><strong><?php echo e($g_total); ?></strong></td> </tr> </tbody> </table> </div> <?php else: ?> <div style="padding: 20px;color:red;text-align:center;font-size: 25px;" >Data Not Found</div> <?php endif; ?> </div> </div> </div> <?php /**PATH /home/vapecompany/Demo.vapecompany.com.bd/resources/views/backend/reports/tables/stock_summary_c1.blade.php ENDPATH**/ ?>