- -
+
-
-
+
@@ -56,11 +56,12 @@ export default {
},
setProps() {
-
var this_this = this;
this.slides.forEach(function(slider) {
this_this.images.push(this_this.public_path+'/storage/'+slider.path);
+
+ this_this.content.push(slider.content);
});
this.currentIndex = 0;
@@ -69,39 +70,22 @@ export default {
} else {
this.images_loaded = true;
}
-
-
},
changeIndexLeft: function() {
-
if (this.currentIndex > 0) {
-
this.currentIndex--;
-
- }
-
- else if(this.currentIndex == 0) {
-
+ } else if(this.currentIndex == 0) {
this.currentIndex = this.images.length-1;
-
}
-
},
+
changeIndexRight: function() {
-
if(this.currentIndex < this.images.length-1) {
-
this.currentIndex++;
-
- }
-
- else if(this.currentIndex == this.images.length-1) {
-
+ } else if(this.currentIndex == this.images.length-1) {
this.currentIndex = 0;
-
}
-
}
}
};
diff --git a/packages/Webkul/Shop/src/Resources/assets/sass/app.scss b/packages/Webkul/Shop/src/Resources/assets/sass/app.scss
index 602034300..840b36082 100644
--- a/packages/Webkul/Shop/src/Resources/assets/sass/app.scss
+++ b/packages/Webkul/Shop/src/Resources/assets/sass/app.scss
@@ -25,6 +25,10 @@ body {
font-family: "Montserrat", sans-serif;
}
+input {
+ font-family: 'Montserrat', sans-serif;
+}
+
.btn.btn-primary{
border-radius: 0px;
}
@@ -140,7 +144,64 @@ body {
margin-top: 90px;
}
+
//components
+.bold {
+ font-weight: bold;
+ color: #3A3A3A;
+}
+
+/* The container */
+.radio-container {
+ display: block;
+ position: relative;
+ padding-left: 35px;
+ margin-bottom: 12px;
+ cursor: pointer;
+ font-size: 16px;
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+
+ input {
+ position: absolute;
+ opacity: 0;
+ cursor: pointer;
+ }
+
+ /* Create a custom radio button */
+ .checkmark {
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 16px;
+ width: 16px;
+ background-color: white;
+ border: 2px solid #FF6472;
+ border-radius: 50%;
+ }
+ /* Create the indicator (the dot/circle - hidden when not checked) */
+ .checkmark:after {
+ content: "";
+ position: absolute;
+ display: none;
+ }
+
+ .checkmark:after {
+ top: 2px;
+ left: 2px;
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ background: #FF6472;
+ }
+}
+
+/* Show the indicator (dot/circle) when checked */
+.radio-container input:checked ~ .checkmark:after {
+ display: block;
+}
//wishlist icon hover properties
.add-to-wishlist {
@@ -516,6 +577,10 @@ section.slider-block {
ul.slider-images {
+ .show-content {
+ display: none;
+ }
+
li{
position: absolute;
visibility: hidden;
@@ -523,10 +588,23 @@ section.slider-block {
li.show {
display:block;
+ position: relative;
visibility: visible;
width: 100%;
animation-name: example;
animation-duration: 4s;
+
+ .show-content {
+ display: flex;
+ position: absolute;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
+ color: white;
+ height: 100%;
+ width: 100%;
+ top: 0px;
+ }
}
@keyframes example {
@@ -649,6 +727,11 @@ section.slider-block {
height: 24px;
width: 24px;
cursor: pointer;
+ border: none;
+ padding: 0;
+ font: inherit;
+ cursor: pointer;
+ outline: inherit;
}
}
}
@@ -2751,11 +2834,15 @@ section.review {
margin-top: 2%;
table tbody tr {
+<<<<<<< HEAD
height: 70px;
td {
display: block;
}
+=======
+ margin-bottom: 20px;
+>>>>>>> e2c036ced0d1382b03c6a963bb7965d1d40488e2
}
}
}
@@ -2767,9 +2854,15 @@ section.review {
display: none;
}
+<<<<<<< HEAD
.responsive-empty {
display: block;
}
+=======
+//Account content inside a table
+.account-table-content {
+ color: $font-color;
+>>>>>>> e2c036ced0d1382b03c6a963bb7965d1d40488e2
.responsive-table {
border: 1px solid $border-color;
@@ -2791,6 +2884,7 @@ section.review {
}
}
+<<<<<<< HEAD
.account-items-list.table {
display: none;
}
@@ -2799,6 +2893,72 @@ section.review {
width: 100%;
}
}
+=======
+//address holder and address card
+.address-holder {
+ display: flex;
+ flex-direction: row;
+ justify-content: flex-start;
+ align-items: center;
+ flex-wrap: wrap;
+ width: 100%;
+}
+
+.address-card {
+ width: 260px;
+ border: 1px solid #E8E8E8;
+ display: flex;
+ position: relative;
+ flex-direction: row;
+ justify-content: flex-start;
+ align-items: flex-start;
+ padding: 25px 1px 22px 15px;
+ margin-right: 15px;
+ margin-bottom: 15px;
+
+ .control-group {
+ width: 15px;
+ height: 15px;
+ margin-top: 10px;
+ }
+
+ .details {
+ font-weight: lighter;
+ margin-left: 15px;
+
+ span {
+ display: block;
+ margin: 8px;
+ }
+
+ .control-links {
+ width: 90%;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ align-items: center;
+
+ .btn {
+ height: 30px;
+ }
+ }
+
+ .default-address {
+ position: absolute;
+ top: -3px;
+ right: -3px;
+ }
+ }
+}
+
+.edit-form {
+ display: flex;
+ border: 1px solid $border-color;
+ flex-direction: column;
+ min-height: 345px;
+ padding: 25px;
+>>>>>>> e2c036ced0d1382b03c6a963bb7965d1d40488e2
}
.sale-container {
diff --git a/packages/Webkul/Shop/src/Resources/lang/en/app.php b/packages/Webkul/Shop/src/Resources/lang/en/app.php
index 9ed2eac23..b5e6e0d8d 100644
--- a/packages/Webkul/Shop/src/Resources/lang/en/app.php
+++ b/packages/Webkul/Shop/src/Resources/lang/en/app.php
@@ -24,6 +24,11 @@ return [
'locale' => 'Locale',
],
+ 'search' => [
+ 'no-results' => 'No Results Found.',
+ 'page-title' => 'Bagisto - Search'
+ ],
+
'reviews' => [
'title' => 'Title',
'add-review-page-title' => 'Add Review',
@@ -122,6 +127,9 @@ return [
'edit' => 'Edit',
'empty' => 'You don\'t have any saved addresses here, please create a new one by clicking the link below.',
'create' => 'Create Address',
+ 'delete' => 'Delete',
+ 'make-default' => 'Make Default',
+ 'default' => 'Default'
],
'create' => [
@@ -140,6 +148,10 @@ return [
'page-title' => 'Customer - Edit Address',
'title' => 'Edit Address',
'submit' => 'Edit Address'
+ ],
+ 'delete' => [
+ 'success' => 'Address Successfully Deleted',
+ 'failure' => 'Address Cannot Be Deleted'
]
],
diff --git a/packages/Webkul/Shop/src/Resources/views/customers/account/address/address.blade.php b/packages/Webkul/Shop/src/Resources/views/customers/account/address/address.blade.php
index 5a2a87908..d153158cb 100644
--- a/packages/Webkul/Shop/src/Resources/views/customers/account/address/address.blade.php
+++ b/packages/Webkul/Shop/src/Resources/views/customers/account/address/address.blade.php
@@ -16,62 +16,65 @@
{{ __('shop::app.customer.account.address.index.title') }}
- @if(!$address->isEmpty())
-
-
- {{ __('shop::app.customer.account.address.index.edit') }}
-
-
+ @if(!$addresses->isEmpty())
+
+ {{ __('shop::app.customer.account.address.index.add') }}
+
@else
-
+
@endif
- @if($address->isEmpty())
+ @if($addresses->isEmpty())
{{ __('shop::app.customer.account.address.index.empty') }}
{{ __('shop::app.customer.account.address.index.add') }}
@else
-
-
-
- | {{ __('shop::app.customer.account.address.create.address1') }} |
- {{ $address['address1'] }} |
-
+
+ @foreach($addresses as $address)
+
+ {{--
+
+
--}}
-
- | {{ __('shop::app.customer.account.address.create.address2') }} |
- {{ $address['address2'] }} |
-
+
+
{{ auth()->guard('customer')->user()->name }}
+
{{ $address['address1'] }}
+
{{ $address['address2'] }}
+
{{ $address['country'] }}
+
{{ $address['state'] }}
+
{{ $address['city'] }}
+
{{ $address['postcode'] }}
-
- | {{ __('shop::app.customer.account.address.create.country') }} |
- {{ $address['country'] }} |
-
+
+
+
+
-
- | {{ __('shop::app.customer.account.address.create.state') }} |
- {{ $address['state'] }} |
-
+
+
+
+
-
- | {{ __('shop::app.customer.account.address.create.city') }} |
- {{ $address['city'] }} |
-
+ @if($address['default_address'] == 1)
+
{{ __('shop::app.customer.account.address.index.default') }}
+ @else
+
+ @endif
-
- | {{ __('shop::app.customer.account.address.create.postcode') }} |
- {{ $address['postcode'] }} |
-
-
-
+
+