before merge
This commit is contained in:
parent
c05ea63603
commit
3a3c89484d
|
|
@ -5,7 +5,6 @@ namespace Webkul\Admin\DataGrids;
|
||||||
use Illuminate\View\View;
|
use Illuminate\View\View;
|
||||||
use Webkul\Ui\DataGrid\Facades\DataGrid;
|
use Webkul\Ui\DataGrid\Facades\DataGrid;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Order DataGrid
|
* Order DataGrid
|
||||||
*
|
*
|
||||||
|
|
@ -26,10 +25,10 @@ class OrderDataGrid
|
||||||
{
|
{
|
||||||
|
|
||||||
return DataGrid::make([
|
return DataGrid::make([
|
||||||
'name' => 'Categories',
|
'name' => 'Orders',
|
||||||
'table' => 'categories as cat',
|
'table' => 'orders as ord',
|
||||||
'select' => 'cat.id',
|
'select' => 'ord.id',
|
||||||
'perpage' => 10,
|
'perpage' => 5,
|
||||||
'aliased' => true, //use this with false as default and true in case of joins
|
'aliased' => true, //use this with false as default and true in case of joins
|
||||||
|
|
||||||
'massoperations' =>[
|
'massoperations' =>[
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
|
<!-- Generator: Sketch 50 (54983) - http://www.bohemiancoding.com/sketch -->
|
||||||
|
<title>Artboard</title>
|
||||||
|
<desc>Created with Sketch.</desc>
|
||||||
|
<defs></defs>
|
||||||
|
<g id="Artboard" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
|
||||||
|
<path d="M9.06852618,23.2496556 L22.5678375,9.75034436" id="Line-2" stroke="#242424" stroke-width="3"></path>
|
||||||
|
<path d="M9.06852618,9.75034436 L22.5678375,23.2496556" id="Line-2" stroke="#242424" stroke-width="3"></path>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 708 B |
|
|
@ -481,7 +481,7 @@ section.slider-block {
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav a:first-child{
|
.nav a:first-child{
|
||||||
margin-left: 20px;
|
// margin-left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav li > .icon{
|
.nav li > .icon{
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,12 @@
|
||||||
height: 24px;
|
height: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon-menu-close-adj {
|
||||||
|
background-image:URL('../images/cross-icon-adj.svg');
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
.grid-view-icon {
|
.grid-view-icon {
|
||||||
background-image:URL('../images/icon-grid-view.svg');
|
background-image:URL('../images/icon-grid-view.svg');
|
||||||
width: 24px;
|
width: 24px;
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,11 @@
|
||||||
@inject('rateHelper' , 'Webkul\Shipping\Helper\Rate')
|
@inject('rateHelper' , 'Webkul\Shipping\Helper\Rate')
|
||||||
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
@foreach($rateHelper->collectRates() as $key=>$count)
|
@foreach($rateHelper->collectRates() as $key=>$count)
|
||||||
|
<div class="shipping-method">
|
||||||
<div class="shipping-method">
|
<input type="radio" name="price"> ${{ core()->currency($count) }} <span> {{ $key }} </span>
|
||||||
|
</div>
|
||||||
<input type="radio" name="price"> ${{ core()->currency($count) }} <span> {{ $key }} </span>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
span {
|
span {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
|
|
||||||
|
|
@ -262,54 +262,46 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@push('scripts')
|
@push('scripts')
|
||||||
|
<script>
|
||||||
|
window.onload = function() {
|
||||||
|
var hamMenu = document.getElementById("hammenu");
|
||||||
|
var search = document.getElementById("search");
|
||||||
|
var searchResponsive = document.getElementsByClassName('search-responsive')[0];
|
||||||
|
var sortLimit = document.getElementsByClassName('reponsive-sorter-limiter')[0];
|
||||||
|
var layerFilter = document.getElementsByClassName('responsive-layred-filter')[0];
|
||||||
|
var navResponsive = document.getElementsByClassName('responsive-nav')[0];
|
||||||
|
var thumbList = document.getElementsByClassName('thumb-list')[0];
|
||||||
|
|
||||||
<script>
|
search.addEventListener("click", header);
|
||||||
|
hamMenu.addEventListener("click", header);
|
||||||
|
|
||||||
window.onload = function() {
|
// for header responsive icon
|
||||||
var hamMenu = document.getElementById("hammenu");
|
function header(){
|
||||||
var search = document.getElementById("search");
|
var className = document.getElementById(this.id).className;
|
||||||
|
if(className === 'icon icon-search' ){
|
||||||
var searchResponsive = document.getElementsByClassName('search-responsive')[0];
|
search.classList.remove("icon-search");
|
||||||
var sortLimit = document.getElementsByClassName('reponsive-sorter-limiter')[0];
|
search.classList.add("icon-menu-close");
|
||||||
var layerFilter = document.getElementsByClassName('responsive-layred-filter')[0];
|
hamMenu.classList.remove("icon-menu-close");
|
||||||
var navResponsive = document.getElementsByClassName('responsive-nav')[0];
|
hamMenu.classList.add("icon-menu");
|
||||||
var thumbList = document.getElementsByClassName('thumb-list')[0];
|
searchResponsive.style.display = 'block';
|
||||||
|
navResponsive.style.display = 'none';
|
||||||
search.addEventListener("click", header);
|
}else if(className === 'icon icon-menu'){
|
||||||
hamMenu.addEventListener("click", header);
|
hamMenu.classList.remove("icon-menu");
|
||||||
|
hamMenu.classList.add("icon-menu-close");
|
||||||
|
search.classList.remove("icon-menu-close");
|
||||||
// for header responsive icon
|
search.classList.add("icon-search");
|
||||||
function header(){
|
searchResponsive.style.display = 'none';
|
||||||
var className = document.getElementById(this.id).className;
|
navResponsive.style.display = 'block';
|
||||||
if(className === 'icon icon-search' ){
|
}else{
|
||||||
search.classList.remove("icon-search");
|
search.classList.remove("icon-menu-close");
|
||||||
search.classList.add("icon-menu-close");
|
search.classList.add("icon-search");
|
||||||
hamMenu.classList.remove("icon-menu-close");
|
hamMenu.classList.remove("icon-menu-close");
|
||||||
hamMenu.classList.add("icon-menu");
|
hamMenu.classList.add("icon-menu");
|
||||||
searchResponsive.style.display = 'block';
|
searchResponsive.style.display = 'none';
|
||||||
navResponsive.style.display = 'none';
|
navResponsive.style.display = 'none';
|
||||||
}else if(className === 'icon icon-menu'){
|
}
|
||||||
hamMenu.classList.remove("icon-menu");
|
|
||||||
hamMenu.classList.add("icon-menu-close");
|
|
||||||
search.classList.remove("icon-menu-close");
|
|
||||||
search.classList.add("icon-search");
|
|
||||||
searchResponsive.style.display = 'none';
|
|
||||||
navResponsive.style.display = 'block';
|
|
||||||
}else{
|
|
||||||
search.classList.remove("icon-menu-close");
|
|
||||||
search.classList.add("icon-search");
|
|
||||||
hamMenu.classList.remove("icon-menu-close");
|
|
||||||
hamMenu.classList.add("icon-menu");
|
|
||||||
searchResponsive.style.display = 'none';
|
|
||||||
navResponsive.style.display = 'none';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
</script>
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
@endpush
|
@endpush
|
||||||
|
|
@ -3,16 +3,13 @@
|
||||||
@section('content-wrapper')
|
@section('content-wrapper')
|
||||||
|
|
||||||
@inject ('productRepository', 'Webkul\Product\Repositories\ProductRepository')
|
@inject ('productRepository', 'Webkul\Product\Repositories\ProductRepository')
|
||||||
|
|
||||||
<div class="main">
|
<div class="main">
|
||||||
|
|
||||||
<div class="category-container">
|
<div class="category-container">
|
||||||
@include ('shop::products.list.layered-navigation')
|
@include ('shop::products.list.layered-navigation')
|
||||||
|
|
||||||
<div class="category-block">
|
<div class="category-block">
|
||||||
|
|
||||||
<div class="hero-image mb-35">
|
<div class="hero-image mb-35">
|
||||||
<img src="https://images.pexels.com/photos/428338/pexels-photo-428338.jpeg?cs=srgb&dl=adolescent-casual-cute-428338.jpg&fm=jpg" />
|
<img src="https://images.pexels.com/photos/428338/pexels-photo-428338.jpeg?cs=srgb&dl=adolescent-casual-cute-428338.jpg&fm=jpg" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php $products = $productRepository->findAllByCategory($category->id); ?>
|
<?php $products = $productRepository->findAllByCategory($category->id); ?>
|
||||||
|
|
@ -20,87 +17,74 @@
|
||||||
@include ('shop::products.list.toolbar')
|
@include ('shop::products.list.toolbar')
|
||||||
|
|
||||||
@inject ('toolbarHelper', 'Webkul\Product\Product\Toolbar')
|
@inject ('toolbarHelper', 'Webkul\Product\Product\Toolbar')
|
||||||
|
|
||||||
@if ($toolbarHelper->getCurrentMode() == 'grid')
|
@if ($toolbarHelper->getCurrentMode() == 'grid')
|
||||||
<div class="product-grid-3">
|
<div class="product-grid-3">
|
||||||
|
|
||||||
@foreach ($products as $product)
|
@foreach ($products as $product)
|
||||||
|
|
||||||
@include ('shop::products.list.card', ['product' => $product])
|
@include ('shop::products.list.card', ['product' => $product])
|
||||||
|
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
<div class="product-list">
|
<div class="product-list">
|
||||||
|
|
||||||
@foreach ($products as $product)
|
@foreach ($products as $product)
|
||||||
|
|
||||||
@include ('shop::products.list.card', ['product' => $product])
|
@include ('shop::products.list.card', ['product' => $product])
|
||||||
|
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="bottom-toolbar">
|
<div class="bottom-toolbar">
|
||||||
|
|
||||||
{{ $products->appends(request()->input())->links() }}
|
{{ $products->appends(request()->input())->links() }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
|
|
||||||
@push('scripts')
|
@push('scripts')
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
var sort = document.getElementById("sort");
|
||||||
|
var filter = document.getElementById("filter");
|
||||||
|
var sortLimit = document.getElementsByClassName('reponsive-sorter-limiter')[0];
|
||||||
|
var layerFilter = document.getElementsByClassName('responsive-layred-filter')[0];
|
||||||
|
|
||||||
<script>
|
if(sort && filter){
|
||||||
$(document).ready(function() {
|
sort.addEventListener("click", sortFilter);
|
||||||
|
filter.addEventListener("click", sortFilter);
|
||||||
var sort = document.getElementById("sort");
|
|
||||||
var filter = document.getElementById("filter");
|
|
||||||
var sortLimit = document.getElementsByClassName('reponsive-sorter-limiter')[0];
|
|
||||||
var layerFilter = document.getElementsByClassName('responsive-layred-filter')[0];
|
|
||||||
|
|
||||||
if(sort && filter){
|
|
||||||
sort.addEventListener("click", sortFilter);
|
|
||||||
filter.addEventListener("click", sortFilter);
|
|
||||||
}
|
|
||||||
|
|
||||||
function sortFilter(){
|
|
||||||
var className = document.getElementById(this.id).className;
|
|
||||||
|
|
||||||
if(className === 'icon sort-icon' ){
|
|
||||||
sort.classList.remove("sort-icon");
|
|
||||||
sort.classList.add("icon-menu-close");
|
|
||||||
filter.classList.remove("icon-menu-close");
|
|
||||||
filter.classList.add("filter-icon");
|
|
||||||
sortLimit.style.display ="flex";
|
|
||||||
sortLimit.style.justifyContent="space-between";
|
|
||||||
layerFilter.style.display ="none";
|
|
||||||
}else if(className === 'icon filter-icon'){
|
|
||||||
filter.classList.remove("filter-icon");
|
|
||||||
filter.classList.add("icon-menu-close");
|
|
||||||
sort.classList.remove("icon-menu-close");
|
|
||||||
sort.classList.add("sort-icon");
|
|
||||||
layerFilter.style.display ="block";
|
|
||||||
sortLimit.style.display ="none";
|
|
||||||
}else{
|
|
||||||
sort.classList.remove("icon-menu-close");
|
|
||||||
sort.classList.add("sort-icon");
|
|
||||||
filter.classList.remove("icon-menu-close");
|
|
||||||
filter.classList.add("filter-icon");
|
|
||||||
sortLimit.style.display ="none";
|
|
||||||
layerFilter.style.display ="none";
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
@endpush
|
function sortFilter(){
|
||||||
|
var className = document.getElementById(this.id).className;
|
||||||
|
|
||||||
|
if(className === 'icon sort-icon'){
|
||||||
|
sort.classList.remove("sort-icon");
|
||||||
|
sort.classList.add("icon-menu-close-adj");
|
||||||
|
|
||||||
|
filter.classList.remove("icon-menu-close-adj");
|
||||||
|
filter.classList.add("filter-icon");
|
||||||
|
|
||||||
|
sortLimit.style.display ="flex";
|
||||||
|
sortLimit.style.justifyContent="space-between";
|
||||||
|
layerFilter.style.display ="none";
|
||||||
|
}else if(className === 'icon filter-icon'){
|
||||||
|
filter.classList.remove("filter-icon");
|
||||||
|
filter.classList.add("icon-menu-close-adj");
|
||||||
|
|
||||||
|
sort.classList.remove("icon-menu-close-adj");
|
||||||
|
sort.classList.add("sort-icon");
|
||||||
|
|
||||||
|
layerFilter.style.display ="block";
|
||||||
|
sortLimit.style.display ="none";
|
||||||
|
}else{
|
||||||
|
sort.classList.remove("icon-menu-close-adj");
|
||||||
|
sort.classList.add("sort-icon");
|
||||||
|
|
||||||
|
filter.classList.remove("icon-menu-close-adj");
|
||||||
|
filter.classList.add("filter-icon");
|
||||||
|
|
||||||
|
sortLimit.style.display ="none";
|
||||||
|
layerFilter.style.display ="none";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
|
<!-- Generator: Sketch 50 (54983) - http://www.bohemiancoding.com/sketch -->
|
||||||
|
<title>Artboard</title>
|
||||||
|
<desc>Created with Sketch.</desc>
|
||||||
|
<defs></defs>
|
||||||
|
<g id="Artboard" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
|
||||||
|
<path d="M9.06852618,23.2496556 L22.5678375,9.75034436" id="Line-2" stroke="#242424" stroke-width="3"></path>
|
||||||
|
<path d="M9.06852618,9.75034436 L22.5678375,23.2496556" id="Line-2" stroke="#242424" stroke-width="3"></path>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 708 B |
|
|
@ -17,6 +17,12 @@
|
||||||
height: 24px;
|
height: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon-menu-close-adj {
|
||||||
|
background-image: URL("../images/cross-icon-adj.svg");
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
.grid-view-icon {
|
.grid-view-icon {
|
||||||
background-image: URL("../images/icon-grid-view.svg");
|
background-image: URL("../images/icon-grid-view.svg");
|
||||||
width: 24px;
|
width: 24px;
|
||||||
|
|
@ -1160,10 +1166,6 @@ section.slider-block div.slider-content div.slider-control .light-right-icon {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header .header-bottom .nav a:first-child {
|
|
||||||
margin-left: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header .header-bottom .nav li > .icon {
|
.header .header-bottom .nav li > .icon {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue