2020-03-25 22:34:35 +01:00
|
|
|
@extends('portal.ninja2020.layout.clean')
|
|
|
|
@section('meta_title', ctrans('texts.setup'))
|
|
|
|
|
|
|
|
@section('body')
|
2020-06-24 17:44:18 +02:00
|
|
|
<div class="container mx-auto mb-10 mt-4">
|
2020-03-26 22:43:44 +01:00
|
|
|
<form action="{{ url('/setup') }}" method="post">
|
2020-03-26 00:40:09 +01:00
|
|
|
@csrf
|
|
|
|
|
|
|
|
<div class="grid grid-cols-12 px-6">
|
|
|
|
<div class="col-span-12 md:col-start-4 md:col-span-6 mt-4 md:mt-10">
|
|
|
|
<h1 class="text-center text-2xl font-semibold">Invoice Ninja Setup</h1>
|
2020-06-22 15:52:32 +02:00
|
|
|
<p class="text-sm text-center">{{ ctrans('texts.if_you_need_help') }}
|
|
|
|
<a href="https://www.invoiceninja.com/forums/forum/support/" class="button-link">{{ ctrans('texts.support_forum') }}</a>
|
2020-03-26 00:40:09 +01:00
|
|
|
</p>
|
|
|
|
|
2020-03-28 04:46:50 +01:00
|
|
|
@if($errors->any())
|
|
|
|
<div class="alert alert-failure">
|
|
|
|
<ul>
|
|
|
|
@foreach($errors->all() as $error)
|
|
|
|
<li>{{ $error }}</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2020-03-31 09:00:24 +02:00
|
|
|
@if(session()->has('setup_error'))
|
|
|
|
<div class="alert alert-failure mt-4">
|
2020-06-22 15:52:32 +02:00
|
|
|
<span class="font-bold">{{ ctrans('texts.error_title') }}:</span>
|
2020-03-31 09:00:24 +02:00
|
|
|
<pre class="bg-white p-3 mt-2 rounded overflow-y-scroll">{{ session('setup_error') }}</pre>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2020-03-30 14:30:32 +02:00
|
|
|
@if($check['system_health'] === false)
|
|
|
|
@include('setup._issues')
|
|
|
|
@else
|
|
|
|
|
2020-09-01 01:28:37 +02:00
|
|
|
@if(isset($check['npm_status']) && !$check['npm_status'])
|
2020-07-21 03:43:59 +02:00
|
|
|
<div class="alert alert-success mt-4">
|
|
|
|
<p>NPM Version => {{$check['npm_status']}}</p>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2020-09-01 01:28:37 +02:00
|
|
|
@if(isset($check['node_status']) && !$check['node_status'])
|
2020-07-21 03:43:59 +02:00
|
|
|
<div class="alert alert-success mt-4">
|
|
|
|
<p>Node Version => {{$check['node_status']}}</p>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2020-03-30 14:30:32 +02:00
|
|
|
@include('setup._application')
|
|
|
|
@include('setup._database')
|
|
|
|
@include('setup._mail')
|
|
|
|
@include('setup._account')
|
|
|
|
|
|
|
|
<div class="flex justify-center mt-4">
|
|
|
|
<div class="flex flex-col">
|
2020-05-01 14:18:22 +02:00
|
|
|
<div class="mt-4 text-sm">
|
|
|
|
<input type="checkbox" class="form-checkbox mr-2" name="terms_of_service" required>
|
2020-06-22 15:52:32 +02:00
|
|
|
<span>{{ ctrans('texts.i_agree') }}
|
2020-03-30 14:30:32 +02:00
|
|
|
<a class="button-link" href="https://www.invoiceninja.com/self-hosting-terms-service/">{{ ctrans('texts.terms_of_service') }}</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
2020-05-01 14:18:22 +02:00
|
|
|
<div class="mt-2 text-sm">
|
|
|
|
<input type="checkbox" class="form-checkbox mr-2" name="privacy_policy" required>
|
2020-06-22 15:52:32 +02:00
|
|
|
<span>{{ ctrans('texts.i_agree') }}
|
2020-03-30 14:30:32 +02:00
|
|
|
<a class="button-link" href="https://www.invoiceninja.com/self-hosting-privacy-data-control/">{{ ctrans('texts.privacy_policy') }}</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button type="submit" class="button button-primary w-1/2 my-4">{{ ctrans('texts.submit') }}</button>
|
2020-03-25 22:34:35 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-03-30 14:30:32 +02:00
|
|
|
@endif
|
2020-03-25 22:34:35 +01:00
|
|
|
</div>
|
2020-03-26 00:40:09 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2020-03-26 22:43:44 +01:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@push('footer')
|
|
|
|
<script src="{{ asset('js/setup/setup.js') }}"></script>
|
|
|
|
@endpush
|