diff --git a/Modules/Company/Http/Controllers/CompanyController.php b/Modules/Company/Http/Controllers/CompanyController.php index 9a27f2e0..5bd16514 100644 --- a/Modules/Company/Http/Controllers/CompanyController.php +++ b/Modules/Company/Http/Controllers/CompanyController.php @@ -46,7 +46,7 @@ class CompanyController extends Controller $company = Company::create($this->validated($request)); return redirect() - ->route('platform.companies.show', $company) + ->route('platform.companies.index') ->with('status', 'Company created.'); } diff --git a/Modules/Company/Resources/views/index.blade.php b/Modules/Company/Resources/views/index.blade.php index e6754a13..8433fee2 100644 --- a/Modules/Company/Resources/views/index.blade.php +++ b/Modules/Company/Resources/views/index.blade.php @@ -7,15 +7,66 @@ icon="fa-solid fa-building" /> -
- - Create company - -
+ + @if (session('status')) +
+ {{ session('status') }} +
+ @endif + +
+
+
+

Create company

+

Add a new tenant without leaving the administration index.

+
+ + + Open full form + +
+ +
+ @csrf + + + + + + + + + + +
+