@extends('installer::layouts.master')

@section('template_title')
  {{ trans('installer::installer_messages.final.template_title') }}
@endsection

@section('title')
  <i class="fa fa-flag-checkered fa-fw" aria-hidden="true"></i>
  {{ __('installer::installer_messages.final.tittemplate_titlele') }}
@endsection

@section('content')
  <div class="install-2">
		<h3 class="mb-5">{{ __('installer::installer_messages.final.template_title') }}</h3>

		<div class="d-flex justify-content-center flex-column align-items-center">

			<div class="welcome-img mb-5" style="max-width: 230px;"><img src="https://beikeshop.com/install/install-2.png?version={{ config('beike.version') }}&build_date={{ config('beike.build') }}" class="img-fluid"></div>

			<h5 class="text-center mb-4">{{ __('installer::installer_messages.final.finished') }}</h5>

			@if (isset($is_nginx) && $is_nginx)
				<div class="alert alert-warning text-center mb-4" role="alert">
					{!! __('installer::installer_messages.final.nginx_alert') !!}
				</div>
			@endif

			<div class="mb-5 d-flex align-items-center">
				<div>{{ trans('installer::installer_messages.environment.admin_email') }}: {{ $admin_email }}</div>
				<div class="ms-4">{{ trans('installer::installer_messages.environment.admin_password') }}: {{ $admin_password }}</div>
			</div>

			<div class="d-flex justify-content-center">
				<a href="{{ url('/') }}" class="btn btn-lg btn-outline-primary"><i class="bi bi-window-dock me-2"></i> {{ trans('installer::installer_messages.final.to_front') }}</a>
				<a href="{{ url('/admin/login') }}?admin_email={{ $admin_email }}&admin_password={{ $admin_password }}" class="btn btn-lg btn-primary ms-4"><i class="bi bi-window-sidebar me-2"></i> {{ trans('installer::installer_messages.final.to_admin') }}</a>
			</div>
    </div>
  </div>
@endsection
