From b19e8d6a33b674d1cf604bfe8b1bf0a243e2618f Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 7 Oct 2025 20:43:50 +0200 Subject: [PATCH] feat(dashboard): enhance project and server sections with modal input for resource creation - Updated the dashboard view to include modal input components for adding new projects and servers. - Added conditional rendering to display the modal button only when there are existing projects or servers. - Improved layout by wrapping section headers and buttons in a flex container for better alignment and spacing. --- resources/views/livewire/dashboard.blade.php | 36 ++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/resources/views/livewire/dashboard.blade.php b/resources/views/livewire/dashboard.blade.php index bc3071c19..2c7ed4076 100644 --- a/resources/views/livewire/dashboard.blade.php +++ b/resources/views/livewire/dashboard.blade.php @@ -15,7 +15,23 @@ @endif
-

Projects

+
+

Projects

+ @if ($projects->count() > 0) + + + + + + + @endif +
@if ($projects->count() > 0)
@foreach ($projects as $project) @@ -65,7 +81,23 @@
-

Servers

+
+

Servers

+ @if ($servers->count() > 0 && $privateKeys->count() > 0) + + + + + + + @endif +
@if ($servers->count() > 0)
@foreach ($servers as $server)