KUJUNTI.ID MINISH3LL
Path : /var/www/html/jewelry-pos/storage/framework/views/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/jewelry-pos/storage/framework/views/31fb68b99ccd77557ef9141402b22064.php


<?php $__env->startSection('content'); ?>
    <div class="" style="display: flex;justify-content: center;width: 100%;height: 100%;background-color: #eee;">
        <div class="text-center mt-4 ml-4 notPrint" style="width: 5%;; height: 50%;">
            <a href="<?php echo e(route('build-stock-product-date.index' , $id)); ?>" id="back" name="back" class="btn-sm btn-danger mt-6 fw-bold notPrint" style="cursor: pointer;color: white;">Back</a>
        </div>
        <div class="" style="height: 100%;width: 90%;">
            <div class="text-center bg-white print" id="print" style="width: 100%;height: 100%;margin: auto;color: rebeccapurple">
                <div class="row" style="display: flex;justify-content: center;align-items: center;color: rebeccapurple;">
                    <div class="col-sm-6 col-xl-6 p-2" style="border: 1px solid rebeccapurple;display: flex;justify-content: center;align-items: center;">
                        <h1 style="font-weight: bold;font-size: 24px"><?php echo e($settings_->shop_name); ?></h1>
                    </div>
                </div>
                <div class="row m-2">
                    <div class="col-sm-6 col-xl-8 text-left mt-4" style="font-size: 14px;">
                        <?php echo e(__('message.user')); ?> : <b><?php echo e(Auth::user()->name); ?></b>
                    </div>
                    <div class="col-sm-6 col-xl-4 text-right mt-4" style="font-size: 14px;">
                        <?php echo e(__('message.invoice date')); ?> : <b><?php echo e(now()->format('d-m-Y H:i')); ?></b>
                    </div>
                </div>
                <div class="row m-2">
                    <div class="col-sm-8 col-xl-8 text-left mt-4" style="font-size: 14px">
                        <?php echo e(__('message.location')); ?> : <b><?php echo e($settings_->address); ?></b>
                    </div>
                    <div class="col-sm-4 col-xl-4 text-right mt-4" style="font-size: 14px;">
                        <?php echo e(__('message.phone number')); ?> : <b><?php echo e($settings_->phone); ?></b>
                    </div>
                </div>
                <div class="row m-2">
                    <div class="col-sm-8 col-xl-8 text-left mt-4" style="font-size: 14px">
                        <?php echo e(__('message.date')); ?> : <b><?php echo e(\Carbon\Carbon::parse($date)->format('d-m-Y H:i')); ?></b>
                    </div>
                    <div class="col-sm-4 col-xl-4 text-right mt-4" style="font-size: 14px;">
                    </div>
                </div>
                <div class="row m-2">
                    <div class="col-sm-4 col-xl-4 text-right mt-4" style="font-size: 14px;">
                    </div>
                </div>
                <div class="row mt-4" style="display: flex;justify-content: center;align-items: center;color: rebeccapurple;">
                    <div class="col-sm-6 col-xl-12 p-2 text-center" style="display: flex;justify-content: center;align-items: center;">
                        <h1 style="font-weight: bold;border-bottom: 2px solid rebeccapurple;font-size: 18px" class=""><?php echo e(__('message.stock balance report')); ?></h1>
                    </div>
                </div>
                <div class="row ml-2 mt-2" style="width: 98%;display: flex;justify-content: center;align-items: center">
                    <table class="table table-bordered table-hover table-striped">
                        <thead class="bg-fusion-50 text-center">
                        <tr>
                            <th>#</th>
                            <th><?php echo e(__('message.product category')); ?></th>
                            <th><?php echo e(__('message.qty')); ?></th>
                            <th><?php echo e(__('message.cost')); ?></th>
                            <th><?php echo e(__('message.original wages')); ?></th>
                            <th><?php echo e(__('message.total cost supplier')); ?></th>
                        </tr>
                        </thead>
                        <tbody>
                            <?php
                                $main_qty = 0;
                                $child_qty = 0;
                                $sum_cost_product_main = 0;
                                $sum_cost_product_main1 = 0;
                                $sum_cost_fee_main = 0;
                                $sum_cost_product_child = 0;
                                $sum_cost_product_child1 = 0;
                                $sum_cost_fee_child = 0;
                                $gold_qty = 0;
                                $sum_cost_product_gold = 0;
                                $sum_cost_product_gold1 = 0;
                                $sum_cost_fee_gold = 0;
                                $chg = 0;
                                $main = 0;
                            ?>
                            <?php $__currentLoopData = $productCategoriesWithoutP; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $productCategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php
                                    $dates = \Carbon\Carbon::parse($date)->format('Y-m-d');
                                    //  $pro = $productCategory->buildStockProduct->whereBetween('created_at' , [$dates . ' 00:00:00' , $dates . ' 23:59:59'])->where('for_sale' , 1);
                                     $pro = $build_stocks->where('product_category_id' , $productCategory->id)->where('is_active' , true)->where('qty' , '>' , 0)->where('for_sale' , 1);

                                ?>
                                    <tr>
                                        <td>
                                            <?php if($index == 3): ?>
                                                <?php echo e($index); ?>

                                            <?php elseif($index == 4): ?>
                                                <?php echo e($index); ?>

                                            <?php else: ?>
                                                <?php echo e($index+1); ?>

                                            <?php endif; ?>
                                        </td>
                                        <td><?php echo e($productCategory->name); ?></td>
                                        <td><?php echo e($pro->sum('qty')); ?></td>
                                        <?php if($productCategory->fixed_price == true): ?>
                                            <td><?php echo e(number_format($pro->sum('cost') , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                            <td><?php echo e(number_format($pro->sum('original_wages') , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                            <td style="font-weight: bold !important"><?php echo e(number_format($pro->sum('cost')+$pro->sum('original_wages') , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                        <?php else: ?>
                                            <td><?php echo e(number_format($pro->sum('cost')-$pro->sum('original_wages') , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                            <td><?php echo e(number_format($pro->sum('original_wages') , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                            <td><?php echo e(number_format($pro->sum('cost') , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                        <?php endif; ?>
                                    </tr>
                                    <?php
                                        $main_qty += $pro->sum('qty');
                                        if($productCategory->fixed_price==true){
                                            $sum_cost_product_main1 += $pro->sum('cost');
                                        }else{
                                            $sum_cost_product_main1 += $pro->sum('cost')-$pro->sum('original_wages');
                                        }
                                        $sum_cost_product_main += $pro->sum(function ($item) {
                                            return $item->cost * $item->qty;
                                        });
                                        $sum_cost_fee_main += $pro->sum('original_wages');
                                        $main = $productCategories->count('id');
                                    ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php $__currentLoopData = $child_gold; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $child_category_gold): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php
                                        // $child_gold_pro = $child_category_gold->buildStockProduct->where('for_sale' , 1);
                                        $child_gold_pro = $build_stocks->where('product_category_id' , $child_category_gold->id)->where('for_sale' , 1);
                                    ?>
                                        <tr>
                                        <td>
                                            <?php echo e($main+$key); ?>

                                            <!-- <?php if($key == 0): ?>
                                                <?php echo e($index+2); ?>

                                            <?php else: ?>
                                                <?php echo e($index+2+$key); ?>

                                            <?php endif; ?> -->
                                        </td>
                                            <td><?php echo e($child_category_gold->name); ?></td>
                                            <td><?php echo e($child_gold_pro->sum('qty')); ?></td>
                                            <td><?php echo e(number_format($child_gold_pro->sum('cost') - $child_gold_pro->sum('original_wages') , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                            <td><?php echo e(number_format($child_gold_pro->sum('original_wages') , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                            <td><?php echo e(number_format($child_gold_pro->sum('cost') , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                        </tr>
                                        <?php
                                        $gold_qty += $child_gold_pro->sum('qty');
                                        $sum_cost_product_gold1 += $child_gold_pro->sum('cost');
                                        $sum_cost_product_gold += $child_gold_pro->sum(function ($item1) {
                                            return $item1->cost * $item1->qty;
                                        });
                                        $sum_cost_fee_gold += $child_gold_pro->sum('original_wages');
                                        $chg = $child_gold->count('id');
                                    ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php $__currentLoopData = $child_p; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if($p->name != 'ផ្លាកទីនដុំ'): ?>
                                    <?php
                                        // $child_gold_pro = $child_category_gold->buildStockProduct->where('for_sale' , 1);
                                        $platin = $build_stocks->where('product_category_id' , $p->id)->where('for_sale' , 1);
                                    ?>
                                    <tr>
                                        <td>
                                            <?php echo e($chg+$main+$i); ?>

                                            <!-- <?php if($i == 0): ?>
                                                <?php echo e($key+$index); ?>

                                            <?php else: ?>
                                                <?php echo e($key+$index+$i); ?>

                                            <?php endif; ?> -->
                                        </td>
                                        <td><?php echo e($p->name); ?></td>
                                        <td><?php echo e($platin->sum('qty')); ?></td>
                                        <?php if($p->fixed_price == true): ?>
                                            <td><?php echo e(number_format($platin->sum('cost') , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                        <?php else: ?>
                                            <?php if($p->name == 'ផ្លាកទីនទឹក 3'): ?>
                                                <td><?php echo e(number_format(floor(($platin->sum('cost') - $platin->sum('original_wages')) * 100) / 100, 2)); ?>


                                                    <?php echo e($currency_->currency_symbol); ?></td>
                                            <?php else: ?>
                                                <td><?php echo e(number_format($platin->sum('cost') - $platin->sum('original_wages') , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                            <?php endif; ?>
                                        <?php endif; ?>
                                        <td><?php echo e(number_format($platin->sum('original_wages') , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                        <td><?php echo e(number_format($platin->sum('cost') , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                    </tr>
                                    <?php
                                        $child_qty += $platin->sum('qty');
                                        if($p->fixed_price==true){
                                            $sum_cost_product_child1 += $platin->sum('cost');
                                        }else{
                                            $sum_cost_product_child1 += $platin->sum('cost')-$platin->sum('original_wages');
                                        }
                                        $sum_cost_product_child += $platin->sum(function ($item2) {
                                            return $item2->cost * $item2->qty;
                                        });
                                        $sum_cost_fee_child += $platin->sum('original_wages');
                                    ?>
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                    <td colspan="2" style="font-weight: bold !important;font-size:18px"><?php echo e(__('message.total')); ?> : </td>
                                    <td style="font-weight: bold !important;font-size:18px"><?php echo e($main_qty + $child_qty + $gold_qty); ?></td>
                                    <td style="font-weight: bold !important;font-size:18px"><?php echo e(number_format(($sum_cost_product_main1)+($sum_cost_product_child1)+($sum_cost_product_gold1) , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                    <td style="font-weight: bold !important;font-size:18px"><?php echo e(number_format($sum_cost_fee_main+$sum_cost_fee_child+$sum_cost_fee_gold , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                    <td style="font-weight: bold !important;font-size:18px"><?php echo e(number_format(($sum_cost_product_main1+$sum_cost_product_child1+$sum_cost_product_gold1)+($sum_cost_fee_main+$sum_cost_fee_child+$sum_cost_fee_gold) , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                </tr>
                        <!-- <?php if($productCategory): ?>
                            <tr style="font-weight:400;font-size:16px;background-color: #99b288;">
                                <th colspan="5" style="text-align: right;">
                                    <?php echo e(__('message.total')); ?> :
                                </th>
                                <th colspan="" style="text-align: left;" class="credit">
                                    <?php echo e(number_format($totalQty,0)); ?>

                                </th>
                                <th colspan="" style="text-align: left;" class="credit">
                                    <?php echo e(number_format($totalCost - $totalOriginalWage,2)); ?> <?php echo e($currency_->currency_symbol??''); ?>

                                </th>
                                <th colspan="" style="text-align: left;" class="credit">
                                    <?php echo e(number_format($totalOriginalWage,2)); ?> <?php echo e($currency_->currency_symbol??''); ?>

                                </th>
                                <th class="credit"><?php echo e(number_format($totalCost , 2)); ?></th>
                                <th colspan="" class="credit">
                                    <?php echo e(number_format($totalWeight ,2)); ?>

                                </th>
                                <th colspan="" style="text-align: left;" class="credit">
                                    <?php echo e(number_format($totalGoldWeight,2)); ?>

                                </th>
                                <th></th>
                                <th class="credit">
                                    <?php echo e(number_format($totalWage,2)); ?> <?php echo e($currency_->currency_symbol??''); ?>

                                </th>
                                <th colspan="" style="text-align: center;" class="credit">
                                    <?php echo e(number_format($totalPrice,2)); ?> <?php echo e($currency_->currency_symbol??''); ?>

                                </th>

                            </tr>
                        <?php else: ?>
                            <tr style="font-weight:400;font-size:16px;background-color: #99b288;">
                                <th colspan="5" style="text-align: right;">
                                    <?php echo e(__('message.total')); ?> :
                                </th>
                                <th colspan="" style="text-align: left;" class="credit">
                                    <?php echo e(number_format($totalQty,0)); ?>

                                </th>
                                <th colspan="" style="text-align: left;" class="credit">
                                    <?php echo e(number_format($totalCost - $totalOriginalWage,2)); ?> <?php echo e($currency_->currency_symbol??''); ?>

                                </th>
                                <th colspan="" style="text-align: left;" class="credit">
                                    <?php echo e(number_format($totalOriginalWage,2)); ?> <?php echo e($currency_->currency_symbol??''); ?>

                                </th>
                                <th class="credit"><?php echo e(number_format($totalCost , 2)); ?></th>
                                <th colspan="" class="credit">
                                    <?php echo e(number_format($totalWeight ,2)); ?>

                                </th>
                                <th colspan="" style="text-align: left;" class="credit">
                                </th>
                                <th></th>
                                <th class="credit">
                                </th>
                                <th colspan="" style="text-align: center;" class="credit">
                                </th>

                            </tr>
                        <?php endif; ?> -->
                        </tbody>
                    </table>
                </div>


                <div class="row mt-4" style="display: flex;justify-content: center;align-items: center;color: rebeccapurple;">
                    <div class="col-sm-6 col-xl-12 p-2 text-center" style="display: flex;justify-content: center;align-items: center;">
                        <h1 style="font-weight: bold;border-bottom: 2px solid rebeccapurple;font-size: 18px" class=""><?php echo e(__('message.not for sale')); ?></h1>
                    </div>
                </div>
                <div class="row ml-2 mt-2" style="width: 98%;display: flex;justify-content: center;align-items: center">
                    <table class="table table-bordered table-hover table-striped">
                        <thead class="bg-fusion-50 text-center">
                        <tr>
                            <th>#</th>
                            <th><?php echo e(__('message.product category')); ?></th>
                            <th><?php echo e(__('message.qty')); ?></th>
                            <th><?php echo e(__('message.cost')); ?></th>
                            <th><?php echo e(__('message.original wages')); ?></th>
                            <th><?php echo e(__('message.total cost supplier')); ?></th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php
                            $totalCostAccessory = 0;
                            $totalOriginalWagesAccessory = 0;
                            $totalSumCostAccessory = 0;
                        ?>
                        <?php $__currentLoopData = $accessories->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $accessory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td>
                                    <?php echo e($index+1); ?>

                                </td>
                                <td><?php echo e($accessory->productCategory->name); ?></td>
                                <td><?php echo e($accessory->qty); ?></td>
                                <?php if($accessory->productCategory->fixed_price == true || $accessory->fixed_price == true): ?>
                                    <td><?php echo e(number_format($accessory->cost($accessory->weight) , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                    <td><?php echo e(number_format($accessory->original_wages , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                    <td><?php echo e(number_format($accessory->cost($accessory->weight) + $accessory->original_wages , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                <?php else: ?>
                                    <td><?php echo e(number_format($accessory->cost($accessory->weight) - $accessory->original_wages , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                    <td><?php echo e(number_format($accessory->original_wages , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                    <td><?php echo e(number_format($accessory->cost($accessory->weight) , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                                <?php endif; ?>
                            </tr>
                            <?php
                                if($accessory->productCategory->fixed_price == true || $accessory->fixed_price == true){
                                    $totalCostAccessory += ($accessory->cost($accessory->weight));
                                    $totalOriginalWagesAccessory += $accessory->original_wages;
                                    $totalSumCostAccessory += $accessory->cost($accessory->weight) + $accessory->original_wages;
                                }else{
                                    $totalCostAccessory += ($accessory->cost($accessory->weight) - $accessory->original_wages);
                                    $totalOriginalWagesAccessory += $accessory->original_wages;
                                    $totalSumCostAccessory += $accessory->cost($accessory->weight);
                                }
                            ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td colspan="2" style="font-weight: bold !important;font-size:18px"><?php echo e(__('message.total')); ?> : </td>
                            <td style="font-weight: bold !important;font-size:18px"><?php echo e($totalQtyAccessory); ?></td>
                            <td style="font-weight: bold !important;font-size:18px"><?php echo e(number_format($totalCostAccessory , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                            <td style="font-weight: bold !important;font-size:18px"><?php echo e(number_format($totalOriginalWagesAccessory , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                            <td style="font-weight: bold !important;font-size:18px"><?php echo e(number_format($totalSumCostAccessory , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="text-center mt-4 mr-4 notPrint" style="width: 5%;; height: 50%;">
            <a id="print" name="print" class="btn-sm btn-info mt-6 fw-bold notPrint" onclick="return print()" style="cursor: pointer;color: white;">Print</a>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
    <script>
        window.print();
        setTimeout(function closePrintView(){
            window.location.href = "<?php echo e(route('build-stock-product-date.index', $id)); ?>?date=<?php echo e($date); ?>";
        }, 1000);
        $(document).ready(function() {
            $("#js-nav-menu").removeClass('active');
            $("#js-nav-menu li ul li").removeClass('active');
            $("#menu_stock_list").addClass('active open');
            $("#collapse_stock").addClass('collapse in')
            $("#menu_building_stock").addClass('active')
        })
    </script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('meta'); ?>
    <title><?php echo e(__('message.building stock')); ?> - <?php echo e($settings_->shop_name); ?></title>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.admin-main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/jewelry-pos/resources/views/build-stock-dates/print-summary.blade.php ENDPATH**/ ?>

© KUJUNTI.ID