2020-03-23 18:10:42 +01:00
|
|
|
@extends('portal.ninja2020.layout.clean')
|
|
|
|
@section('meta_title', ctrans('texts.login'))
|
|
|
|
|
2020-05-26 23:45:29 +02:00
|
|
|
@component('portal.ninja2020.components.test')
|
|
|
|
<input type="hidden" id="test_email" value="{{ config('ninja.testvars.username') }}">
|
|
|
|
<input type="hidden" id="test_password" value="{{ config('ninja.testvars.password') }}">
|
|
|
|
@endcomponent
|
|
|
|
|
2020-03-23 18:10:42 +01:00
|
|
|
@section('body')
|
|
|
|
<div class="grid lg:grid-cols-3">
|
2021-05-27 01:14:21 +02:00
|
|
|
@if($account && !$account->isPaid())
|
2021-06-01 14:06:47 +02:00
|
|
|
<div class="hidden lg:block col-span-1 bg-red-100 h-screen">
|
|
|
|
<img src="{{ asset('images/client-portal-new-image.jpg') }}"
|
|
|
|
class="w-full h-screen object-cover"
|
|
|
|
alt="Background image">
|
|
|
|
</div>
|
2021-03-03 08:22:14 +01:00
|
|
|
@endif
|
2021-07-01 18:29:32 +02:00
|
|
|
|
2021-07-15 13:44:50 +02:00
|
|
|
<div class="{{ $account && !$account->isPaid() ? 'col-span-2' : 'col-span-3' }} h-screen flex">
|
2020-03-23 18:10:42 +01:00
|
|
|
<div class="m-auto md:w-1/2 lg:w-1/4">
|
2021-06-01 14:06:47 +02:00
|
|
|
@if($account && !$account->isPaid())
|
|
|
|
<div>
|
|
|
|
<img src="{{ asset('images/invoiceninja-black-logo-2.png') }}"
|
|
|
|
class="border-b border-gray-100 h-18 pb-4" alt="Invoice Ninja logo">
|
|
|
|
</div>
|
2021-07-01 18:29:32 +02:00
|
|
|
@elseif(isset($company) && !is_null($company))
|
|
|
|
<div>
|
|
|
|
<img src="{{ $company->present()->logo() }}"
|
|
|
|
class="border-b border-gray-100 h-18 pb-4" alt="{{ $company->present()->name() }} logo">
|
|
|
|
</div>
|
2021-06-01 14:06:47 +02:00
|
|
|
@endif
|
2021-05-13 14:41:32 +02:00
|
|
|
|
2020-03-23 18:10:42 +01:00
|
|
|
<div class="flex flex-col">
|
2020-04-04 12:32:42 +02:00
|
|
|
<h1 class="text-center text-3xl">{{ ctrans('texts.client_portal') }}</h1>
|
2020-03-23 18:10:42 +01:00
|
|
|
<form action="{{ route('client.login') }}" method="post" class="mt-6">
|
|
|
|
@csrf
|
|
|
|
<div class="flex flex-col">
|
|
|
|
<label for="email" class="input-label">{{ ctrans('texts.email_address') }}</label>
|
|
|
|
<input type="email" name="email" id="email"
|
|
|
|
class="input"
|
|
|
|
value="{{ old('email') }}"
|
|
|
|
autofocus>
|
|
|
|
@error('email')
|
|
|
|
<div class="validation validation-fail">
|
|
|
|
{{ $message }}
|
|
|
|
</div>
|
|
|
|
@enderror
|
|
|
|
</div>
|
|
|
|
<div class="flex flex-col mt-4">
|
|
|
|
<div class="flex justify-between items-center">
|
|
|
|
<label for="password" class="input-label">{{ ctrans('texts.password') }}</label>
|
|
|
|
<a class="text-xs text-gray-600 hover:text-gray-800 ease-in duration-100"
|
|
|
|
href="{{ route('client.password.request') }}">{{ trans('texts.forgot_password') }}</a>
|
|
|
|
</div>
|
2021-09-04 03:09:34 +02:00
|
|
|
@if(isset($company) && !is_null($company))
|
2021-09-01 09:36:36 +02:00
|
|
|
<input type="hidden" name="db" value="{{$company->db}}">
|
|
|
|
@endif
|
2020-03-23 18:10:42 +01:00
|
|
|
<input type="password" name="password" id="password"
|
|
|
|
class="input"
|
|
|
|
autofocus>
|
|
|
|
@error('password')
|
|
|
|
<div class="validation validation-fail">
|
|
|
|
{{ $message }}
|
|
|
|
</div>
|
|
|
|
@enderror
|
|
|
|
</div>
|
|
|
|
<div class="mt-5">
|
2020-09-30 13:31:15 +02:00
|
|
|
<button id="loginBtn" class="button button-primary button-block bg-blue-600">
|
2020-03-23 18:10:42 +01:00
|
|
|
{{ trans('texts.login') }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2021-06-01 14:06:47 +02:00
|
|
|
|
|
|
|
@if(!is_null($company) && $company->client_can_register)
|
|
|
|
<div class="mt-5 text-center">
|
|
|
|
<a class="button-link text-sm" href="{{ route('client.register') }}">{{ ctrans('texts.register_label') }}</a>
|
|
|
|
</div>
|
|
|
|
@endif
|
2021-07-23 13:26:34 +02:00
|
|
|
|
2021-09-14 11:28:23 +02:00
|
|
|
@if(!empty($company->present()->website()))
|
2021-07-23 13:26:34 +02:00
|
|
|
<div class="mt-5 text-center">
|
2021-09-14 11:28:23 +02:00
|
|
|
<a class="button-link text-sm" href="{{ $company->present()->website() }}">
|
|
|
|
{{ ctrans('texts.back_to', ['url' => parse_url($company->present()->website())['host'] ?? $company->present()->website() ]) }}
|
2021-07-23 13:26:34 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
@endif
|
2020-03-23 18:10:42 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|