Logo, show more fields

This commit is contained in:
Benjamin Beganović 2020-06-22 10:47:55 +02:00
parent 01094a2b5e
commit fae29a8dfe
3 changed files with 163 additions and 153 deletions

View File

@ -21,7 +21,9 @@ class ContactRegisterController extends Controller
public function showRegisterForm(string $company_key)
{
return render('auth.register');
$company = Company::where('company_key', $company_key)->firstOrFail();
return render('auth.register', compact(['company']));
}
public function register(RegisterRequest $request)

View File

@ -1,10 +1,13 @@
@extends('portal.ninja2020.layout.clean')
@extends('portal.ninja2020.layout.clean', ['custom_body_class' => 'bg-gray-100'])
@section('meta_title', ctrans('texts.register'))
@section('body')
<div class="grid lg:grid-cols-12 bg-gray-100 py-8">
<div class="grid lg:grid-cols-12 py-8" x-data="{ more: false }">
<div class="col-span-4 col-start-5">
<h1 class="text-center text-3xl">{{ ctrans('texts.register') }}</h1>
<div class="flex justify-center">
<img class="h-32 w-auto" src="{{ $company->present()->logo() }}" alt="{{ ctrans('texts.logo') }}">
</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>
<form action="{{ route('client.register', request()->route('company_key')) }}" method="post">
@ -99,6 +102,9 @@
</div>
</div>
<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>
<div x-show="more">
<!-- Name, website -->
<h3 class="text-lg font-medium leading-6 text-gray-900 mt-8">{{ ctrans('texts.website') }}</h3>
<p class="mt-1 text-sm leading-5 text-gray-500">
@ -273,6 +279,7 @@
</div>
</div>
</div>
</div>
<div class="flex justify-between items-center mt-8">
<span class="inline-flex items-center">

View File

@ -44,6 +44,7 @@
<!-- Scripts -->
<script src="{{ mix('js/app.js') }}" defer></script>
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script>
<!-- Fonts -->
<link rel="dns-prefetch" href="https://fonts.gstatic.com">
@ -60,7 +61,7 @@
</head>
<body class="antialiased">
<body class="antialiased {{ $custom_body_class ?? '' }}">
@yield('body')
</body>