From c753373a1f4b0b4c06d912aee00e21a85fd55f80 Mon Sep 17 00:00:00 2001 From: weeb Date: Fri, 2 May 2025 12:12:20 +0200 Subject: [PATCH] Improve design --- .../views/livewire/application-form.blade.php | 37 ++++----- .../livewire/application-status.blade.php | 77 ++++++++----------- 2 files changed, 50 insertions(+), 64 deletions(-) diff --git a/resources/views/livewire/application-form.blade.php b/resources/views/livewire/application-form.blade.php index 1e76bac..41c1cce 100644 --- a/resources/views/livewire/application-form.blade.php +++ b/resources/views/livewire/application-form.blade.php @@ -1,36 +1,31 @@ -
+
@if (session()->has('message')) @if ($applicationUuid) -
- Your application has been submitted - - You can check its status here: + Your application has been submitted. + + You can check its status here: View Application Status - - - - Please save or bookmark that link, as the approval process can take roughly 24-48 hours. - -
+ +
Please save or bookmark that link, as the approval process can take 24-48 hours. + + @endif @endif @if (!$applicationUuid)
-
-
- Here you can submit your application - - To apply, simply fill out the form below and upload at least one loli photo. +
+ + -
+ +
diff --git a/resources/views/livewire/application-status.blade.php b/resources/views/livewire/application-status.blade.php index 24bc873..7eb7e40 100644 --- a/resources/views/livewire/application-status.blade.php +++ b/resources/views/livewire/application-status.blade.php @@ -1,47 +1,16 @@ -
-
- @if ($application->status === 0) -
- @elseif ($application->status === 1) -
- @elseif ($application->status === 2) -
- @endif - - Application - @php - $status = [ - 0 => 'Pending Review', - 1 => 'Approved', - 2 => 'Denied', - ]; - @endphp - -

- Status: - {{ $status[$application->status] }} -

- @if ($application->registration_token) -

- Registration Token (valid until - {{ $application->updated_at->addWeek()->format('Y-m-d') }}) -

- - To sign up, you should use Element Web or - Element Desktop, as the authentication token is not compatible - with the mobile clients. - @endif -
-
+
@if ($application->status === 0) -
- Message - - {{ $application->message }} - -
+ + Application pending + + Your application is waiting for review. This process can take 24-48 hours. +
+ This site automatically refreshes, no need to reload manually. +
+
+ +

Uploaded Photos:

@@ -52,6 +21,28 @@
@endforeach
+ @elseif($application->status === 1) + + Application approved + + @if ($application->registration_token) +

+ Registration Token (valid until + {{ $application->updated_at->addWeek()->format('Y-m-d') }}) +

+ + To sign up, you should use Element Web + + or + Element Desktop, as the registration token is not compatible + with the mobile clients. + @endif +
+
+ @elseif($application->status === 2) + @endif -
+