2020-06-22 10:47:55 +02:00
|
|
|
@extends('portal.ninja2020.layout.clean', ['custom_body_class' => 'bg-gray-100'])
|
2020-05-28 17:39:38 +02:00
|
|
|
@section('meta_title', ctrans('texts.register'))
|
|
|
|
|
|
|
|
@section('body')
|
2020-06-22 15:33:56 +02:00
|
|
|
<div class="grid lg:grid-cols-12 py-8">
|
2021-02-17 11:49:21 +01:00
|
|
|
<div class="lg:col-span-4 lg:col-start-5 px-6">
|
2020-06-22 14:08:46 +02:00
|
|
|
<div class="flex justify-center">
|
|
|
|
<img class="h-32 w-auto" src="{{ $company->present()->logo() }}" alt="{{ ctrans('texts.logo') }}">
|
2020-06-18 17:09:28 +02:00
|
|
|
</div>
|
2020-06-22 14:08:46 +02:00
|
|
|
<h1 class="text-center text-3xl mt-8">{{ ctrans('texts.register') }}</h1>
|
|
|
|
<p class="block text-center text-gray-600">{{ ctrans('texts.register_label') }}</p>
|
2020-06-18 17:09:28 +02:00
|
|
|
|
2020-06-22 15:33:56 +02:00
|
|
|
<form action="{{ route('client.register', request()->route('company_key')) }}" method="POST" x-data="{ more: false }">
|
2020-06-22 14:08:46 +02:00
|
|
|
@csrf
|
|
|
|
@include('portal.ninja2020.auth.includes.register.personal_information')
|
2020-06-22 10:47:55 +02:00
|
|
|
|
2020-06-22 14:08:46 +02:00
|
|
|
<span class="block mt-4 text-gray-800 hover:text-gray-900 text-right cursor-pointer" x-on:click="more = !more">{{ ctrans('texts.more_fields') }}</span>
|
2020-06-18 17:09:28 +02:00
|
|
|
|
2020-06-22 14:08:46 +02:00
|
|
|
<div x-show="more">
|
|
|
|
@include('portal.ninja2020.auth.includes.register.website')
|
|
|
|
@include('portal.ninja2020.auth.includes.register.personal_address')
|
|
|
|
@include('portal.ninja2020.auth.includes.register.shipping_address')
|
2020-06-18 17:09:28 +02:00
|
|
|
</div>
|
2021-02-17 11:49:21 +01:00
|
|
|
|
2020-06-22 14:08:46 +02:00
|
|
|
<div class="flex justify-between items-center mt-8">
|
2020-06-22 15:33:56 +02:00
|
|
|
<span class="inline-flex items-center" x-data="{ terms_of_service: false, privacy_policy: false }">
|
2020-06-28 00:24:08 +02:00
|
|
|
@if(!empty($company->settings->client_portal_terms) || !empty($company->settings->client_portal_privacy_policy))
|
2020-06-22 15:33:56 +02:00
|
|
|
<input type="checkbox" name="terms" class="form-checkbox mr-2 cursor-pointer" checked>
|
|
|
|
<span class="text-sm text-gray-800">
|
|
|
|
|
|
|
|
{{ ctrans('texts.i_agree') }}
|
|
|
|
@endif
|
|
|
|
|
2020-06-28 00:24:08 +02:00
|
|
|
@includeWhen(!empty($company->settings->client_portal_terms), 'portal.ninja2020.auth.includes.register.popup', ['property' => 'terms_of_service', 'title' => ctrans('texts.terms_of_service'), 'content' => $company->settings->client_portal_terms])
|
|
|
|
@includeWhen(!empty($company->settings->client_portal_privacy_policy), 'portal.ninja2020.auth.includes.register.popup', ['property' => 'privacy_policy', 'title' => ctrans('texts.privacy_policy'), 'content' => $company->settings->client_portal_privacy_policy])
|
2020-06-22 14:08:46 +02:00
|
|
|
</span>
|
2020-06-18 17:09:28 +02:00
|
|
|
</span>
|
2020-06-22 14:08:46 +02:00
|
|
|
|
2021-02-17 11:49:21 +01:00
|
|
|
<button class="button button-primary bg-blue-600">{{ ctrans('texts.register') }}</button>
|
2020-06-22 14:08:46 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2020-05-28 17:39:38 +02:00
|
|
|
</div>
|
2021-02-17 11:49:21 +01:00
|
|
|
@endsection
|