| Server IP : 103.161.17.216 / Your IP : 216.73.216.1 Web Server : nginx/1.18.0 System : Linux tipsysaigoncharming 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/charming.vn/resources/views/pages/ |
Upload File : |
@extends('layout')
@section('content')
<!-- MAIN -->
<main class="site-main">
<div class="block-section-top block-section-top12">
<div class="container">
<div class="box-section-top">
<!-- categori -->
<div class="block-nav-categori">
<div class="block-title">
<span>DANH MỤC</span>
</div>
<div class="block-content">
<ul class="ui-categori">
<li class="parent">
<a href="">
{{-- <span class="icon"><img src="images/icon/index3/nav-cat1.png" alt="nav-cat"></span> --}}
ĐỒ NGỦ
</a>
<span class="toggle-submenu"></span>
<div class="submenu" style="background-image: url(images/media/index1/bgmenu.jpg);">
<ul class="categori-list clearfix">
@foreach( $cate_product as $key=> $cate)
@if($cate->cate->cate_id==3)
<li class="col-sm-3">
<strong class="title"><a href="">{{$cate->category_name}}</a></strong>
<ul>
@foreach($all_product as $key=>$pro)
@if ($pro->category_id==$cate->category_id )
<li><a href="{{URL::to('/chi-tiet-san-pham',$pro->slug_product)}}">{{$pro->product_name }} </a></li>
@endif
@endforeach
</ul>
</li>
@endif
@endforeach
</div>
</li>
<li class="parent">
<a href="">
{{-- <span class="icon"><img src="public/uploads/icon/nav-cat2.png" alt="nav-cat"></span> --}}
NƯỚC HOA - MỸ PHẨM
</a>
<span class="toggle-submenu"></span>
<div class="submenu">
@foreach($slide as $key=>$slider7)
@if ($slider7->slider_code==7)
<div class="categori-img">
<a href=""><img src="public/uploads/slider/{{$slider7->slider_image}}" alt="categori-img"></a>
</div>
@endif
@endforeach
<ul class="categori-list">
@foreach( $cate_product as $key=> $cate)
@if($cate->cate->cate_id==4)
<li class="col-sm-3">
<strong class="title"><a href="">{{$cate->category_name}}</a></strong>
@foreach($all_product as $key=>$pro)
@if ($pro->category_id==$cate->category_id )
<ul>
<li><a href="{{URL::to('/chi-tiet-san-pham',$pro->slug_product)}}">{{$pro->product_name }} </a></li>
</ul>
@endif
@endforeach
</li>
@endif
@endforeach
</ul>
</div>
</li>
<li class="parent">
<a href="">
{{-- <span class="icon"><img src="images/icon/index3/nav-cat3.png" alt="nav-cat"></span> --}}
SẢN PHẨM NỔI BẬT
</a>
<span class="toggle-submenu"></span>
<div class="submenu">
<strong class="subtitle"><span>SẢN PHẨM NỔI BẬT</span></strong>
<div class="owl-carousel"
data-nav="true"
data-dots="false"
data-margin="30"
data-autoplayTimeout="300"
data-autoplay="true"
data-loop="true"
data-responsive='{
"0":{"items":1},
"380":{"items":1},
"480":{"items":1},
"600":{"items":1},
"992":{"items":4}
}'>
@foreach($all_attr as $key=>$product)
<div class="product-item product-item-opt-1">
<div class="product-item-info"><form>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
</div>
<div class="product-item-detail">
<strong class="product-item-name"><a href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}">{{$product->product->product_name}}</a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ </span>
</div>
</div>
</div>
</div>
@endforeach
</div>
</div>
</li>
@foreach( $cate_product as $key=> $cate)
@if($cate->cate->cate_id==5)
<li>
<a href="{{URL::to('/',$cate->slug_category_product)}}">
{{$cate->category_name}}
</a>
</li>
@endif
@endforeach
</ul>
<div class="view-all-categori">
<a class="open-cate btn-view-all">Xem thêm </a>
</div>
</div>
</div><!-- categori -->
<!-- block slide top -->
<div class="block-slide-main slide-opt-12">
<!-- slide -->
<div class="owl-carousel "
data-nav="true"
data-dots="true"
data-margin="0"
data-items='1'
data-autoplayTimeout="700"
data-autoplay="true"
data-loop="true">
@foreach($slide as $key=>$slider1)
@if ($slider1->slider_code==1)
<div class="item item1">
<img src="public/uploads/slider/{{$slider1->slider_image}}" alt="slide1" class="img-slide">
<div class="description">
<span class="subtitle " >{{$slider1->slider_name}}</span>
<span class="title">{{$slider1->slider_title}} </span>
<span class="des">{{$slider1->slider_desc}}</span>
<a href="" class="btn view-opt12">Đăng Ký Ngay </a>
</div>
</div>
@endif
@endforeach
</div> <!-- slide -->
</div><!-- block slide top -->
<!--banner -->
<div class="col-right">
@foreach($slide as $key=>$slider2)
@if ($slider2->slider_code==2)
<div class="banner-slide">
<a href="" class="box-img"><img src="public/uploads/slider/{{$slider2->slider_image}}" alt="img"></a>
</div>
@endif
@endforeach
<div class="block-logo-brand">
<div class="owl-carousel"
data-nav="true"
data-dots="false"
data-margin="0"
data-responsive='{
"0":{"items":1},
"480":{"items":1},
"768":{"items":1},
"992":{"items":1},
"1200":{"items":1}
}'>
@foreach($slide as $key=>$slider3)
@if ($slider3->slider_code==3)
<div class="item">
<img src="public/uploads/slider/{{$slider3->slider_image}}" alt="img">
</div>
@endif
@endforeach
</div>
</div>
</div><!--banner -->
</div>
</div>
</div>
<!-- banner -->
<div class="block-banner-main-opt12">
<div class="container">
<div class="row">
@foreach($slide as $key=>$slider4)
@if ($slider4->slider_code==4)
<div class="col-md-4">
{{-- <a href="" class="box-img"><img src="public/uploads/slider/{{$slider4->slider_image}}" alt="img"></a> --}}
<div class="item item1">
<img src="public/uploads/slider/{{$slider4->slider_image}}" alt="img">
<div class="description">
<span class="title">new look book </span>
<span class="des">watches </span>
<a href="" class="btn btn-shop-now">SHOP NOW</a>
</div>
</div>
</div>
@endif
@endforeach
</div>
</div>
</div><!-- banner -->
<div class="container">
<div class="row">
<div class="col-md-8 col-lg-9">
<!-- block -floor -products / floor 1 -->
<div class="block-floor-products block-floor-products-opt12 floor-products1" id="floor0-1">
<div class="block-title ">
<div class="box-categori dropdown">
<a data-toggle="dropdown" role="button" href="#" class="dropdown-toggle "><span>Danh mục SP</span></a>
<ul class="dropdown-menu">
@foreach( $cate_product as $key=> $cate)
@if($cate->cate->cate_id==3)
<li >
<a href="">
{{-- <span class="icon">
<img src="images/icon/index12/nav-cat1.png" alt="nav-cat" class="img-show">
<img src="images/icon/index12/nav-cat1-hover.png" alt="nav-cat" class="img-hover">
</span> --}}
<a href="{{URL::to('/',$cate->slug_category_product)}}">
{{$cate->category_name}}
</a>
</li>
@endif
@endforeach
</ul>
</div>
<span class="title">
<span class="text">Thời trang </span>
</span>
<div class="links dropdown">
<button class="dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-bars" aria-hidden="true"></i>
</button>
<div class="dropdown-menu" >
<ul >
<li role="presentation" class="active"><a href="#floor1-1" role="tab" data-toggle="tab">Bán tốt nhất</a></li>
<li role="presentation"><a href="#floor1-2" role="tab" data-toggle="tab">Sản phẩm mới </a></li>
<li role="presentation"><a href="#floor1-3" role="tab" data-toggle="tab">Ưa thích nhất </a></li>
</ul>
</div>
</div>
</div>
<div class="block-content">
@foreach($slide as $key=>$slider6)
@if ($slider6->slider_code==6)
<div class="col-banner">
<a href="" class="box-img"><img src="public/uploads/slider/{{$slider6->slider_image}}" alt="baner-floor"></a>
<div class="description">
<span class="subtitle " >{{$slider6->slider_title}}</span>
<span class="title"> {{$slider6->slider_name}}</span>
<a href="{{$slider6->slider_link}}" class="btn view-opt12">SHOP NOW </a>
</div>
</div>
@endif
@endforeach
<div class="col-products tab-content">
<!-- tab 1 -->
<div class="tab-pane active in fade " id="floor1-1" role="tabpanel">
<div class="owl-carousel"
data-nav="true"
data-dots="false"
data-margin="0"
data-responsive='{
"0":{"items":1},
"420":{"items":2},
"600":{"items":3},
"768":{"items":3},
"992":{"items":3},
"1200":{"items":3}
}'>
@foreach($all_attr as $key=>$product)
@if($key%2==0 && $product->product->product_hot==1 && $product->product->category->cate->cate_id==3 )
<div class="item">
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<form>
<span id="input"> </span>
<input type="hidden" value="{{$product->attr_id}}" class="cart_product_id_{{$product->attr_id}}">
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_id_{{$product->attr_id}}">
<input type="hidden" value="{{$product->product->product_name}}" class="cart_product_name_{{$product->attr_id}}">
<input type="hidden" value="{{$product->product_image}}" class="cart_product_image_{{$product->attr_id}} ">
<input type="hidden" value="{{$product->product_price}}" class="cart_product_price_{{$product->attr_id}}" disabled readonly>
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_sku_{{$product->attr_id}}">
<input type="hidden" value="1" class="cart_product_qty_{{$product->attr_id}}">
@csrf
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} Code:{{$product->product_sku}}</a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" data-id_product="{{$product->attr_id}}" class="btn btn-cart add-to-cart" ><span>Thêm giỏ hàng</span></button>
</div>
</form>
</div>
</div>
@elseif($key%2!=0 && $product->product->product_hot==1 && $product->product->category->cate->cate_id==3)
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<form>
<span id="input"> </span>
<input type="hidden" value="{{$product->attr_id}}" class="cart_product_id_{{$product->attr_id}}">
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_id_{{$product->attr_id}}">
<input type="hidden" value="{{$product->product->product_name}}" class="cart_product_name_{{$product->attr_id}}">
<input type="hidden" value="{{$product->product_image}}" class="cart_product_image_{{$product->attr_id}}">
<input type="hidden" value="{{$product->product_price}}" class="cart_product_price_{{$product->attr_id}}">
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_sku_{{$product->attr_id}}">
<input type="hidden" value="1" class="cart_product_qty_{{$product->attr_id}}">
<input type="hidden" value="{{$product->product_desc}}" class="cart_product_desc_{{$product->attr_id}}">
@csrf
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} {{-- <p style="font-size:10;color: red;"> --}}Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" data-id_product="{{$product->attr_id}}" class="btn btn-cart add-to-cart"><span>Thêm giỏ hàng</span></button>
<span class="product-item-label label-new">new</span>
</div>
</form>
</div>
</div>
</div>
@endif
@endforeach
</div>
</div>
<!-- tab 2-->
<div class="tab-pane fade" id="floor1-2" role="tabpanel">
<div class="owl-carousel"
data-nav="true"
data-dots="false"
data-margin="0"
data-responsive='{
"0":{"items":1},
"420":{"items":2},
"600":{"items":3},
"768":{"items":3},
"992":{"items":3},
"1200":{"items":3}
}'>
@foreach($all_attr as $key=>$product)
@if($key%2==0 && $product->product->product_spe==1 && $product->product->category->cate->cate_id==3)
<div class="item">
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<form>
<span id="input"> </span>
<input type="hidden" value="{{$product->product_id}}" class="cart_product_id_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_id_{{$product->attr_id}}">
<input type="hidden" value="{{$product->product->product_name}}" class="cart_product_name_{{$product->product->product_id}}">
<input type="hidden" value="{{$product->product_image}}" class="cart_product_image_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_price}}" class="cart_product_price_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_sku_{{$product->product_id}}">
<input type="hidden" value="1" class="cart_product_qty_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_desc}}" class="cart_product_desc_{{$product->product_id}}">
@csrf
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} <p style="font-size:10;color: red;">Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" data-id_product="{{$product->attr_id}}" class="btn btn-cart add-to-cart" ><span>Thêm giỏ hàng</span></button>
</div>
</form>
</div>
</div>
@elseif($key%2!=0 && $product->product->product_spe==1&& $product->product->category->cate->cate_id==3)
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<form>
<span id="input"> </span>
<input type="hidden" value="{{$product->product_id}}" class="cart_product_id_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_id_{{$product->attr_id}}">
<input type="hidden" value="{{$product->product->product_name}}" class="cart_product_name_{{$product->product->product_id}}">
<input type="hidden" value="{{$product->product_image}}" class="cart_product_image_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_price}}" class="cart_product_price_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_sku_{{$product->product_id}}">
<input type="hidden" value="1" class="cart_product_qty_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_desc}}" class="cart_product_desc_{{$product->product_id}}">
@csrf
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} <p style="font-size:10;color: red;">Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" data-id_product="{{$product->attr_id}}" class="btn btn-cart add-to-cart"><span>Thêm giỏ hàng</span></button>
<span class="product-item-label label-new">new</span>
</div>
</form>
</div>
</div>
</div>
@endif
@endforeach
</div>
</div>
<!-- tab 3 -->
<div class="tab-pane fade" id="floor1-3" role="tabpanel">
<div class="owl-carousel"
data-nav="true"
data-dots="false"
data-margin="0"
data-responsive='{
"0":{"items":1},
"420":{"items":2},
"600":{"items":3},
"768":{"items":3},
"992":{"items":3},
"1200":{"items":3}
}'>
@foreach($all_attr as $key=>$product)
@if($key%2==0 && $product->product->product_like==1&& $product->product->category->cate->cate_id==3)
<div class="item">
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<form>
<span id="input"> </span>
<input type="hidden" value="{{$product->product_id}}" class="cart_product_id_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_id_{{$product->attr_id}}">
<input type="hidden" value="{{$product->product->product_name}}" class="cart_product_name_{{$product->product->product_id}}">
<input type="hidden" value="{{$product->product_image}}" class="cart_product_image_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_price}}" class="cart_product_price_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_sku_{{$product->product_id}}">
<input type="hidden" value="1" class="cart_product_qty_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_desc}}" class="cart_product_desc_{{$product->product_id}}">
@csrf
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} <p style="font-size:10;color: red;">Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" data-id_product="{{$product->attr_id}}"class="btn btn-cart add-to-cart" ><span>Thêm giỏ hàng</span></button>
</div>
</form>
</div>
</div>
@elseif($key%2!=0 && $product->product->product_like==1 && $product->product->category->cate->cate_id==3)
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<div class="product-item-detail">
<span id="input"> </span>
<input type="hidden" value="{{$product->product_id}}" class="cart_product_id_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_id_{{$product->attr_id}}">
<input type="hidden" value="{{$product->product->product_name}}" class="cart_product_name_{{$product->product->product_id}}">
<input type="hidden" value="{{$product->product_image}}" class="cart_product_image_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_price}}" class="cart_product_price_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_sku_{{$product->product_id}}">
<input type="hidden" value="1" class="cart_product_qty_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_desc}}" class="cart_product_desc_{{$product->product_id}}">
@csrf
<strong class="product-item-name"><a href="">{{$product->product->product_name}} <p style="font-size:10;color: red;">Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" data-id_product="{{$product->attr_id}}" class="btn btn-cart add-to-cart"><span>Thêm giỏ hàng</span></button>
<span class="product-item-label label-new">new</span>
</div>
</form>
</div>
</div>
</div>
@endif
@endforeach
</div>
</div>
</div>
</div>
</div><!-- block -floor -products / floor1 :-->
<!-- block -floor -products / floor 2 -->
<div class="block-floor-products block-floor-products-opt12 floor-products2" id="floor0-2">
<div class="block-title ">
<div class="box-categori dropdown">
<a data-toggle="dropdown" role="button" href="#" class="dropdown-toggle "><span>Danh Mục</span></a>
<ul class="dropdown-menu">
@foreach( $cate_product as $key=> $cate)
@if($cate->cate->cate_id==4)
<li >
<a href="">
{{-- <span class="icon">
<img src="images/icon/index12/nav-cat1.png" alt="nav-cat" class="img-show">
<img src="images/icon/index12/nav-cat1-hover.png" alt="nav-cat" class="img-hover">
</span> --}}
<a href="{{URL::to('/',$cate->slug_category_product)}}">
{{$cate->category_name}}
</a>
</li>
@endif
@endforeach
</ul>
</div>
<span class="title">
<span class="text">Nước Hoa</span>
</span>
<div class="links dropdown">
<button class="dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-bars" aria-hidden="true"></i>
</button>
<div class="dropdown-menu" >
<ul >
<li role="presentation" class="active"><a href="#floor2-1" role="tab" data-toggle="tab">Bán tốt nhất </a></li>
<li role="presentation"><a href="#floor2-2" role="tab" data-toggle="tab">Sản phẩm mới </a></li>
<li role="presentation"><a href="#floor2-3" role="tab" data-toggle="tab">Yêu thích nhất </a></li>
</ul>
</div>
</div>
</div>
<div class="block-content">
@foreach($slide as $key=>$slider8)
@if ($slider8->slider_code==8)
<div class="col-banner">
<a href="" class="box-img"><img src="public/uploads/slider/{{$slider8->slider_image}}" alt="baner-floor"></a>
<div class="description">
<span class="subtitle " >{{$slider8->slider_title}}</span>
<span class="title"> {{$slider8->slider_name}}</span>
<a href="{{$slider8->slider_link}}" class="btn view-opt12">SHOP NOW </a>
</div>
</div>
@endif
@endforeach
<div class="col-products tab-content">
<!-- tab 1 -->
<div class="tab-pane active in fade " id="floor2-1" role="tabpanel">
<div class="owl-carousel"
data-nav="true"
data-dots="false"
data-margin="0"
data-responsive='{
"0":{"items":1},
"420":{"items":2},
"600":{"items":3},
"768":{"items":3},
"992":{"items":3},
"1200":{"items":3}
}'>
@foreach($all_attr as $key=>$product)
@if($key%2==0 && $product->product->product_hot==1&& $product->product->category->cate->cate_id==4)
<div class="item">
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<form>
@csrf
<input type="hidden" value="{{$product->product_id}}" class="cart_product_id_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_name}}" class="cart_product_name_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_desc}}" class="cart_product_desc_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_image}}" class="cart_product_image_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_price}}" class="cart_product_price_{{$product->product_id}}">
<input type="hidden" value="1" class="cart_product_qty_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_sku_{{$product->product_id}}">
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} <p style="font-size:10;color: red;">Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" class="btn btn-cart add-to-cart" ><span>Thêm giỏ hàng</span></button>
</div>
</form>
</div>
</div>
@elseif($key%2!=0 && $product->product->product_hot==1&& $product->product->category->cate->cate_id==4)
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} <p style="font-size:10;color: red;">Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" class="btn btn-cart add-to-cart"><span>Thêm giỏ hàng</span></button>
<span class="product-item-label label-new">new</span>
</div>
</div>
</div>
</div>
@endif
@endforeach
</div>
</div>
<!-- tab 2-->
<div class="tab-pane fade" id="floor2-2" role="tabpanel">
<div class="owl-carousel"
data-nav="true"
data-dots="false"
data-margin="0"
data-responsive='{
"0":{"items":1},
"420":{"items":2},
"600":{"items":3},
"768":{"items":3},
"992":{"items":3},
"1200":{"items":3}
}'>
@foreach($all_attr as $key=>$product)
@if($key%2==0 && $product->product->product_spe==1&& $product->product->category->cate->cate_id==4)
<div class="item">
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<form>
@csrf
<input type="hidden" value="{{$product->product_id}}" class="cart_product_id_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_name}}" class="cart_product_name_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_desc}}" class="cart_product_desc_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_image}}" class="cart_product_image_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_price}}" class="cart_product_price_{{$product->product_id}}">
<input type="hidden" value="1" class="cart_product_qty_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_sku_{{$product->product_id}}">
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} <p style="font-size:10;color: red;">Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" class="btn btn-cart add-to-cart" ><span>Thêm giỏ hàng</span></button>
</div>
</form>
</div>
</div>
@elseif($key%2!=0 && $product->product->product_spe==1&& $product->product->category->cate->cate_id==4)
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} <p style="font-size:10;color: red;">Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" class="btn btn-cart add-to-cart"><span>Thêm giỏ hàng</span></button>
<span class="product-item-label label-new">new</span>
</div>
</div>
</div>
</div>
@endif
@endforeach
</div>
</div>
<!-- tab 3 -->
<div class="tab-pane fade" id="floor2-3" role="tabpanel">
<div class="owl-carousel"
data-nav="true"
data-dots="false"
data-margin="0"
data-responsive='{
"0":{"items":1},
"420":{"items":2},
"600":{"items":3},
"768":{"items":3},
"992":{"items":3},
"1200":{"items":3}
}'>
@foreach($all_attr as $key=>$product)
@if($key%2==0 && $product->product->product_like==1&& $product->product->category->cate->cate_id==4)
<div class="item">
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<form>
@csrf
<input type="hidden" value="{{$product->product_id}}" class="cart_product_id_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_name}}" class="cart_product_name_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_desc}}" class="cart_product_desc_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_image}}" class="cart_product_image_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_price}}" class="cart_product_price_{{$product->product_id}}">
<input type="hidden" value="1" class="cart_product_qty_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_sku_{{$product->product_id}}">
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} <p style="font-size:10;color: red;">Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" class="btn btn-cart add-to-cart" ><span>Thêm giỏ hàng</span></button>
</div>
</form>
</div>
</div>
@elseif($key%2!=0 && $product->product->product_like==1&& $product->product->category->cate->cate_id==4)
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} <p style="font-size:10;color: red;">Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" class="btn btn-cart add-to-cart"><span>Thêm giỏ hàng</span></button>
<span class="product-item-label label-new">new</span>
</div>
</div>
</div>
</div>
@endif
@endforeach
</div>
</div>
</div>
</div>
</div><!-- block -floor -products / floor2 :-->
<!-- block -floor -products / floor 3 -->
<div class="block-floor-products block-floor-products-opt12 floor-products3" id="floor0-3">
<div class="block-title ">
<div class="box-categori dropdown">
<a data-toggle="dropdown" role="button" href="#" class="dropdown-toggle "><span>categories</span></a>
<ul class="dropdown-menu">
@foreach( $cate_product as $key=> $cate)
@if($cate->cate->cate_id==5)
<li >
<a href="">
{{-- <span class="icon">
<img src="images/icon/index12/nav-cat1.png" alt="nav-cat" class="img-show">
<img src="images/icon/index12/nav-cat1-hover.png" alt="nav-cat" class="img-hover">
</span> --}}
<a href="{{URL::to('/',$cate->slug_category_product)}}">
{{$cate->category_name}}
</a>
</li>
@endif
@endforeach
</ul>
</div>
<span class="title">
<span class="text">Phụ kiện khác</span>
</span>
<div class="links dropdown">
<button class="dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-bars" aria-hidden="true"></i>
</button>
<div class="dropdown-menu" >
<ul >
<li role="presentation" class="active"><a href="#floor3-1" role="tab" data-toggle="tab">Best Seller </a></li>
<li role="presentation"><a href="#floor3-2" role="tab" data-toggle="tab">New Arrivals </a></li>
<li role="presentation"><a href="#floor3-3" role="tab" data-toggle="tab">Most Reviews </a></li>
</ul>
</div>
</div>
</div>
<div class="block-content">
@foreach($slide as $key=>$slider10)
@if ($slider10->slider_code==10)
<div class="col-banner">
<a href="" class="box-img"><img src="public/uploads/slider/{{$slider10->slider_image}}" alt="baner-floor"></a>
<div class="description">
<span class="subtitle " >{{$slider10->slider_title}}</span>
<span class="title"> {{$slider10->slider_name}}</span>
<a href="{{$slider10->slider_link}}" class="btn view-opt12">SHOP NOW </a>
</div>
</div>
@endif
@endforeach
<div class="col-products tab-content">
<!-- tab 1 -->
<div class="tab-pane active in fade " id="floor3-1" role="tabpanel">
<div class="owl-carousel"
data-nav="true"
data-dots="false"
data-margin="0"
data-responsive='{
"0":{"items":1},
"420":{"items":2},
"600":{"items":3},
"768":{"items":3},
"992":{"items":3},
"1200":{"items":3}
}'>
@foreach($all_attr as $key=>$product)
@if($key%2==0 && $product->product->product_hot==1&& $product->product->category->cate->cate_id==5)
<div class="item">
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<form>
@csrf
<input type="hidden" value="{{$product->product_id}}" class="cart_product_id_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_name}}" class="cart_product_name_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_desc}}" class="cart_product_desc_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_image}}" class="cart_product_image_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_price}}" class="cart_product_price_{{$product->product_id}}">
<input type="hidden" value="1" class="cart_product_qty_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_sku_{{$product->product_id}}">
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} <p style="font-size:10;color: red;">Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" class="btn btn-cart add-to-cart" ><span>Thêm giỏ hàng</span></button>
</div>
</form>
</div>
</div>
@elseif($key%2!=0 && $product->product->product_hot==1 && $product->product->category->cate->cate_id==5)
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} <p style="font-size:10;color: red;">Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" class="btn btn-cart add-to-cart"><span>Thêm giỏ hàng</span></button>
<span class="product-item-label label-new">new</span>
</div>
</div>
</div>
</div>
@endif
@endforeach
</div>
</div>
<!-- tab 2-->
<div class="tab-pane fade" id="floor3-2" role="tabpanel">
<div class="owl-carousel"
data-nav="true"
data-dots="false"
data-margin="0"
data-responsive='{
"0":{"items":1},
"420":{"items":2},
"600":{"items":3},
"768":{"items":3},
"992":{"items":3},
"1200":{"items":3}
}'>
@foreach($all_attr as $key=>$product)
@if($key%2==0 && $product->product->product_spe==1 && $product->product->category->cate->cate_id==5)
<div class="item">
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<form>
@csrf
<input type="hidden" value="{{$product->product_id}}" class="cart_product_id_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_name}}" class="cart_product_name_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_desc}}" class="cart_product_desc_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_image}}" class="cart_product_image_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_price}}" class="cart_product_price_{{$product->product_id}}">
<input type="hidden" value="1" class="cart_product_qty_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_sku_{{$product->product_id}}">
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} <p style="font-size:10;color: red;">Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" class="btn btn-cart add-to-cart" ><span>Thêm giỏ hàng</span></button>
</div>
</form>
</div>
</div>
@elseif($key%2!=0 && $product->product->product_spe==1 && $product->product->category->cate->cate_id==5)
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} <p style="font-size:10;color: red;">Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" class="btn btn-cart add-to-cart"><span>Thêm giỏ hàng</span></button>
<span class="product-item-label label-new">new</span>
</div>
</div>
</div>
</div>
@endif
@endforeach
</div>
</div>
<!-- tab 3 -->
<div class="tab-pane fade" id="floor3-3" role="tabpanel">
<div class="owl-carousel"
data-nav="true"
data-dots="false"
data-margin="0"
data-responsive='{
"0":{"items":1},
"420":{"items":2},
"600":{"items":3},
"768":{"items":3},
"992":{"items":3},
"1200":{"items":3}
}'>
@foreach($all_attr as $key=>$product)
@if($key%2==0 && $product->product->product_like==1 && $product->product->category->cate->cate_id==5)
<div class="item">
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<form>
@csrf
<input type="hidden" value="{{$product->product_id}}" class="cart_product_id_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_name}}" class="cart_product_name_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_desc}}" class="cart_product_desc_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_image}}" class="cart_product_image_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_price}}" class="cart_product_price_{{$product->product_id}}">
<input type="hidden" value="1" class="cart_product_qty_{{$product->product_id}}">
<input type="hidden" value="{{$product->product_sku}}" class="cart_product_sku_{{$product->product_id}}">
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} <p style="font-size:10;color: red;">Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" class="btn btn-cart add-to-cart" ><span>Thêm giỏ hàng</span></button>
</div>
</form>
</div>
</div>
@elseif($key%2!=0 && $product->product->product_like==1 && $product->product->category->cate->cate_id==5)
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} <p style="font-size:10;color: red;">Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{number_format($product->product_price,0,',','.')}}đ</span>
<span class="old-price">update</span>
</div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
<div class="product-item-actions">
<a class="btn btn-wishlist" href=""><span>Yêu thích </span></a>
<a class="btn btn-compare" href=""><span>so sánh </span></a>
<a class="btn btn-quickview" href=""><span>Mua nhanh</span></a>
</div>
<button type="button" class="btn btn-cart add-to-cart"><span>Thêm giỏ hàng</span></button>
<span class="product-item-label label-new">new</span>
</div>
</div>
</div>
</div>
@endif
@endforeach
</div>
</div>
</div>
</div>
</div><!-- block -floor -products / floor3 :-->
</div>
<div class="col-md-4 col-lg-3">
<div class="block-deal-opt12">
<div class="block-title">
<span class="title">hot deal of this week</span>
</div>
<div class="block-content">
<div class="owl-carousel"
data-nav="true"
data-dots="false"
data-margin="30"
data-responsive='{
"0":{"items":1},
"480":{"items":1},
"640":{"items":2},
"992":{"items":1},
"1200":{"items":1}
}'>
<div class=" product-item product-item-deal-opt12">
<div class="product-item-info">
<div class="deals-of-countdown">
<div class="count-down-time" data-countdown="2017/10/25"></div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href=""><img alt="product name" src="images/media/index12/deal1.jpg"></a>
</div>
<div class="product-item-detail">
<strong class="product-item-name"><a href="">IWC Synchros Watches</a></strong>
<div class="product-item-price">
<span class="price">$1.200 </span>
<span class="old-price">$1.230</span>
</div>
<div class="product-item-actions">
<button type="button" class="btn btn-cart"><span>Add to Cart</span></button>
<a class="btn btn-wishlist" href=""><span>wishlist</span></a>
<a class="btn btn-compare" href=""><span>compare</span></a>
</div>
</div>
</div>
</div>
<div class=" product-item product-item-deal-opt12">
<div class="product-item-info">
<div class="deals-of-countdown">
<div class="count-down-time" data-countdown="2017/10/25"></div>
</div>
<div class="product-item-photo">
<a class="product-item-img" href=""><img alt="product name" src="images/media/index12/deal1.jpg"></a>
</div>
<div class="product-item-detail">
<strong class="product-item-name"><a href="">IWC Synchros Watches</a></strong>
<div class="product-item-price">
<span class="price">$1.200 </span>
<span class="old-price">$1.230</span>
</div>
<div class="product-item-actions">
<button type="button" class="btn btn-cart"><span>Add to Cart</span></button>
<a class="btn btn-wishlist" href=""><span>wishlist</span></a>
<a class="btn btn-compare" href=""><span>compare</span></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Block Testimonials -->
<div class="block-testimonials-opt12" >
<div class="block-content">
<div class="owl-carousel testimonials-thumb"
data-loop="true"
data-center="true"
data-nav="false"
data-dots="false"
data-margin="3"
data-autoplayTimeout="600"
data-autoplay="true"
data-responsive='{
"0":{"items":1},
"360":{"items":3},
"480":{"items":3},
"768":{"items":3},
"992":{"items":3},
"1200":{"items":3}
}'>
@foreach($slide as $key=>$slider5)
@if ($slider5->slider_code==5)
<div class="item ">
<div class="photo">
<span class="img"><img src="public/uploads/slider/{{$slider5->slider_image}}" alt="img"></span>
</div>
</div>
@endif
@endforeach
</div>
<div class="owl-carousel testimonials-des"
data-loop="true"
data-nav="false"
data-dots="true"
data-margin="0"
data-responsive='{
"0":{"items":1},
"360":{"items":1},
"480":{"items":1},
"768":{"items":1},
"992":{"items":1},
"1200":{"items":1}
}'>
@foreach($slide as $key=>$slider5)
@if ($slider5->slider_code==5)
<div class="item">
<div class="info">
<p> <img src="public/uploads/slider/img-des.png" alt="img" class="icon"> {{$slider5->slider_desc}}" </p>
<p class="testimonial-nane">{{$slider5->slider_name}}" </p>
</div>
</div>
@endif
@endforeach
</div>
</div>
</div><!-- Block Testimonials -->
<!-- block -new-product-->
<div class="block-new-product-opt12">
<div class="block-title">
<span class="title">Sản phẩm mới </span>
</div>
<div class="block-content">
<div class="owl-carousel"
data-nav="true"
data-dots="false"
data-margin="30"
data-responsive='{
"0":{"items":1},
"480":{"items":1},
"640":{"items":2},
"768":{"items":2},
"992":{"items":1},
"1200":{"items":1}
}'>
<div class="item">
@foreach($all_attr as $key=>$product)
@if($key<=7)
<div class=" product-item product-item-opt-12">
<div class="product-item-info">
<div class="product-item-photo">
<a class="product-item-img"href="{{URL::to('/chi-tiet-san-pham',$product->product->slug_product)}}"><img alt="product name" src="{{URL::to('public/uploads/product/'.$product->product_image)}}"></a>
</div>
<div class="product-item-detail">
<strong class="product-item-name"><a href="">{{$product->product->product_name}} <p style="font-size:10;color: red;">Code:{{$product->product_sku}}</p></a></strong>
<div class="product-item-price">
<span class="price">{{$product->product_price}} </span>
<span class="old-price">update</span>
</div>
</div>
</div>
</div>
@endif
@endforeach
</div>
</div>
</div>
</div><!-- block -new-product-->
{{-- <div class="block-banner-sidebar block-banner-sidebar-opt12 effect-banner3">
<a href="" class="box-img"><img src="images/media/index12/banner-sidebar.jpg" alt="img"></a>
</div>
--}}
</div>
</div>
</div>
<!-- banner -->
<div class="block-banner-bottom-opt12">
<div class="container">
<div class="row">
@foreach($slide as $key=>$slider9)
@if ($slider9->slider_code==9)
<div class="col-md-6">
{{-- <a href="" class="box-img"><img src="images/media/index12/banner4.jpg" alt="img"></a> --}}
<div class="item item3">
<img src="public/uploads/slider/{{$slider9->slider_image}}" alt="img">
<div class="description">
{{-- <span class="title">{{$slider9->slider_title}}</span> --}}
{{-- span class="des">{{$slider9->slider_desc}} </span> --}}
</div>
</div>
</div>
@endif
@endforeach
</div>
</div>
</div><!-- banner -->
<br>
<div class="block-categori-opt12">
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="item item1" style="background-image: url(public/frontend/images/media/index12/bg-categories1.png);">
<div class="title">
<span>Danh mục </span>
<strong class="sub-title"> Đồ Mặc Ngủ </strong>
</div>
<ul class="list-cat">
@foreach( $cate_product as $key=> $cate)
@if($cate->cate->cate_id==3)
<li><a href="{{$cate->slug_category_product}}">{{$cate->category_name}}</a></li>
@endif
@endforeach
</ul>
<div class="actions">
<a href="" class="btn-view">View all</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="item item2" style="background-image: url(public/frontend/images/media/index12/bg-categories2.png);">
<div class="title">
<span>Danh mục </span>
<strong class="sub-title"> NƯỚC HOA </strong>
</div>
<ul class="list-cat">
@foreach( $cate_product as $key=> $cate)
@if($cate->cate->cate_id==4)
<li><a href="{{$cate->slug_category_product}}">{{$cate->category_name}}</a></li>
@endif
@endforeach
</ul>
<div class="actions">
<a href="" class="btn-view">View all</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="item item3" style="background-image: url(public/frontend/images/media/index12/bg-categories3.png);">
<div class="title">
<span>danh mục </span>
<strong class="sub-title"> Phụ kiện khác</strong>
</div>
<ul class="list-cat">
@foreach( $cate_product as $key=> $cate)
@if($cate->cate->cate_id==5)
<li><a href="{{$cate->slug_category_product}}">{{$cate->category_name}}</a></li>
@endif
@endforeach
</ul>
<div class="actions">
<a href="" class="btn-view">View all</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Block recent Blog -->
<div class="block-recent-blog-opt12">
<div class="container">
<div class="block-title">
<span class="title">Tin mới </span>
<p>cập nhật thông tin mới nhất</p>
</div>
<div class="block-content">
<div class="owl-carousel"
data-nav="true"
data-dots="false"
data-margin="30"
data-responsive='{
"0":{"items":1},
"480":{"items":1},
"768":{"items":1},
"992":{"items":2},
"1200":{"items":2}
}'>
@foreach($all_post as $key => $post )
<div class="blog-item">
<div class="blog-photo">
<a href="{{URL::to('/bai-viet', $post->post_slug)}}"><img src="{{URL::to('public/uploads/post/'.$post->post_image)}}" alt="blog"></a>
</div>
<div class="blog-detail">
<div class="blog-info">
<div class="blog-date"><span>{{$post->created_at}}</span></div>
</div>
<strong class="blog-name"><a href="{{URL::to('/bai-viet', $post->post_slug)}}">{{$post->post_title}}</a></strong>
<br>
<br> {{-- <div class="blog-des"><span>{!!$post->post_desc!!}</span></div> --}}
<div class="blog-actions">
<a href="{{URL::to('/bai-viet', $post->post_slug)}}" >Xem thêm</a>
</div>
</div>
</div>
@endforeach
</div>
</div>
</div>
</div><!-- Block recent Blog -->
<!-- block-brand -->
<div class="block-brand-op12">
<div class="container">
<div class="owl-carousel"
data-nav="true"
data-dots="false"
data-margin="30"
data-loop="true"
data-responsive='{
"0":{"items":3},
"480":{"items":4},
"600":{"items":5},
"992":{"items":6},
"1200":{"items":7}
}'>
@foreach($brand_product as $key => $brand )
<div class="item">
<a href=""><img src="public/uploads/product/{{$brand->brand_image}}" alt="brand"></a>
</div>
@endforeach
</div>
</div>
</div><!-- block-brand -->
</main><!-- end MAIN -->
<div class="nav d-none d-md-inline">
<a href="#">Link</a>
<a href="#">Link</a>
<a href="#">Link</a>
<a href="#">Link</a>
</div>
@endsection