From 3c9f3668729ec57319014ffa4a0c59f59094d393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Wed, 6 Mar 2024 17:37:57 +0100 Subject: [PATCH] Add client registration form to the billing portal --- .../v3/authentication/register.blade.php | 117 ++++++++++++++++++ 1 file changed, 117 insertions(+) diff --git a/resources/views/billing-portal/v3/authentication/register.blade.php b/resources/views/billing-portal/v3/authentication/register.blade.php index 714fe83f63f3..8d69911249a9 100644 --- a/resources/views/billing-portal/v3/authentication/register.blade.php +++ b/resources/views/billing-portal/v3/authentication/register.blade.php @@ -54,4 +54,121 @@ @endif + + @if($state['register_form']) +
+ @csrf + +
+ @if($subscription->company->client_registration_fields) + @foreach($subscription->company->client_registration_fields as $field) + @if($field['visible']) +
+
+ + + @if($field['required']) +
*
+ @endif +
+ + @if($field['key'] === 'email') + + @elseif($field['key'] === 'password') + + @elseif($field['key'] === 'currency_id') + + @elseif($field['key'] === 'country_id') + + @else + + @endif + + @error($field['key']) +
+ {{ $message }} +
+ @enderror +
+ + @if($field['key'] === 'password') +
+
+ + + @if($field['required']) +
*
+ @endif +
+ + +
+ @endif + @endif + @endforeach + @endif +
+ + +
+ @endif