+
-
We are generating the QR code that you need to send to your supplier to print to stick to your packages, this QR code is required for us to identify your packages when they arrives at our warehouse!
+
We are generating your first QR code
+
Please wait...
+
+
+
+
+
We are generating the QR code for you to send to your supplier to print and stick to your packages, this QR code is required for us to identify your packages when they arrives at our warehouse!
Please wait...
@@ -176,7 +182,7 @@
methods:{
createOrder(){
this.step++;
- this.submit((this.route('api.order.create')), 'post', 'orderListSection', true, false)
+ this.submit((this.route('api.order.create')), 'post', 'orderListSection', false, false)
},
cancelOrder(){
this.parameters.warehouse_id = '';
@@ -184,13 +190,18 @@
this.$store.dispatch('toggleSection', {name: this.section, status: false})
},
successHandler(response){
- let vm = this;
+ if(!this.company.last_order) {
+ window.location.reload();
+ return;
+ }
+
setTimeout(function(){
window.location.href = this.route('order.show', response.payload.data.reference)
}, 5000);
},
errorHandler(response){
+ alert(response.message)
this.error = response.message;
this.step--;
}
diff --git a/resources/assets/vue/general/mixins/guards.js b/resources/assets/vue/general/mixins/guards.js
index ffa96e7d..cd61d755 100644
--- a/resources/assets/vue/general/mixins/guards.js
+++ b/resources/assets/vue/general/mixins/guards.js
@@ -5,7 +5,7 @@ export default {
(this.$store.getters.isAuthenticated && !this.isProtectedRoute()&& this.isWithTokenRoute()) ? window.location.href = this.route('dashboard') : '';
},
isProtectedRoute(){
- const unprotectedRoutes = [this.route('login'), this.route('account.email.verification'), this.route('company.claim')];
+ const unprotectedRoutes = [this.route('login'), this.route('account.email.verification'), this.route('company.claim'), this.route('signup')];
if(window.location.href.indexOf(this.route('company.claim')) === 0) {
return false;
}
diff --git a/resources/views/pages/accounts/signup.blade.php b/resources/views/pages/accounts/signup.blade.php
new file mode 100644
index 00000000..226cd994
--- /dev/null
+++ b/resources/views/pages/accounts/signup.blade.php
@@ -0,0 +1,67 @@
+@extends('layouts.base')
+@section('content')
+
+
+
+
+
+
+
+
}})
+
+
+
+
+
Spend less time managing your logistics and more time optimizing your operations.
+
+
+
+
+
You know how to run your operations, let us help you streamline your logistic supply chain management.
+
+
+
+
+
Sign-up today and get access to:
+ An intuitive and easy to use order process
+ Service customization to keep you in control
+ Follow-up action to keep you on track
+ Personalized customer support
+
+
+
+
+
+
+
+
+@endsection
\ No newline at end of file
diff --git a/routes/web.php b/routes/web.php
index 31c961b1..b99ae38f 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -31,6 +31,10 @@ Route::get('', function () {
return view('pages.accounts.login');
})->name('login');
+Route::get('/signup', function () {
+ return view('pages.accounts.signup');
+})->name('signup');
+
Route::group(['prefix' => 'swagger'], function () {
Route::get('/', function () {
return view('swagger.index');