1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-15 23:52:33 +01:00
invoiceninja/resources/views/portal/ninja2020/auth/register.blade.php

49 lines
2.9 KiB
PHP
Raw Normal View History

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-06-16 16:26:08 +02:00
<div class="col-span-12 lg:col-span-8 lg:col-start-3 xl:col-span-6 xl:col-start-4 px-6">
<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>
<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 }">
@csrf
@include('portal.ninja2020.auth.includes.register.personal_information')
2020-06-22 10:47:55 +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
<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>
<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_to_the') }}
2020-06-22 15:33:56 +02:00
@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])
@error('terms')
<p class="text-red-600">{{ $message }}</p>
@enderror
</span>
2020-06-18 17:09:28 +02:00
</span>
<button class="button button-primary bg-blue-600">{{ ctrans('texts.register') }}</button>
</div>
</form>
</div>
2020-05-28 17:39:38 +02:00
</div>
@endsection