From 8101f22413afb0cc5cf1102e7f681361bd2cf96c Mon Sep 17 00:00:00 2001 From: javier Date: Wed, 17 Jun 2026 14:09:15 +0200 Subject: [PATCH] refactor: migrate users/companies pages to Rappasoft tables; remove unused welcome view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Point 2 (migrate to Rappasoft tables): - /admin/users now renders (+ a New user button) instead of the custom admin-users component - /companies now renders (+ New company button) instead of the hand-rolled card list Point 3 (delete): removed resources/views/welcome.blade.php (unused — '/' redirects to dashboard). Co-Authored-By: Claude Opus 4.8 (1M context) --- resources/views/admin/users.blade.php | 7 +- .../livewire/company-management.blade.php | 331 +----------------- resources/views/welcome.blade.php | 145 -------- 3 files changed, 18 insertions(+), 465 deletions(-) delete mode 100644 resources/views/welcome.blade.php diff --git a/resources/views/admin/users.blade.php b/resources/views/admin/users.blade.php index f7cce07..1e43c8d 100644 --- a/resources/views/admin/users.blade.php +++ b/resources/views/admin/users.blade.php @@ -15,7 +15,12 @@
- @livewire('admin-users') + +
diff --git a/resources/views/livewire/company-management.blade.php b/resources/views/livewire/company-management.blade.php index db82e19..1d7edec 100644 --- a/resources/views/livewire/company-management.blade.php +++ b/resources/views/livewire/company-management.blade.php @@ -1,328 +1,21 @@
-
-

- - - - {{ __('Company Management') }} -

-

{{ __('Manage the companies that participate in projects') }}

-
- @if(session('message')) -
+
+ {{ session('message') }}
@endif -
- - -
-
- -
-
- -
-
- - -
-
-
-

- {{ $editingCompanyId ? __('Edit Company') : __('New Company') }} -

-

- {{ __('Complete the company information. Fields marked with * are required.') }} -

-
- - @if($errors->any()) -
- {{ __('Validation errors') }}: -
    - @foreach($errors->all() as $error) -
  • {{ $error }}
  • - @endforeach -
-
- @endif - -
- -
-
- - -
- -
- - -
-
-
- -
-
- - -
-
- - -
-
-
- -
-
- - -
- -
- - -
-
- -
-
- - -
- -
- - -
-
- -
-
- - -
- -
- -
- - - @if($logo) -
- {{ __('Logo preview') }} - -
- @endif -
-
-
- -
- - -
- -
- - -
- -
-
- - -
-
-

- - - - {{ __('Company list') }} ({{ $companies->count() }}) -

-
- - @if($companies->isEmpty()) -
- - - -

{{ __('No companies registered. Create your first company using the button above.') }}

-
- @else -
- @foreach($companies as $company) -
-
-
- @if($company->logo_path && Storage::disk('public')->exists($company->logo_path)) - {{ __('Logo of') }} {{ $company->name }} - @else -
- - - -
- @endif -
-

{{ $company->name }}

-

- @if($company->tax_id) - {{ $company->tax_id }} - @else - {{ __('No tax ID') }} - @endif -

- @if($company->type) - - {{ ucfirst($company->type) }} - - @endif -
-
-
- -
-
- @if($company->address) -
- - - - {{ $company->address }} -
- @endif - @if($company->phone) -
- - - - {{ $company->phone }} -
- @endif - @if($company->email) -
- - - - {{ $company->email }} -
- @endif -
- -
- - -
-
-
- @if(!$loop->last) -
- @endif - @endforeach -
- @endif +
+
+

{{ __('Company Management') }}

+

{{ __('Manage the companies that participate in projects') }}

+ + + {{ __('New Company') }} +
+ +
diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php deleted file mode 100644 index 0464add..0000000 --- a/resources/views/welcome.blade.php +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - Laravel - - - - - - - @vite(['resources/css/app.css', 'resources/js/app.js']) - - - - -