updated again
This commit is contained in:
@@ -329,13 +329,13 @@
|
||||
<p><strong>Ship to:</strong></p>
|
||||
|
||||
@if ($address_book === null)
|
||||
<a href="{{ url('user/address-book') }}">[ Add ]</a>
|
||||
<a href="{{ url('user/address-book/create') }}">[ Add ]</a>
|
||||
@else
|
||||
<div>{{ $address_book[0]->Fullname }}</div>
|
||||
<div>{{ $address_book[0]->ContactNumber }}</div>
|
||||
<div>
|
||||
{{ $address_book[0]->Address . ', ' . $address_book[0]->State . ', ' . $address_book[0]->City . ', ' . $address_book[0]->Country . ', ' . $address_book[0]->CountryCode . ' ' . $address_book[0]->ZipCode }}
|
||||
<a href="{{ url('user/address-book') }}">[ Edit ]</a>
|
||||
<a href="{{ url('user/address-book/edit/'.$address_book[0]->Id) }}">[ Edit ]</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
@@ -1981,7 +1981,7 @@
|
||||
// console.log(response);
|
||||
if (response) {
|
||||
alert("Address is successfully added.");
|
||||
window.location = "{{ url('user/address-book') }}";
|
||||
window.location = "{{ url('/cart') }}";
|
||||
} else {
|
||||
alert("Something went wrong. Please try again!");
|
||||
location.reload();
|
||||
@@ -2013,7 +2013,7 @@
|
||||
// console.log(response);
|
||||
if (response) {
|
||||
alert("Address is successfully updated.");
|
||||
window.location = "{{ url('user/address-book') }}";
|
||||
window.location = "{{ url('/cart') }}";
|
||||
} else {
|
||||
alert("Something went wrong. Please try again!");
|
||||
location.reload();
|
||||
|
||||
Reference in New Issue
Block a user