Reset your password
+Support:
+To obtain access to this site or for any questions about its
use submit an email message to info@izyim.com
diff --git a/app/Classes/Modules/Accounts/Services/ExpiresPasswordReset.php b/app/Classes/Modules/Accounts/Services/ExpiresPasswordReset.php
new file mode 100644
index 00000000..b8b27692
--- /dev/null
+++ b/app/Classes/Modules/Accounts/Services/ExpiresPasswordReset.php
@@ -0,0 +1,28 @@
+is_expired = true;
+ return $this->handler($model);
+
+
+ }
+
+
+}
\ No newline at end of file
diff --git a/app/Classes/Modules/Accounts/Services/GeneratesAuthenticationToken.php b/app/Classes/Modules/Accounts/Services/GeneratesAuthenticationToken.php
index d63678f3..4d9677d3 100644
--- a/app/Classes/Modules/Accounts/Services/GeneratesAuthenticationToken.php
+++ b/app/Classes/Modules/Accounts/Services/GeneratesAuthenticationToken.php
@@ -55,6 +55,7 @@ class GeneratesAuthenticationToken {
/** @var Company $companyModule */
$companyModule = $user->companyModule()->first();
+ $order = $companyModule->orders->count();
$claims = [
'id' => $user->id,
@@ -66,7 +67,9 @@ class GeneratesAuthenticationToken {
if($user->type === RoleTypes::USER) {
$claims = array_merge($claims, [
- 'company_id' => $companyModule->company_id
+ 'company_id' => $companyModule->company_id,
+ 'company_module_id' => $companyModule->id,
+ 'order' => $order
]);
}
diff --git a/app/Models/CompanyModule.php b/app/Models/CompanyModule.php
index bcb39dee..ce6ffc90 100644
--- a/app/Models/CompanyModule.php
+++ b/app/Models/CompanyModule.php
@@ -6,6 +6,8 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\MorphMany;
+use Illuminate\Database\Eloquent\Relations\HasMany;
+
use Illuminate\Database\Eloquent\SoftDeletes;
/**
@@ -56,6 +58,15 @@ class CompanyModule extends AbstractModel
return $this->belongsToMany(User::class, (new CompanyEmployee())->getTable(), 'company_module_id', 'user_id');
}
+ /**
+ * @return HasMany
+ */
+ public function orders(): HasMany
+ {
+ return $this->HasMany(Order::class, 'company_module_id');
+ }
+
+
// /**
// * @return HasMany
// */
diff --git a/database/migrations/2021_07_05_115638_create_banks_table.php b/database/migrations/2021_07_05_115638_create_banks_table.php
index 6b416d79..e41e8483 100644
--- a/database/migrations/2021_07_05_115638_create_banks_table.php
+++ b/database/migrations/2021_07_05_115638_create_banks_table.php
@@ -45,6 +45,6 @@ class CreateBanksTable extends Migration
*/
public function down()
{
- Schema::dropIfExists('banks');
+ Schema::dropIfExists('bank_accounts');
}
}
diff --git a/resources/assets/sass/_custom.scss b/resources/assets/sass/_custom.scss
new file mode 100644
index 00000000..d5520287
--- /dev/null
+++ b/resources/assets/sass/_custom.scss
@@ -0,0 +1,113 @@
+@page {
+ header: page-header;
+ footer: page-footer;
+}
+
+body {
+ font-family: sun-extA;
+}
+
+.header {
+ margin-top: 5em;
+}
+
+.sidebar {
+ width: 285px;
+ position: fixed;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ z-index: 100;
+ padding: 0 15px 0 15px; /* Height of navbar */
+ /* box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1); */
+}
+
+.sidebar-sticky {
+ position: relative;
+ top: 0;
+ height: calc(100vh - 48px);
+ padding-top: .5rem;
+ overflow-x: hidden;
+ overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
+}
+
+@supports ((position: -webkit-sticky) or (position: sticky)) {
+.sidebar-sticky {
+ position: -webkit-sticky;
+ position: sticky;
+ }
+}
+
+.sidebar .nav-link {
+ font-weight: 500;
+ color: #333;
+}
+
+.sidebar .nav-link .feather {
+ margin-right: 4px;
+ color: #999;
+}
+
+.sidebar .nav-link.active {
+ color: #007bff;
+}
+
+.sidebar .nav-link:hover .feather,
+.sidebar .nav-link.active .feather {
+ color: inherit;
+}
+
+.sidebar-heading {
+ font-size: .75rem;
+ text-transform: uppercase;
+}
+
+.navbar-brand {
+ padding-top: .75rem;
+ padding-bottom: .75rem;
+ font-size: 1rem;
+ background-color: rgba(0, 0, 0, .25);
+ box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
+}
+
+.navbar .navbar-toggler {
+ top: .25rem;
+ right: 1rem;
+}
+
+.navbar .form-control {
+ padding: .75rem 1rem;
+ border-width: 0;
+ border-radius: 0;
+}
+
+.form-control-dark {
+ color: #fff;
+ background-color: rgba(255, 255, 255, .1);
+ border-color: rgba(255, 255, 255, .1);
+}
+
+.form-control-dark:focus {
+ border-color: transparent;
+ box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
+}
+
+.text-menu {
+ color: #a6a6a6;
+ font-size: 16px;
+}
+
+.board {
+ width: 100%;
+ height: 180px;
+ background: -webkit-linear-gradient(#503C93, #912873);
+ background: linear-gradient(#503C93, #912873);
+}
+
+.text-small {
+ font-size: 12px;
+}
+
+.btn-white {
+ background-color: #ffffff !important;
+}
\ No newline at end of file
diff --git a/resources/assets/sass/main.scss b/resources/assets/sass/main.scss
index 6c8a8703..d606b5f9 100644
--- a/resources/assets/sass/main.scss
+++ b/resources/assets/sass/main.scss
@@ -32,6 +32,8 @@
@import "modules";
// Responsive Util
@import "responsive";
+// Import custom
+@import "custom";
diff --git a/resources/assets/vue/components/accounts/elements/EmailVerificationComponent.vue b/resources/assets/vue/components/accounts/elements/EmailVerificationComponent.vue
new file mode 100644
index 00000000..5169f3b0
--- /dev/null
+++ b/resources/assets/vue/components/accounts/elements/EmailVerificationComponent.vue
@@ -0,0 +1,77 @@
+
+ Forgot password? New Customer? Create AccountAre you leaving?
+
New Customer? Create Account
+Company
Personal
Account Information
-Support:
+To obtain access to this site or for any questions about its
use submit an email message to info@izyim.com