diff --git a/composer.json b/composer.json index 98c317de9..2574f6252 100644 --- a/composer.json +++ b/composer.json @@ -110,7 +110,8 @@ "Sarga\\API\\": "packages/Sarga/API", "Sarga\\Admin\\": "packages/Sarga/Admin/src", "Sarga\\Brand\\": "packages/Sarga/Brand/src", - "Sarga\\Payment\\": "packages/Sarga/Payment" + "Sarga\\Payment\\": "packages/Sarga/Payment", + "Webkul\\suggestion\\": "packages/Webkul/suggestion/src" } }, "autoload-dev": { diff --git a/config/app.php b/config/app.php index 60f980b63..c1d823636 100755 --- a/config/app.php +++ b/config/app.php @@ -289,7 +289,7 @@ return [ Sarga\Admin\Providers\AdminServiceProvider::class, Sarga\Brand\Providers\BrandServiceProvider::class, Sarga\Payment\Providers\PaymentServiceProvider::class, - + Webkul\suggestion\Providers\suggestionServiceProvider::class, ], diff --git a/config/scout.php b/config/scout.php index e425bb0e8..26e120310 100644 --- a/config/scout.php +++ b/config/scout.php @@ -15,7 +15,7 @@ return [ | */ - 'driver' => env('SCOUT_DRIVER', 'algolia'), + 'driver' => env('SCOUT_DRIVER', 'null'), /* |-------------------------------------------------------------------------- diff --git a/packages/Webkul/suggestion/package.json b/packages/Webkul/suggestion/package.json new file mode 100644 index 000000000..9a4f8c3f6 --- /dev/null +++ b/packages/Webkul/suggestion/package.json @@ -0,0 +1,21 @@ +{ + "private": true, + "scripts": { + "dev": "npm run development", + "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", + "watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", + "watch-poll": "npm run watch -- --watch-poll", + "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", + "prod": "npm run production", + "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" + }, + "devDependencies": { + "cross-env": "^6.0.3", + "laravel-mix": "^5.0.0", + "laravel-mix-merge-manifest": "^0.1.2", + "sass": "^1.24.4", + "sass-loader": "^8.0.2", + "vue": "^2.6.10", + "vue-template-compiler": "^2.6.11" + } +} diff --git a/packages/Webkul/suggestion/publishable/assets/css/admin.css b/packages/Webkul/suggestion/publishable/assets/css/admin.css new file mode 100644 index 000000000..1a17a0493 --- /dev/null +++ b/packages/Webkul/suggestion/publishable/assets/css/admin.css @@ -0,0 +1 @@ +.temp-icon{width:48px;height:48px;display:inline-block;background-size:cover;background-image:url(../images/Icon-Temp.svg)}.active.temp-icon,.active .temp-icon{background-image:url(../images/Icon-Temp-Active.svg)} \ No newline at end of file diff --git a/packages/Webkul/suggestion/publishable/assets/css/default.css b/packages/Webkul/suggestion/publishable/assets/css/default.css new file mode 100644 index 000000000..e69de29bb diff --git a/packages/Webkul/suggestion/publishable/assets/css/suggestion.css b/packages/Webkul/suggestion/publishable/assets/css/suggestion.css new file mode 100644 index 000000000..8d39f01c5 --- /dev/null +++ b/packages/Webkul/suggestion/publishable/assets/css/suggestion.css @@ -0,0 +1 @@ +.suggest{position:absolute;width:100%;z-index:1;background-color:#fff;font-size:15px;max-height:600px;overflow-y:auto}.dcategory,.popular,.terms{border:1px solid #d8d7d8}.dcategory p{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.dcategory p,.termsa{margin-top:1%;margin-bottom:1%;margin-left:1%}.termsb{text-align:right;margin-top:-9%;margin-bottom:1%;margin-right:1%}.popular p{margin-top:.8%;margin-bottom:.8%;margin-left:1%;text-align:center}.product{border:1px solid #d8d7d8;width:100%;box-sizing:border-box}.product .img{width:26%}.imgp,.product .img{display:inline-block}.imgp{width:70%;float:right}.image_name{margin-top:3%;margin-bottom:-4%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.no_result{border:1px solid #d8d7d8;background-color:#fff}.no_result p{margin-top:.8%;margin-bottom:.8%;margin-left:1%;text-align:center}.suggests{font-size:20px;height:500px!important;overflow-y:auto;position:absolute}.velocity_category{border:1px solid #d8d7d8;background-color:#fff;height:40px!important}.velocity_category p{margin-top:.5%;margin-bottom:.5%;margin-left:1%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.suggests .velocity_terms{border:1px solid #d8d7d8;background-color:#fff;height:40px!important}.velocity_termsa{margin-top:.5%}.ar_termsa,.velocity_termsa{margin-bottom:.5%;margin-left:1%}.ar_termsa{text-align:left;margin-top:-9%}.ar_termsb{text-align:right!important;margin-top:-9%;margin-bottom:.5%;margin-right:1%}.velocity_popular{border:1px solid #d8d7d8;background-color:#fff;height:40px!important}.velocity_popular p{margin-top:.8%;margin-bottom:.8%;margin-left:1%;text-align:center}.velocity_product{border:1px solid #d8d7d8;background-color:#fff;width:100%;height:90px!important;box-sizing:border-box}.velocity_img{width:26%;display:inline-block}.velocity_img_name{margin-top:1%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.velocity_no_result{border:1px solid #d8d7d8;background-color:#fff;height:40px!important}.velocity_no_result p{margin-top:.8%;margin-bottom:.8%;margin-left:1%;text-align:center}#searchs{width:100%} \ No newline at end of file diff --git a/packages/Webkul/suggestion/publishable/assets/css/velocity.css b/packages/Webkul/suggestion/publishable/assets/css/velocity.css new file mode 100644 index 000000000..688c16ba6 --- /dev/null +++ b/packages/Webkul/suggestion/publishable/assets/css/velocity.css @@ -0,0 +1,5 @@ +@media only screen and (max-width: 1185px) { + .suggest { + width: 30%; + } + } \ No newline at end of file diff --git a/packages/Webkul/suggestion/publishable/assets/images/Icon-Temp-Active.svg b/packages/Webkul/suggestion/publishable/assets/images/Icon-Temp-Active.svg new file mode 100644 index 000000000..d4c61687b --- /dev/null +++ b/packages/Webkul/suggestion/publishable/assets/images/Icon-Temp-Active.svg @@ -0,0 +1,12 @@ + + + + Icon-Catalog-Active + Created with Sketch. + + + + + + + \ No newline at end of file diff --git a/packages/Webkul/suggestion/publishable/assets/images/Icon-Temp.svg b/packages/Webkul/suggestion/publishable/assets/images/Icon-Temp.svg new file mode 100644 index 000000000..7dba04b31 --- /dev/null +++ b/packages/Webkul/suggestion/publishable/assets/images/Icon-Temp.svg @@ -0,0 +1,12 @@ + + + + Icon-Catalog + Created with Sketch. + + + + + + + \ No newline at end of file diff --git a/packages/Webkul/suggestion/publishable/assets/js/app.js b/packages/Webkul/suggestion/publishable/assets/js/app.js new file mode 100644 index 000000000..9fa3a9151 --- /dev/null +++ b/packages/Webkul/suggestion/publishable/assets/js/app.js @@ -0,0 +1 @@ +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=0)}({0:function(e,t,n){n("uPOf"),n("y62a"),n("jTz4"),e.exports=n("WyvX")},WyvX:function(e,t){},jTz4:function(e,t){},uPOf:function(e,t){},y62a:function(e,t){}}); \ No newline at end of file diff --git a/packages/Webkul/suggestion/publishable/assets/mix-manifest.json b/packages/Webkul/suggestion/publishable/assets/mix-manifest.json new file mode 100644 index 000000000..0b954a084 --- /dev/null +++ b/packages/Webkul/suggestion/publishable/assets/mix-manifest.json @@ -0,0 +1,3 @@ +{ + "/css/suggestion.css": "/css/suggestion.css?id=e4193aef15a2f96d4f46" +} diff --git a/packages/Webkul/suggestion/src/Config/acl.php b/packages/Webkul/suggestion/src/Config/acl.php new file mode 100644 index 000000000..53e93afdd --- /dev/null +++ b/packages/Webkul/suggestion/src/Config/acl.php @@ -0,0 +1,10 @@ + 'suggestion', + 'name' => 'Suggestion', + 'route' => 'suggestion.admin.index', + 'sort' => 2 + ] +]; \ No newline at end of file diff --git a/packages/Webkul/suggestion/src/Config/admin-menu.php b/packages/Webkul/suggestion/src/Config/admin-menu.php new file mode 100644 index 000000000..e69de29bb diff --git a/packages/Webkul/suggestion/src/Config/system.php b/packages/Webkul/suggestion/src/Config/system.php new file mode 100644 index 000000000..514b84c2a --- /dev/null +++ b/packages/Webkul/suggestion/src/Config/system.php @@ -0,0 +1,49 @@ +'suggestion', + 'name'=>'Search Suggestion', + 'sort'=>1, + ],[ + 'key'=>'suggestion.suggestion', + 'name'=>'Search Suggestion Settings', + 'sort'=>1, + ],[ + 'key' => 'suggestion.suggestion.options', + 'name' => 'Options', + 'sort' => 1, + 'fields' => [ + ['name' => 'show_terms', + 'title' => 'Show Categories', + 'type' => 'text', + 'validation' => 'required|numeric', + 'channel_based' => true, + ],['name' => 'show_products', + 'title' => 'Show Products ', + 'type' => 'text', + 'validation' => 'required|numeric', + 'channel_based' => true, + ],[ + 'name' => 'display_terms_toggle', + 'title' => 'Display Terms', + 'type' => 'boolean', + 'locale_based' => true, + 'channel_based' => true, + ],[ + 'name' => 'display_product_toggle', + 'title' => 'Display Product', + 'type' => 'boolean', + 'locale_based' => true, + 'channel_based' => true, + ],[ + 'name' => 'display_categories_toggle', + 'title' => 'Display Categories', + 'type' => 'boolean', + 'locale_based' => true, + 'channel_based' => true, + ], + ], + ], + + ]; \ No newline at end of file diff --git a/packages/Webkul/suggestion/src/Http/Controllers/Admin/suggestionController.php b/packages/Webkul/suggestion/src/Http/Controllers/Admin/suggestionController.php new file mode 100644 index 000000000..6e94b51d2 --- /dev/null +++ b/packages/Webkul/suggestion/src/Http/Controllers/Admin/suggestionController.php @@ -0,0 +1,66 @@ +middleware('admin'); + + $this->_config = request('_config'); + } + + /** + * Display a listing of the resource. + * + * @return \Illuminate\View\View + */ + public function index() + { + return view($this->_config['view']); + } + + /** + * Show the form for creating a new resource. + * + * @return \Illuminate\View\View + */ + public function create() + { + return view($this->_config['view']); + } + + + /** + * Show the form for editing the specified resource. + * + * @param int $id + * @return \Illuminate\View\View + */ + public function edit($id) + { + return view($this->_config['view']); + } + + +} diff --git a/packages/Webkul/suggestion/src/Http/Controllers/Shop/suggestionController.php b/packages/Webkul/suggestion/src/Http/Controllers/Shop/suggestionController.php new file mode 100644 index 000000000..415529b56 --- /dev/null +++ b/packages/Webkul/suggestion/src/Http/Controllers/Shop/suggestionController.php @@ -0,0 +1,78 @@ +_config = request('_config'); + $this->velocityProductRepository = $velocityProductRepository; + $this->configurables = $configurables; + } + + public function search() + { + $results = $this->velocityProductRepository->searchProductsFromCategory(request()->all()); + $images=[]; + $price=[]; + foreach($results as $key => $result){ + $productcategories[$key]=$result->product->categories; + $price[$key] = $result->getTypeInstance()->getPriceHtml(); + $images[$key] = productimage()->getGalleryImages($result->product); + } + + return [$results,$price,$images]; + } + + /** + * Display a listing of the resource. + * + * @return \Illuminate\View\View + */ + public function index() + { + return view($this->_config['view']); + } +} diff --git a/packages/Webkul/suggestion/src/Http/admin-routes.php b/packages/Webkul/suggestion/src/Http/admin-routes.php new file mode 100644 index 000000000..8ee8ae200 --- /dev/null +++ b/packages/Webkul/suggestion/src/Http/admin-routes.php @@ -0,0 +1,9 @@ + ['web', 'admin']], function () { + + Route::get('/admin/suggestion', 'Webkul\suggestion\Http\Controllers\Admin\suggestionController@index')->defaults('_config', [ + 'view' => 'suggestion::admin.index', + ])->name('suggestion.admin.index'); + +}); \ No newline at end of file diff --git a/packages/Webkul/suggestion/src/Http/shop-routes.php b/packages/Webkul/suggestion/src/Http/shop-routes.php new file mode 100644 index 000000000..0b55cb89b --- /dev/null +++ b/packages/Webkul/suggestion/src/Http/shop-routes.php @@ -0,0 +1,12 @@ + ['web', 'theme', 'locale', 'currency']], function () { + + Route::get('/suggestion', 'Webkul\suggestion\Http\Controllers\Shop\suggestionController@index')->defaults('_config', [ + 'view' => 'suggestion::shop.index', + ])->name('suggestion.shop.index'); + + Route::get('/ajaxsearch', 'Webkul\suggestion\Http\Controllers\Shop\suggestionController@search') + ->name('searchsuggestion.search.index'); + +}); \ No newline at end of file diff --git a/packages/Webkul/suggestion/src/Providers/ModuleServiceProvider.php b/packages/Webkul/suggestion/src/Providers/ModuleServiceProvider.php new file mode 100644 index 000000000..f0366b1cd --- /dev/null +++ b/packages/Webkul/suggestion/src/Providers/ModuleServiceProvider.php @@ -0,0 +1,11 @@ +loadMigrationsFrom(__DIR__ . '/../Database/Migrations'); + + $this->loadRoutesFrom(__DIR__ . '/../Http/admin-routes.php'); + + $this->loadRoutesFrom(__DIR__ . '/../Http/shop-routes.php'); + + $this->loadTranslationsFrom(__DIR__ . '/../Resources/lang', 'suggestion'); + + $this->publishes([ + __DIR__ . '/../../publishable/assets' => public_path('themes/default/assets'), + ], 'public'); + + $this->publishes([ + __DIR__ . '/../Resources/views/shop/velocity/header/index.blade.php' => resource_path('themes/velocity/views/layouts/header/index.blade.php'), + ]); + + $this->publishes([ + __DIR__ . '/../Resources/views/shop/default/header/index.blade.php' => resource_path('themes/default/views/layouts/header/index.blade.php'), + ]); + + $this->publishes([ + __DIR__ . '/../Resources/views/shop/velocity/header/particals.blade.php' => resource_path('themes/velocity/views/UI/particals.blade.php'), + ]); + + $this->loadViewsFrom(__DIR__ . '/../Resources/views', 'suggestion'); + + Event::listen('bagisto.shop.layout.head', function($viewRenderEventManager) { + $viewRenderEventManager->addTemplate('suggestion::shop.layouts.style'); + }); + + + } + + /** + * Register services. + * + * @return void + */ + public function register() + { + $this->registerConfig(); + } + + /** + * Register package config. + * + * @return void + */ + protected function registerConfig() + { + + $this->mergeConfigFrom( + dirname(__DIR__) . '/Config/acl.php', 'acl' + ); + $this->mergeConfigFrom( + dirname(__DIR__) . '/Config/system.php', 'core' + ); + } +} \ No newline at end of file diff --git a/packages/Webkul/suggestion/src/Resources/assets/images/Icon-Temp-Active.svg b/packages/Webkul/suggestion/src/Resources/assets/images/Icon-Temp-Active.svg new file mode 100644 index 000000000..d4c61687b --- /dev/null +++ b/packages/Webkul/suggestion/src/Resources/assets/images/Icon-Temp-Active.svg @@ -0,0 +1,12 @@ + + + + Icon-Catalog-Active + Created with Sketch. + + + + + + + \ No newline at end of file diff --git a/packages/Webkul/suggestion/src/Resources/assets/images/Icon-Temp.svg b/packages/Webkul/suggestion/src/Resources/assets/images/Icon-Temp.svg new file mode 100644 index 000000000..7dba04b31 --- /dev/null +++ b/packages/Webkul/suggestion/src/Resources/assets/images/Icon-Temp.svg @@ -0,0 +1,12 @@ + + + + Icon-Catalog + Created with Sketch. + + + + + + + \ No newline at end of file diff --git a/packages/Webkul/suggestion/src/Resources/assets/js/app.js b/packages/Webkul/suggestion/src/Resources/assets/js/app.js new file mode 100644 index 000000000..e69de29bb diff --git a/packages/Webkul/suggestion/src/Resources/assets/sass/admin.scss b/packages/Webkul/suggestion/src/Resources/assets/sass/admin.scss new file mode 100644 index 000000000..f9cde7eaf --- /dev/null +++ b/packages/Webkul/suggestion/src/Resources/assets/sass/admin.scss @@ -0,0 +1,17 @@ +.temp-icon { + width: 48px; + height: 48px; + display: inline-block; + background-size: cover; + background-image: url("../images/Icon-Temp.svg"); +} + +.active { + .temp-icon { + background-image: url("../images/Icon-Temp-Active.svg"); + } + + &.temp-icon { + background-image: url("../images/Icon-Temp-Active.svg"); + } +} diff --git a/packages/Webkul/suggestion/src/Resources/assets/sass/suggestion.scss b/packages/Webkul/suggestion/src/Resources/assets/sass/suggestion.scss new file mode 100644 index 000000000..3857adfe4 --- /dev/null +++ b/packages/Webkul/suggestion/src/Resources/assets/sass/suggestion.scss @@ -0,0 +1,151 @@ +.suggest{ + position:absolute; + width:100%; + z-index:1; + background-color:white; + font-size:15px; + max-height:600px; + overflow-y:auto; +} +.dcategory,.terms,.popular{ + border:1px solid #d8d7d8; +} +.dcategory p{ + margin-top:1%; + margin-bottom:1%; + margin-left:1%; + white-space:nowrap; + text-overflow:ellipsis; + overflow: hidden; +} +.termsa{ + margin-top:1%; + margin-bottom:1%; + margin-left:1%; +} +.termsb{ + text-align:right; + margin-top:-9%; + margin-bottom:1%; + margin-right:1%; +} +.popular p{ + margin-top:0.8%; + margin-bottom:0.8%; + margin-left:1%; + text-align:center; +} +.product{ + border:1px solid #d8d7d8; + width:100%; + box-sizing:border-box; +} +.product .img{ + width:26%; + display:inline-block; +} +.imgp{ + width:70%; + float:right; + display:inline-block; +} +.image_name{ + margin-top:3%; + margin-bottom:-4%; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} +.no_result{ + border:1px solid #d8d7d8; + background-color:white; +} +.no_result p{ + margin-top:0.8%; + margin-bottom:0.8%; + margin-left:1%; + text-align:center; +} +.suggests{ + font-size:20px; + height:500px !important; + overflow-y:auto; + position: absolute; +} +.velocity_category{ + border:1px solid #d8d7d8; + background-color:white; + height:40px !important; +} +.velocity_category p{ + margin-top:0.5%; + margin-bottom:0.5%; + margin-left:1%; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} +.suggests .velocity_terms{ + border:1px solid #d8d7d8; + background-color:white; + height:40px !important; +} +.velocity_termsa{ + margin-top:0.5%; + margin-bottom:0.5%; + margin-left:1%; +} +.ar_termsa{ + text-align:left; + margin-top:-9%; + margin-bottom:0.5%; + margin-left:1%; +} +.ar_termsb{ + text-align:right !important; + margin-top:-9%; + margin-bottom:0.5%; + margin-right:1%; +} +.velocity_popular{ + border:1px solid #d8d7d8; + background-color:white; + height:40px !important; +} +.velocity_popular p{ + margin-top:0.8%; + margin-bottom:0.8%; + margin-left:1%; + text-align:center; +} +.velocity_product{ + border:1px solid #d8d7d8; + background-color:white; + width:100%; + height:90px !important; + box-sizing:border-box; +} +.velocity_img{ + width:26%; + display:inline-block; +} +.velocity_img_name{ + margin-top:1%; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} +.velocity_no_result{ + border:1px solid #d8d7d8; + background-color:white; + height:40px !important; +} +.velocity_no_result p{ + margin-top:0.8%; + margin-bottom:0.8%; + margin-left:1%; + text-align:center; +} +#searchs { + width:100%; +} \ No newline at end of file diff --git a/packages/Webkul/suggestion/src/Resources/assets/sass/velocity.scss b/packages/Webkul/suggestion/src/Resources/assets/sass/velocity.scss new file mode 100644 index 000000000..aff925bb5 --- /dev/null +++ b/packages/Webkul/suggestion/src/Resources/assets/sass/velocity.scss @@ -0,0 +1,5 @@ +@media only screen and (max-width: 1185px) { + .suggest{ + width:30%; + } + } \ No newline at end of file diff --git a/packages/Webkul/suggestion/src/Resources/lang/en/app.php b/packages/Webkul/suggestion/src/Resources/lang/en/app.php new file mode 100644 index 000000000..d73de4939 --- /dev/null +++ b/packages/Webkul/suggestion/src/Resources/lang/en/app.php @@ -0,0 +1,9 @@ + 'Popular products', + 'in' =>'in', + 'no_results' => 'No Results Found', + 'starting_from' => 'Starting from', +] + +?> \ No newline at end of file diff --git a/packages/Webkul/suggestion/src/Resources/views/shop/default/header/index.blade.php b/packages/Webkul/suggestion/src/Resources/views/shop/default/header/index.blade.php new file mode 100644 index 000000000..1c0535ed3 --- /dev/null +++ b/packages/Webkul/suggestion/src/Resources/views/shop/default/header/index.blade.php @@ -0,0 +1,603 @@ +input('term'); + $image_search = request()->input('image-search'); + + if (! is_null($term)) { + $serachQuery = 'term='.request()->input('term'); + } +?> + + + +@push('scripts') + + + + + + + + +@endpush +@push('scripts') + + + + +@endpush \ No newline at end of file diff --git a/packages/Webkul/suggestion/src/Resources/views/shop/default/index.blade.php b/packages/Webkul/suggestion/src/Resources/views/shop/default/index.blade.php new file mode 100644 index 000000000..0d9b43445 --- /dev/null +++ b/packages/Webkul/suggestion/src/Resources/views/shop/default/index.blade.php @@ -0,0 +1,13 @@ +@extends('shop::layouts.master') + +@section('page_title') + Package Suggestion +@stop + +@section('content-wrapper') + +
+ Package Suggestion +
+ +@stop \ No newline at end of file diff --git a/packages/Webkul/suggestion/src/Resources/views/shop/default/layouts/style.blade.php b/packages/Webkul/suggestion/src/Resources/views/shop/default/layouts/style.blade.php new file mode 100644 index 000000000..e3de88961 --- /dev/null +++ b/packages/Webkul/suggestion/src/Resources/views/shop/default/layouts/style.blade.php @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/Webkul/suggestion/src/Resources/views/shop/velocity/header/index.blade.php b/packages/Webkul/suggestion/src/Resources/views/shop/velocity/header/index.blade.php new file mode 100644 index 000000000..4db1bfbec --- /dev/null +++ b/packages/Webkul/suggestion/src/Resources/views/shop/velocity/header/index.blade.php @@ -0,0 +1,39 @@ + + +@push('scripts') + +@endpush +@push('scripts') + + +@endpush diff --git a/packages/Webkul/suggestion/src/Resources/views/shop/velocity/header/particals.blade.php b/packages/Webkul/suggestion/src/Resources/views/shop/velocity/header/particals.blade.php new file mode 100644 index 000000000..c72c02669 --- /dev/null +++ b/packages/Webkul/suggestion/src/Resources/views/shop/velocity/header/particals.blade.php @@ -0,0 +1,659 @@ +@push('scripts') + + + + + +@endpush + +@include('velocity::UI.header') + +@push('scripts') + + + + + + + + + + + +@endpush \ No newline at end of file diff --git a/packages/Webkul/suggestion/src/Resources/views/shop/velocity/index.blade.php b/packages/Webkul/suggestion/src/Resources/views/shop/velocity/index.blade.php new file mode 100644 index 000000000..0d9b43445 --- /dev/null +++ b/packages/Webkul/suggestion/src/Resources/views/shop/velocity/index.blade.php @@ -0,0 +1,13 @@ +@extends('shop::layouts.master') + +@section('page_title') + Package Suggestion +@stop + +@section('content-wrapper') + +
+ Package Suggestion +
+ +@stop \ No newline at end of file diff --git a/packages/Webkul/suggestion/src/Resources/views/shop/velocity/layouts/style.blade.php b/packages/Webkul/suggestion/src/Resources/views/shop/velocity/layouts/style.blade.php new file mode 100644 index 000000000..e3de88961 --- /dev/null +++ b/packages/Webkul/suggestion/src/Resources/views/shop/velocity/layouts/style.blade.php @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/Webkul/suggestion/webpack.mix.js b/packages/Webkul/suggestion/webpack.mix.js new file mode 100644 index 000000000..3cf3b0338 --- /dev/null +++ b/packages/Webkul/suggestion/webpack.mix.js @@ -0,0 +1,30 @@ +const mix = require("laravel-mix"); + +if (mix == 'undefined') { + const { mix } = require("laravel-mix"); +} + +require("laravel-mix-merge-manifest"); + +if (mix.inProduction()) { + var publicPath = 'publishable/assets'; +} else { + var publicPath = '../../../public/themes/default/assets'; +} +publicPath = 'publishable/assets'; +mix.setPublicPath(publicPath).mergeManifest(); +mix.disableNotifications(); + +mix.sass(__dirname + '/src/Resources/assets/sass/suggestion.scss', 'css/suggestion.css') + .options({ + processCssUrls: false + }); + + +if (! mix.inProduction()) { + mix.sourceMaps(); +} + +if (mix.inProduction()) { + mix.version(); +} \ No newline at end of file