2020-06-06 17:26:25 -05:00
|
|
|
@extends('layouts.install')
|
|
|
|
|
|
|
|
@section('content')
|
2020-06-11 01:06:16 -05:00
|
|
|
<div class="card mb-2">
|
2020-06-21 14:41:43 -05:00
|
|
|
<div class="card-header h6" data-toggle="collapse" data-target="#env-file-text" aria-expanded="{{ $success ? 'false' : 'true' }}">
|
2020-06-21 13:51:47 -05:00
|
|
|
@if($success)
|
2022-04-09 15:05:09 -05:00
|
|
|
<i class="fa-solid fa-lg fa-square-check text-success"></i>
|
2020-06-21 13:51:47 -05:00
|
|
|
@else
|
2022-04-09 15:05:09 -05:00
|
|
|
<i class="fa-solid fa-lg fa-rectangle-xmark text-danger"></i>
|
2020-06-21 13:51:47 -05:00
|
|
|
@endif
|
|
|
|
{{ $env_message }}
|
2022-04-09 15:05:09 -05:00
|
|
|
@if($env)<i class="fa-solid fa-lg fa-chevron-down rotate-if-collapsed pull-right"></i>@endif($env)
|
2020-06-08 02:21:03 -05:00
|
|
|
</div>
|
2020-06-21 13:51:47 -05:00
|
|
|
@if($env)
|
|
|
|
<div id="env-file-text" class="card-body collapse @if(!$success) show @endif">
|
2021-11-28 21:17:11 -06:00
|
|
|
<button class="btn btn-primary float-right" onclick="location.reload()">{{ __('install.finish.retry') }}</button>
|
2020-06-21 13:51:47 -05:00
|
|
|
<strong>
|
2021-11-28 21:17:11 -06:00
|
|
|
{{ __('install.finish.env_manual', ['file' => base_path('.env')]) }}
|
2020-06-21 13:51:47 -05:00
|
|
|
</strong>
|
2020-06-21 14:41:43 -05:00
|
|
|
<div class="text-right mt-3">
|
|
|
|
<button
|
|
|
|
class="btn btn-sm btn-light text-muted copy-btn"
|
|
|
|
data-clipboard-target="#env-content"
|
|
|
|
data-toggle="tooltip"
|
|
|
|
data-placement="bottom"
|
|
|
|
data-trigger="manual"
|
2021-11-28 21:17:11 -06:00
|
|
|
data-title="{{ __('install.finish.copied') }}"
|
2020-06-21 14:41:43 -05:00
|
|
|
>
|
2022-04-09 15:05:09 -05:00
|
|
|
<i class="fa-solid fa-clipboard"></i>
|
2020-06-21 14:41:43 -05:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<pre id="env-content" class="card bg-light p-3">{{ $env }}</pre>
|
2020-06-21 13:51:47 -05:00
|
|
|
</div>
|
|
|
|
@endif
|
2020-06-08 02:21:03 -05:00
|
|
|
</div>
|
2020-06-11 01:06:16 -05:00
|
|
|
<div class="card mb-2">
|
2020-06-21 14:41:43 -05:00
|
|
|
<div class="card-header h6" data-toggle="collapse" data-target="#config-file-text" aria-expanded="false">
|
2022-04-09 15:05:09 -05:00
|
|
|
<i class="fa-solid fa-lg fa-square-check text-success"></i>
|
2020-06-09 23:24:43 -05:00
|
|
|
{{ $config_message }}
|
2022-04-09 15:05:09 -05:00
|
|
|
@if($config)<i class="fa-solid fa-lg fa-chevron-down rotate-if-collapsed pull-right"></i>@endif
|
2020-06-09 23:24:43 -05:00
|
|
|
</div>
|
2020-06-21 13:51:47 -05:00
|
|
|
@if($config)
|
2020-06-09 23:24:43 -05:00
|
|
|
<div id="config-file-text" class="card-body collapse">
|
2020-06-21 13:51:47 -05:00
|
|
|
<strong>
|
2021-11-28 21:17:11 -06:00
|
|
|
{{ __('install.finish.config_not_required') }}
|
2020-06-21 13:51:47 -05:00
|
|
|
</strong>
|
2020-06-21 14:41:43 -05:00
|
|
|
<div class="text-right mt-3">
|
|
|
|
<button
|
|
|
|
class="btn btn-sm btn-light text-muted copy-btn"
|
|
|
|
data-clipboard-target="#config-content"
|
|
|
|
data-toggle="tooltip"
|
|
|
|
data-placement="bottom"
|
|
|
|
data-trigger="manual"
|
2021-11-28 21:17:11 -06:00
|
|
|
data-title="{{ __('install.finish.copied') }}"
|
2020-06-21 14:41:43 -05:00
|
|
|
>
|
2022-04-09 15:05:09 -05:00
|
|
|
<i class="fa-solid fa-clipboard"></i>
|
2020-06-21 14:41:43 -05:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<pre id="config-content" class="card bg-light p-3">{{ $config }}</pre>
|
2020-06-09 23:24:43 -05:00
|
|
|
</div>
|
2020-06-21 13:51:47 -05:00
|
|
|
@endif
|
2020-06-09 23:24:43 -05:00
|
|
|
</div>
|
2020-06-21 13:51:47 -05:00
|
|
|
@if($success)
|
2020-06-11 01:06:16 -05:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
2020-06-11 01:58:42 -05:00
|
|
|
<div class="alert alert-warning">
|
2021-11-28 21:17:11 -06:00
|
|
|
<p>{{ __('install.finish.not_finished') }}</p>
|
2021-12-15 19:49:02 -06:00
|
|
|
<p>
|
|
|
|
{{ explode('|', __('install.finish.validate', ['validate' => '|']), 2)[0] }}
|
|
|
|
<a href="{{ url('validate') }}">{{ __('install.finish.validate_link') }}</a>
|
|
|
|
{{ explode('|', __('install.finish.validate', ['validate' => '|']), 2)[1] }}
|
|
|
|
</p>
|
2020-06-11 01:06:16 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="alert alert-success">
|
2021-11-28 21:17:11 -06:00
|
|
|
<p>{{ __('install.finish.thanks') }}</p>
|
2021-12-15 19:49:02 -06:00
|
|
|
{{ explode('|', __('install.finish.statistics', ['about' => '|']), 2)[0] }}
|
|
|
|
<a href="{{ url('about') }}">{{ __('install.finish.statistics_link') }}</a>
|
|
|
|
{{ explode('|', __('install.finish.statistics', ['about' => '|']), 2)[1] }}
|
2020-06-11 01:06:16 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-21 13:51:47 -05:00
|
|
|
@endif
|
2020-06-09 23:24:43 -05:00
|
|
|
@endsection
|
2020-06-21 14:41:43 -05:00
|
|
|
|
|
|
|
@section('scripts')
|
|
|
|
<script>
|
|
|
|
var clipboard = new ClipboardJS('.copy-btn');
|
|
|
|
clipboard.on('success', function(e) {
|
|
|
|
$(e.trigger).tooltip('show');
|
|
|
|
setTimeout(() => $(e.trigger).tooltip('hide'), 2000);
|
|
|
|
|
|
|
|
e.clearSelection();
|
|
|
|
});
|
|
|
|
|
|
|
|
clipboard.on('error', function(e) {
|
2021-11-28 21:17:11 -06:00
|
|
|
$(e.trigger).data('title', '{{ __('install.finish.manual_copy') }}').tooltip('show');
|
2020-06-21 14:41:43 -05:00
|
|
|
setTimeout(() => $(e.trigger).tooltip('hide'), 2000);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@endsection
|