From 283922a44ccd1cbfd3125b94f2e1c9c8a34a4713 Mon Sep 17 00:00:00 2001 From: Prashant Singh Date: Wed, 17 Apr 2019 11:20:48 +0530 Subject: [PATCH 01/89] Some syntax issue fixes --- .../views/products/add-buttons.blade.php | 39 +++++++++---------- .../Resources/views/products/index.blade.php | 8 ++-- .../Resources/views/products/price.blade.php | 4 -- .../Resources/views/products/view.blade.php | 2 - .../views/products/view/gallery.blade.php | 14 ------- .../views/products/wishlist.blade.php | 2 +- 6 files changed, 25 insertions(+), 44 deletions(-) diff --git a/packages/Webkul/Shop/src/Resources/views/products/add-buttons.blade.php b/packages/Webkul/Shop/src/Resources/views/products/add-buttons.blade.php index 22c22ef3a..1df4f75dd 100644 --- a/packages/Webkul/Shop/src/Resources/views/products/add-buttons.blade.php +++ b/packages/Webkul/Shop/src/Resources/views/products/add-buttons.blade.php @@ -1,22 +1,21 @@ +@if ($product->type == "configurable") +
+ + {{ __('shop::app.products.add-to-cart') }} + - @if ($product->type == "configurable") -
- - {{ __('shop::app.products.add-to-cart') }} - + @include('shop::products.wishlist') +
+@else +
+
+ @csrf + + + + +
- @include('shop::products.wishlist') -
- @else -
-
- @csrf - - - - -
- - @include('shop::products.wishlist') -
- @endif \ No newline at end of file + @include('shop::products.wishlist') +
+@endif \ No newline at end of file diff --git a/packages/Webkul/Shop/src/Resources/views/products/index.blade.php b/packages/Webkul/Shop/src/Resources/views/products/index.blade.php index 95a1b6cc0..24ec87752 100755 --- a/packages/Webkul/Shop/src/Resources/views/products/index.blade.php +++ b/packages/Webkul/Shop/src/Resources/views/products/index.blade.php @@ -70,9 +70,7 @@ {!! view_render_event('bagisto.shop.products.index.pagination.after') !!} - @else -

{{ __('shop::app.products.whoops') }}

@@ -80,7 +78,6 @@ {{ __('shop::app.products.empty') }}

- @endif @endif @@ -94,13 +91,16 @@ @@ -133,36 +176,81 @@ inject: ['$validator'], - data() { + data () { return { - criteria: @json($criteria[0]), attributes: @json($criteria[1]), attribute: null, - attribute_families: null, - name: null, - description: null, + attribute_families: @json($criteria[2]), + attribute_family: null, + cart_attribute: null, channels: [], + criteria: @json($criteria[0]), + conditions: [], + cart_attr: { + cart_attribute : null, + condition_one: null, + value_one: null, + condition_two: null, + value_two: null + }, + attr_family: { + attribute_family : null, + condition_one: null, + value_one: null, + condition_two: null, + value_two: null + }, + attr: { + attribute : null, + condition_one: null, + value_one: null, + condition_two: null, + value_two: null + }, customer_groups: [], - criteria: null, - priority: 0, - starts_from: null, + description: null, ends_till: null, enableAttribute: false, - enableCartAttribute: false + enableCartAttribute: false, + enableAttributeFamily: false, + enableCartAttrLine: false, + enableAttrLine: false, + enableAttrFamLine: false, + name: null, + priority: 0, + starts_from: null } }, - mounted() { - console.log(this.attribute); + mounted () { + console.log(this.criteria.cart); + + for(index in this.criteria.cart) { + console.log(this.criteria.cart[index]); + } }, methods: { - addCondition() { - if (this.criteria == "attribute_family") { + addCondition () { + if (this.criteria == "attribute" || this.criteria == "attribute_family" || this.criteria == "cart_attribute") { + this.condition_on = this.criteria; + } else { + alert('please try again'); + } + + if (this.condition_on == "attribute") { + this.attr.push(); + this.enableAttribute = true; this.enableCartAttribute = false; - } else if (this.criteria == "cart_attribute") { + this.enableAttributeFamily = false; + } else if (this.condition_on == "attribute_family") { + this.enableAttributeFamily = true; + this.enableAttribute = false; + this.enableCartAttribute = false; + } else { this.enableCartAttribute = true; + this.enableAttributeFamily = false; this.enableAttribute = false; } } diff --git a/packages/Webkul/Attribute/src/Repositories/AttributeFamilyRepository.php b/packages/Webkul/Attribute/src/Repositories/AttributeFamilyRepository.php index 3deb198de..fdc933d52 100755 --- a/packages/Webkul/Attribute/src/Repositories/AttributeFamilyRepository.php +++ b/packages/Webkul/Attribute/src/Repositories/AttributeFamilyRepository.php @@ -153,6 +153,23 @@ class AttributeFamilyRepository extends Repository return $family; } + public function getNameAndId() + { + $attributeFamilies = $this->model->all(); + $trimmed = array(); + + foreach($attributeFamilies as $key => $attributeFamily) { + if ($attributeFamily->name != null || $attributeFamily->name != "") { + $trimmed[$key] = [ + 'id' => $attributeFamily->id, + 'name' => $attributeFamily->name + ]; + } + } + + return $trimmed; + } + /** * @param $id * @return void diff --git a/packages/Webkul/Attribute/src/Repositories/AttributeRepository.php b/packages/Webkul/Attribute/src/Repositories/AttributeRepository.php index 7ac578dab..8ad18a1ed 100755 --- a/packages/Webkul/Attribute/src/Repositories/AttributeRepository.php +++ b/packages/Webkul/Attribute/src/Repositories/AttributeRepository.php @@ -222,10 +222,12 @@ class AttributeRepository extends Repository $trimmed = array(); foreach($attributes as $key => $attribute) { - $trimmed[$key] = [ - 'id' => $attribute->id, - 'name' => $attribute->name - ]; + if ($attribute->name != null || $attribute->name != "") { + $trimmed[$key] = [ + 'id' => $attribute->id, + 'name' => $attribute->name + ]; + } } return $trimmed; diff --git a/packages/Webkul/Discount/src/Http/Controllers/CatalogRuleController.php b/packages/Webkul/Discount/src/Http/Controllers/CatalogRuleController.php index 64b7b583c..4155adf31 100644 --- a/packages/Webkul/Discount/src/Http/Controllers/CatalogRuleController.php +++ b/packages/Webkul/Discount/src/Http/Controllers/CatalogRuleController.php @@ -7,6 +7,7 @@ use Illuminate\Http\Response; use Illuminate\Routing\Controller; use Webkul\Attribute\Repositories\AttributeRepository as Attribute; +use Webkul\Attribute\Repositories\AttributeFamilyRepository as AttributeFamily; /** * Catalog Rule controller @@ -18,11 +19,13 @@ class CatalogRuleController extends Controller { protected $_config; protected $attribute; + protected $attributeFamily; - public function __construct(Attribute $attribute) + public function __construct(Attribute $attribute, AttributeFamily $attributeFamily) { $this->_config = request('_config'); $this->attribute = $attribute; + $this->attributeFamily = $attributeFamily; } public function index() @@ -39,14 +42,22 @@ class CatalogRuleController extends Controller 2 => 'grand_total' ], - 'product' => [ + 'attribute' => [ 0 => 'attribute', 1 => 'attribute_groups', 2 => 'attribute_familes' ] ]; - return view($this->_config['view'])->with('criteria', [$ruleCriterias, $this->attribute->getNameAndId()]); + $arr = array(); + + foreach($ruleCriterias as $key => $ruleCriteria) { + array_push($arr, $ruleCriteria); + } + + $arr; + + return view($this->_config['view'])->with('criteria', [$ruleCriterias, $this->attribute->getNameAndId(), $this->attributeFamily->getNameAndId()]); } public function store() diff --git a/packages/Webkul/Shipping/src/Config/carriers.php b/packages/Webkul/Shipping/src/Config/carriers.php index 8c4524da0..5562a3f53 100755 --- a/packages/Webkul/Shipping/src/Config/carriers.php +++ b/packages/Webkul/Shipping/src/Config/carriers.php @@ -16,6 +16,7 @@ return [ 'title' => 'Free Shipping', 'description' => 'This is a free shipping', 'active' => true, + 'default_rate' => '0', 'class' => 'Webkul\Shipping\Carriers\Free', ] ]; \ No newline at end of file From a03d7521856d8d3bdf3c4cdd1a222da6fe9d2d1a Mon Sep 17 00:00:00 2001 From: Prashant Singh Date: Mon, 6 May 2019 10:32:46 +0530 Subject: [PATCH 09/89] catalog rule --- .../promotions/cart-rule/create.blade.php | 18 ++- .../promotions/catalog-rule/create.blade.php | 137 ++++-------------- .../src/Repositories/AttributeRepository.php | 2 - .../src/Repositories/CategoryRepository.php | 17 +++ ...019_04_30_020321_alter_discounts_table.php | 1 + .../Controllers/CatalogRuleController.php | 29 +--- 6 files changed, 63 insertions(+), 141 deletions(-) diff --git a/packages/Webkul/Admin/src/Resources/views/promotions/cart-rule/create.blade.php b/packages/Webkul/Admin/src/Resources/views/promotions/cart-rule/create.blade.php index 3629680c3..6e4c1de02 100644 --- a/packages/Webkul/Admin/src/Resources/views/promotions/cart-rule/create.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/promotions/cart-rule/create.blade.php @@ -31,10 +31,20 @@
@csrf() -
- - - @{{ errors.first('first_name') }} +
+
+ + + + + + + + +
diff --git a/packages/Webkul/Admin/src/Resources/views/promotions/catalog-rule/create.blade.php b/packages/Webkul/Admin/src/Resources/views/promotions/catalog-rule/create.blade.php index 9a656836c..e92f70085 100644 --- a/packages/Webkul/Admin/src/Resources/views/promotions/catalog-rule/create.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/promotions/catalog-rule/create.blade.php @@ -97,9 +97,8 @@ @{{ errors.first('criteria') }} @@ -107,64 +106,25 @@ Select Condition -
-
- - - @{{ errors.first('attribute') }} -
- -
- - - @{{ errors.first('attribute_family') }} -
- -
- - - @{{ errors.first('cart_attribute') }} -
-
-
-
- - - - - - - @{{ errors.first('cart_attr') }} +
+
+ Attribute is + +
-
- - - - - - - @{{ errors.first('attr') }} -
- -
- - - - - - - @{{ errors.first('attr_fam') }} +
+
+ Category is + +
@@ -178,44 +138,11 @@ data () { return { - attributes: @json($criteria[1]), - attribute: null, - attribute_families: @json($criteria[2]), - attribute_family: null, - cart_attribute: null, + attributes: @json($criteria[0]), + categories: @json($criteria[1]), channels: [], - criteria: @json($criteria[0]), conditions: [], - cart_attr: { - cart_attribute : null, - condition_one: null, - value_one: null, - condition_two: null, - value_two: null - }, - attr_family: { - attribute_family : null, - condition_one: null, - value_one: null, - condition_two: null, - value_two: null - }, - attr: { - attribute : null, - condition_one: null, - value_one: null, - condition_two: null, - value_two: null - }, - customer_groups: [], - description: null, - ends_till: null, - enableAttribute: false, - enableCartAttribute: false, - enableAttributeFamily: false, - enableCartAttrLine: false, - enableAttrLine: false, - enableAttrFamLine: false, + attrs_count: 0, name: null, priority: 0, starts_from: null @@ -223,11 +150,6 @@ }, mounted () { - console.log(this.criteria.cart); - - for(index in this.criteria.cart) { - console.log(this.criteria.cart[index]); - } }, methods: { @@ -239,19 +161,12 @@ } if (this.condition_on == "attribute") { - this.attr.push(); + if (this.attrs_count == 0) { + // this.enableAttrLine = true; + } - this.enableAttribute = true; - this.enableCartAttribute = false; - this.enableAttributeFamily = false; - } else if (this.condition_on == "attribute_family") { - this.enableAttributeFamily = true; - this.enableAttribute = false; - this.enableCartAttribute = false; - } else { - this.enableCartAttribute = true; - this.enableAttributeFamily = false; - this.enableAttribute = false; + this.attrs_count++; + this.attrs.push(this.attr); } } } diff --git a/packages/Webkul/Attribute/src/Repositories/AttributeRepository.php b/packages/Webkul/Attribute/src/Repositories/AttributeRepository.php index 8ad18a1ed..3a857d330 100755 --- a/packages/Webkul/Attribute/src/Repositories/AttributeRepository.php +++ b/packages/Webkul/Attribute/src/Repositories/AttributeRepository.php @@ -216,8 +216,6 @@ class AttributeRepository extends Repository */ public function getNameAndId() { - $static = []; - $attributes = $this->model->all(); $trimmed = array(); diff --git a/packages/Webkul/Category/src/Repositories/CategoryRepository.php b/packages/Webkul/Category/src/Repositories/CategoryRepository.php index 7a2f43536..b91516070 100755 --- a/packages/Webkul/Category/src/Repositories/CategoryRepository.php +++ b/packages/Webkul/Category/src/Repositories/CategoryRepository.php @@ -212,4 +212,21 @@ class CategoryRepository extends Repository $category->save(); } } + + public function getNameAndId() + { + $categories = $this->model->all(); + $trimmed = array(); + + foreach ($categories as $key => $category) { + if ($category->name != null || $category->name != "") { + $trimmed[$key] = [ + 'id' => $category->id, + 'name' => $category->name + ]; + } + } + + return $trimmed; + } } \ No newline at end of file diff --git a/packages/Webkul/Discount/src/Database/Migrations/2019_04_30_020321_alter_discounts_table.php b/packages/Webkul/Discount/src/Database/Migrations/2019_04_30_020321_alter_discounts_table.php index 806d39a2b..4bffd7225 100644 --- a/packages/Webkul/Discount/src/Database/Migrations/2019_04_30_020321_alter_discounts_table.php +++ b/packages/Webkul/Discount/src/Database/Migrations/2019_04_30_020321_alter_discounts_table.php @@ -22,6 +22,7 @@ class AlterDiscountsTable extends Migration $table->dateTime('ends_till'); $table->integer( 'priority')->unsigned(); $table->boolean('ends_subsequent')->default(false); + $table->boolean('is_all')->default(1); }); Schema::table('discount_channels', function (Blueprint $table) { diff --git a/packages/Webkul/Discount/src/Http/Controllers/CatalogRuleController.php b/packages/Webkul/Discount/src/Http/Controllers/CatalogRuleController.php index 4155adf31..ff1696a5d 100644 --- a/packages/Webkul/Discount/src/Http/Controllers/CatalogRuleController.php +++ b/packages/Webkul/Discount/src/Http/Controllers/CatalogRuleController.php @@ -8,6 +8,7 @@ use Illuminate\Routing\Controller; use Webkul\Attribute\Repositories\AttributeRepository as Attribute; use Webkul\Attribute\Repositories\AttributeFamilyRepository as AttributeFamily; +use Webkul\Category\Repositories\CategoryRepository as Category; /** * Catalog Rule controller @@ -20,12 +21,14 @@ class CatalogRuleController extends Controller protected $_config; protected $attribute; protected $attributeFamily; + protected $category; - public function __construct(Attribute $attribute, AttributeFamily $attributeFamily) + public function __construct(Attribute $attribute, AttributeFamily $attributeFamily, Category $category) { $this->_config = request('_config'); $this->attribute = $attribute; $this->attributeFamily = $attributeFamily; + $this->category = $category; } public function index() @@ -35,29 +38,7 @@ class CatalogRuleController extends Controller public function create() { - $ruleCriterias = [ - 'cart' => [ - 0 => 'sub_total', - 1 => 'shipping_total', - 2 => 'grand_total' - ], - - 'attribute' => [ - 0 => 'attribute', - 1 => 'attribute_groups', - 2 => 'attribute_familes' - ] - ]; - - $arr = array(); - - foreach($ruleCriterias as $key => $ruleCriteria) { - array_push($arr, $ruleCriteria); - } - - $arr; - - return view($this->_config['view'])->with('criteria', [$ruleCriterias, $this->attribute->getNameAndId(), $this->attributeFamily->getNameAndId()]); + return view($this->_config['view'])->with('criteria', [$this->attribute->getNameAndId(), $this->category->getNameAndId()]); } public function store() From 5a2405c135ba69905ff329d115d07a9811b071e8 Mon Sep 17 00:00:00 2001 From: Prashant Singh Date: Mon, 6 May 2019 19:14:02 +0530 Subject: [PATCH 10/89] Made some dynamic form fields in catalog rule create form --- packages/Webkul/Admin/src/Http/routes.php | 2 + .../promotions/catalog-rule/create.blade.php | 84 ++++++++++++++----- .../Controllers/CatalogRuleController.php | 4 + 3 files changed, 70 insertions(+), 20 deletions(-) diff --git a/packages/Webkul/Admin/src/Http/routes.php b/packages/Webkul/Admin/src/Http/routes.php index a2ba11306..e88c98088 100755 --- a/packages/Webkul/Admin/src/Http/routes.php +++ b/packages/Webkul/Admin/src/Http/routes.php @@ -621,6 +621,8 @@ Route::group(['middleware' => ['web']], function () { 'redirect' => 'admin.catalog-rule.create' ])->name('admin.catalog-rule.store'); + Route::post('/fetch/attribute', 'Webkul\Discount\Controllers\CatalogRuleController@fetchAttribute'); + Route::get('/cart-rule', 'Webkul\Discount\Http\Controllers\CartRuleController@index')->defaults('_config', [ 'view' => 'admin::promotions.cart-rule.index' ])->name('admin.cart-rule.index'); diff --git a/packages/Webkul/Admin/src/Resources/views/promotions/catalog-rule/create.blade.php b/packages/Webkul/Admin/src/Resources/views/promotions/catalog-rule/create.blade.php index e92f70085..f13b108cc 100644 --- a/packages/Webkul/Admin/src/Resources/views/promotions/catalog-rule/create.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/promotions/catalog-rule/create.blade.php @@ -95,11 +95,11 @@
+ + @{{ errors.first('criteria') }}
@@ -108,22 +108,42 @@
-
- Attribute is - - + + + + + + +
-
-
- Category is - - + + + + + + +
@@ -143,9 +163,26 @@ channels: [], conditions: [], attrs_count: 0, + cats_count: 0, name: null, priority: 0, - starts_from: null + starts_from: null, + ends_till: null, + description: null, + customer_groups: [], + criteria: null, + attr: { + attribute: null, + condition: null, + value: null + }, + cat: { + category: null, + condition: null, + value: null + }, + attrs: [], + cats: [] } }, @@ -154,20 +191,27 @@ methods: { addCondition () { - if (this.criteria == "attribute" || this.criteria == "attribute_family" || this.criteria == "cart_attribute") { + if (this.criteria == 'attribute' || this.criteria == 'category') { this.condition_on = this.criteria; } else { alert('please try again'); + + return false; } - if (this.condition_on == "attribute") { - if (this.attrs_count == 0) { - // this.enableAttrLine = true; - } - - this.attrs_count++; + if (this.condition_on == 'attribute') { this.attrs.push(this.attr); + } else if (this.condition_on == 'category') { + this.cats.push(this.cat); } + }, + + removeAttr(index) { + this.attrs.splice(index, 1); + }, + + removeCat(index) { + this.cats.splice(index, 1); } } }); diff --git a/packages/Webkul/Discount/src/Http/Controllers/CatalogRuleController.php b/packages/Webkul/Discount/src/Http/Controllers/CatalogRuleController.php index ff1696a5d..ffd1a539f 100644 --- a/packages/Webkul/Discount/src/Http/Controllers/CatalogRuleController.php +++ b/packages/Webkul/Discount/src/Http/Controllers/CatalogRuleController.php @@ -45,4 +45,8 @@ class CatalogRuleController extends Controller { dd(request()->all()); } + + public function fetchAttribute() { + return request()->all(); + } } \ No newline at end of file From 2a2bcdb1624fe947a43c2442eb7e3b38c9ca731e Mon Sep 17 00:00:00 2001 From: Prashant Singh Date: Mon, 6 May 2019 19:26:54 +0530 Subject: [PATCH 11/89] made some changes for custom validations used in ProductForm request class --- .../catalog/products/accordians/product-links.blade.php | 2 +- .../src/Resources/views/catalog/products/index.blade.php | 3 --- .../views/promotions/catalog-rule/create.blade.php | 6 +++--- packages/Webkul/Product/src/Http/Requests/ProductForm.php | 8 ++++++-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/Webkul/Admin/src/Resources/views/catalog/products/accordians/product-links.blade.php b/packages/Webkul/Admin/src/Resources/views/catalog/products/accordians/product-links.blade.php index ace543f39..0a9bc844c 100755 --- a/packages/Webkul/Admin/src/Resources/views/catalog/products/accordians/product-links.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/catalog/products/accordians/product-links.blade.php @@ -22,7 +22,7 @@ {{ __('admin::app.catalog.products.related-products') }} - +
    diff --git a/packages/Webkul/Admin/src/Resources/views/catalog/products/index.blade.php b/packages/Webkul/Admin/src/Resources/views/catalog/products/index.blade.php index 68b38f13c..495cb0196 100755 --- a/packages/Webkul/Admin/src/Resources/views/catalog/products/index.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/catalog/products/index.blade.php @@ -21,9 +21,6 @@ {!! view_render_event('bagisto.admin.catalog.products.list.before') !!}
    - {{-- @inject('product','Webkul\Admin\DataGrids\ProductDataGrid') - {!! $product->render() !!} --}} - @inject('products', 'Webkul\Admin\DataGrids\ProductDataGrid') {!! $products->render() !!}
    diff --git a/packages/Webkul/Admin/src/Resources/views/promotions/catalog-rule/create.blade.php b/packages/Webkul/Admin/src/Resources/views/promotions/catalog-rule/create.blade.php index f13b108cc..27bca147d 100644 --- a/packages/Webkul/Admin/src/Resources/views/promotions/catalog-rule/create.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/promotions/catalog-rule/create.blade.php @@ -108,7 +108,7 @@
    -
    +
    Attribute is - +
    -
    +
    Category is + - - + - +
    -
    +
    Category is - - - +
    diff --git a/packages/Webkul/Discount/src/Http/Controllers/CatalogRuleController.php b/packages/Webkul/Discount/src/Http/Controllers/CatalogRuleController.php index ffd1a539f..6871d8d1f 100644 --- a/packages/Webkul/Discount/src/Http/Controllers/CatalogRuleController.php +++ b/packages/Webkul/Discount/src/Http/Controllers/CatalogRuleController.php @@ -9,6 +9,7 @@ use Illuminate\Routing\Controller; use Webkul\Attribute\Repositories\AttributeRepository as Attribute; use Webkul\Attribute\Repositories\AttributeFamilyRepository as AttributeFamily; use Webkul\Category\Repositories\CategoryRepository as Category; +use Webkul\Product\Repositories\ProductFlatRepository as Product; /** * Catalog Rule controller @@ -22,13 +23,15 @@ class CatalogRuleController extends Controller protected $attribute; protected $attributeFamily; protected $category; + protected $product; - public function __construct(Attribute $attribute, AttributeFamily $attributeFamily, Category $category) + public function __construct(Attribute $attribute, AttributeFamily $attributeFamily, Category $category, Product $product) { $this->_config = request('_config'); $this->attribute = $attribute; $this->attributeFamily = $attributeFamily; $this->category = $category; + $this->product = $product; } public function index() @@ -46,7 +49,8 @@ class CatalogRuleController extends Controller dd(request()->all()); } - public function fetchAttribute() { + public function fetchAttribute() + { return request()->all(); } } \ No newline at end of file From 8a7a142414609dc91025bf04d1f4dcca2759c057 Mon Sep 17 00:00:00 2001 From: Prashant Singh Date: Tue, 7 May 2019 01:42:15 +0530 Subject: [PATCH 13/89] need another revisit on discount rules tables and then prepare for actions --- .../promotions/cart-rule/create.blade.php | 223 ++++++++++++++++-- .../promotions/catalog-rule/create.blade.php | 42 ++-- 2 files changed, 226 insertions(+), 39 deletions(-) diff --git a/packages/Webkul/Admin/src/Resources/views/promotions/cart-rule/create.blade.php b/packages/Webkul/Admin/src/Resources/views/promotions/cart-rule/create.blade.php index 6e4c1de02..2c9ecb987 100644 --- a/packages/Webkul/Admin/src/Resources/views/promotions/cart-rule/create.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/promotions/cart-rule/create.blade.php @@ -6,48 +6,225 @@ @section('content')
    -
    + + @csrf
    -
    - @csrf() - -
    -
    - - - - - - - - -
    -
    +
    + + @push('scripts') + + + + @endpush @stop \ No newline at end of file diff --git a/packages/Webkul/Admin/src/Resources/views/promotions/catalog-rule/create.blade.php b/packages/Webkul/Admin/src/Resources/views/promotions/catalog-rule/create.blade.php index a76d12230..74319f8f9 100644 --- a/packages/Webkul/Admin/src/Resources/views/promotions/catalog-rule/create.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/promotions/catalog-rule/create.blade.php @@ -7,6 +7,7 @@ @section('content')
    + @csrf