classify admin
This commit is contained in:
6
resources/views/vendor/installer/components/button.blade.php
vendored
Normal file
6
resources/views/vendor/installer/components/button.blade.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<button
|
||||
type="{{ $attributes->get('type', 'button') }}"
|
||||
class="bg-{{ $attributes->get('color', 'blue') }}-500 hover:bg-{{ $attributes->get('color', 'blue') }}-700 text-white font-bold py-2 px-4 rounded inline-flex items-center"
|
||||
>
|
||||
{{ $slot }}
|
||||
</button>
|
||||
7
resources/views/vendor/installer/components/error-check-icon.blade.php
vendored
Normal file
7
resources/views/vendor/installer/components/error-check-icon.blade.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<svg class="w-6 h-6 text-red-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z"
|
||||
clip-rule="evenodd"
|
||||
/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 425 B |
9
resources/views/vendor/installer/components/input.blade.php
vendored
Normal file
9
resources/views/vendor/installer/components/input.blade.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<input
|
||||
class="appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
|
||||
id="{{ $attributes->get('id') }}"
|
||||
type="{{ $attributes->get('type', 'text') }}"
|
||||
name="{{ $attributes->get('name') }}"
|
||||
value="{{ $attributes->get('value') }}"
|
||||
{{ $attributes->merge(['required' => $attributes->get('required', false) ? 'required' : null ]) }}
|
||||
aria-label=""
|
||||
>
|
||||
9
resources/views/vendor/installer/components/label.blade.php
vendored
Normal file
9
resources/views/vendor/installer/components/label.blade.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<label
|
||||
for="{{ $attributes->get('for') }}"
|
||||
class="block font-medium leading-5 text-gray-700 pb-2"
|
||||
>
|
||||
{{ $slot }}
|
||||
@if($attributes->get('required', false))
|
||||
<span class="text-red-400">*</span>
|
||||
@endif
|
||||
</label>
|
||||
6
resources/views/vendor/installer/components/link.blade.php
vendored
Normal file
6
resources/views/vendor/installer/components/link.blade.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<a
|
||||
href="{{ $attributes->get('href') }}"
|
||||
class="bg-{{ $attributes->get('color', 'blue') }}-500 hover:bg-{{ $attributes->get('color', 'blue') }}-700 text-white font-bold py-2 px-4 rounded inline-flex items-center"
|
||||
>
|
||||
{{ $slot }}
|
||||
</a>
|
||||
3
resources/views/vendor/installer/components/success-check-icon.blade.php
vendored
Normal file
3
resources/views/vendor/installer/components/success-check-icon.blade.php
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg class="w-6 h-6 text-green-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 313 B |
26
resources/views/vendor/installer/install.blade.php
vendored
Normal file
26
resources/views/vendor/installer/install.blade.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<title>Installation - {{ config('app.name', 'Laravel') }}</title>
|
||||
<link rel="shortcut icon" href="{{ config('installer.icon') }}">
|
||||
<link href="{{ asset('vendor/installer/styles.css') }}" rel="stylesheet">
|
||||
</head>
|
||||
<body class="min-h-screen h-full w-full bg-cover bg-no-repeat bg-center flex" style="background-image: url('{{ config('installer.background') }}');">
|
||||
<div class="py-12 sm:px-12 w-full max-w-5xl m-auto">
|
||||
<div class="w-full bg-white shadow sm:rounded-lg">
|
||||
<div class="px-4 py-8 border-b border-gray-200 sm:px-6">
|
||||
<div class="flex justify-center items-center">
|
||||
<img alt="App logo" class="h-12" src="{{ config('installer.icon') }}">
|
||||
<h2 class="pl-6 uppercase font-medium text-2xl text-gray-800">{{ config('app.name', 'Laravel') }} Installation</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="px-4 py-5 sm:px-6 w-full">
|
||||
@yield('step')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
96
resources/views/vendor/installer/steps/database.blade.php
vendored
Normal file
96
resources/views/vendor/installer/steps/database.blade.php
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
@extends('installer::install')
|
||||
|
||||
@section('step')
|
||||
<p class="pb-3 text-gray-800">
|
||||
Below you should enter your database connection details. If you're not sure about these, contact your hosting provider.
|
||||
</p>
|
||||
@if($errors->any())
|
||||
@foreach($errors->all() as $error)
|
||||
<div class="bg-red-100 border-l-4 border-red-500 p-4 mb-3">
|
||||
<div class="flex">
|
||||
<div class="flex-shrink-0">
|
||||
<svg class="h-5 w-5 text-red-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="ml-3">
|
||||
<p class="text-sm leading-5 text-red-700">
|
||||
{!! $error !!}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
<form method="post" action="{{ route('install.database') }}">
|
||||
@csrf
|
||||
<div class="mb-3">
|
||||
<x-installer::label for="database_hostname" :required="true">Database host</x-installer::label>
|
||||
<x-installer::input
|
||||
id="database_hostname"
|
||||
name="database_hostname"
|
||||
value="{{ old('database_hostname', config('database.connections.mysql.host')) }}"
|
||||
:required="true"
|
||||
/>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<x-installer::label for="database_port" :required="true">Database port</x-installer::label>
|
||||
<x-installer::input
|
||||
id="database_port"
|
||||
name="database_port"
|
||||
value="{{ old('database_port', config('database.connections.mysql.port')) }}"
|
||||
:required="true"
|
||||
/>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<x-installer::label for="database_name" :required="true">Database name</x-installer::label>
|
||||
<x-installer::input
|
||||
id="database_name"
|
||||
name="database_name"
|
||||
value="{{ old('database_name', config('database.connections.mysql.database', 'laravel')) }}"
|
||||
:required="true"
|
||||
/>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<x-installer::label for="database_username" :required="true">Database user</x-installer::label>
|
||||
<x-installer::input
|
||||
id="database_username"
|
||||
name="database_username"
|
||||
value="{{ old('database_username', config('database.connections.mysql.username', 'root')) }}"
|
||||
:required="true"
|
||||
/>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<x-installer::label for="database_password">Database password</x-installer::label>
|
||||
<x-installer::input
|
||||
id="database_password"
|
||||
name="database_password"
|
||||
type="password"
|
||||
value="{{ old('database_password') }}"
|
||||
/>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<x-installer::label for="database_prefix">Database prefix</x-installer::label>
|
||||
<x-installer::input
|
||||
id="database_prefix"
|
||||
name="database_prefix"
|
||||
value="{{ old('database_prefix') }}"
|
||||
/>
|
||||
</div>
|
||||
<div class="flex justify-end">
|
||||
<x-installer::button type="submit">
|
||||
Next step
|
||||
<svg class="fill-current w-5 h-5 ml-3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
</x-installer::button>
|
||||
</div>
|
||||
</form>
|
||||
<div>
|
||||
<h6 style="color:red">If you are getting error in this Step, Check this below Solutions first</h6>
|
||||
<small>
|
||||
<span>1. Check if your Database Host , Port , Name , User & Password is correct.</span><br>
|
||||
<span>2. Install nd_pdo_mysql extension in your server and then Try again.</span>
|
||||
</small>
|
||||
</div>
|
||||
@endsection
|
||||
57
resources/views/vendor/installer/steps/finish.blade.php
vendored
Normal file
57
resources/views/vendor/installer/steps/finish.blade.php
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
@extends('installer::install')
|
||||
|
||||
@section('step')
|
||||
<div class="bg-green-100 border-l-4 border-green-500 p-4 mb-6">
|
||||
<div class="flex">
|
||||
<div class="flex-shrink-0">
|
||||
<svg class="h-5 w-5 text-green-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="ml-3">
|
||||
<p class="text-sm leading-5 text-green-700">
|
||||
The application has been installed successfully
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid grid-cols-2 gap-4 mb-6">
|
||||
<div>
|
||||
<p class="pb-3 text-gray-800">
|
||||
<b>Website address</b>
|
||||
<br>
|
||||
Your website is located at this URL
|
||||
</p>
|
||||
<p class="pb-3">
|
||||
<a class="text-blue-500 hover:underline" href="{{ $base }}">{{ $base }}</a>
|
||||
</p>
|
||||
</div>
|
||||
@if(config('installer.admin_area'))
|
||||
<div>
|
||||
<p class="pb-3 text-gray-800">
|
||||
<b>Administration Area</b>
|
||||
<br>
|
||||
Use the following link to log into the administration area:
|
||||
</p>
|
||||
<p class="pb-3">
|
||||
<a class="text-blue-500 hover:underline" href="{{ $login }}">{{ $login }}</a>
|
||||
</p>
|
||||
@if(config('installer.admin_area.user'))
|
||||
<p class="pb-3 text-gray-800">
|
||||
Email: <b>{{ config('installer.admin_area.user.email') }}</b>
|
||||
<br>
|
||||
Password: <b>{{ config('installer.admin_area.user.password') }}</b>
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@if(config('installer.support_url'))
|
||||
<p class="pb-3 text-gray-800">
|
||||
<b>Support and questions</b>
|
||||
<br>
|
||||
Need more help?
|
||||
<a class="text-blue-500 hover:underline" href="{{ config('installer.support_url') }}" target="_blank">Contact support</a>.
|
||||
</p>
|
||||
@endif
|
||||
@endsection
|
||||
41
resources/views/vendor/installer/steps/folders.blade.php
vendored
Normal file
41
resources/views/vendor/installer/steps/folders.blade.php
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
@extends('installer::install')
|
||||
|
||||
@section('step')
|
||||
<p class="pb-3 text-gray-800">Verifying write and read permissions on folders</p>
|
||||
|
||||
<div class="flex flex-wrap border border-gray-200 rounded-md mb-4 divide-y divider-gray-200">
|
||||
@foreach(config('installer.folders') as $check)
|
||||
<div class="w-full px-4 py-2 text-gray-800">
|
||||
{{ base_path() }}{{ str_replace('/', DIRECTORY_SEPARATOR, $check['name']) }}
|
||||
<div class="float-right">
|
||||
@if(@File::chmod($check['check']['value']) < 755)
|
||||
<x-installer::error-check-icon/>
|
||||
@else
|
||||
<x-installer::success-check-icon/>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="flex justify-end">
|
||||
@if($result)
|
||||
<x-installer::link :href="route('install.purchase-code.index')">
|
||||
Next step
|
||||
<svg class="fill-current w-5 h-5 ml-3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
</x-installer::link>
|
||||
@else
|
||||
<x-installer::link :href="route('install.server')" color="red">
|
||||
Reload
|
||||
<svg class="fill-current w-5 h-5 ml-3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
d="M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z"
|
||||
clip-rule="evenodd"
|
||||
/>
|
||||
</svg>
|
||||
</x-installer::link>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
70
resources/views/vendor/installer/steps/keys.blade.php
vendored
Normal file
70
resources/views/vendor/installer/steps/keys.blade.php
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
@extends('installer::install')
|
||||
|
||||
@section('step')
|
||||
@if($errors->any())
|
||||
@foreach($errors->all() as $error)
|
||||
<div class="bg-red-100 border-l-4 border-red-500 p-4 mb-3">
|
||||
<div class="flex">
|
||||
<div class="flex-shrink-0">
|
||||
<svg class="h-5 w-5 text-red-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="ml-3">
|
||||
<p class="text-sm leading-5 text-red-700">
|
||||
{!! $error !!}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="bg-green-100 border-l-4 border-green-500 p-4 mb-3">
|
||||
<div class="flex">
|
||||
<div class="flex-shrink-0">
|
||||
<svg class="h-5 w-5 text-green-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="ml-3">
|
||||
<p class="text-sm leading-5 text-green-700">
|
||||
Migrations loaded successfully
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<p class="pb-3 text-gray-800">The encryption keys of the application and the api connection must be generated.</p>
|
||||
<p class="pb-3 text-gray-800">The storage link will also be generated.</p>
|
||||
<p class="pb-3 text-gray-800">Enter the base url of the application.</p>
|
||||
<form method="post" action="{{ route('install.keys') }}">
|
||||
@csrf
|
||||
<div class="mb-3">
|
||||
<x-installer::label for="app_url" :required="true">App url</x-installer::label>
|
||||
<x-installer::input
|
||||
id="app_url"
|
||||
name="app_url"
|
||||
type="url"
|
||||
value="{{ old('app_url', url('/')) }}"
|
||||
:required="true"
|
||||
/>
|
||||
</div>
|
||||
<div class="flex justify-end">
|
||||
@if($errors->any())
|
||||
<x-installer::button type="submit" color="red">
|
||||
Try again
|
||||
<svg class="fill-current w-5 h-5 ml-3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</x-installer::button>
|
||||
@else
|
||||
<x-installer::button type="submit">
|
||||
Next step
|
||||
<svg class="fill-current w-5 h-5 ml-3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</x-installer::button>
|
||||
@endif
|
||||
</div>
|
||||
</form>
|
||||
@endsection
|
||||
59
resources/views/vendor/installer/steps/migrations.blade.php
vendored
Normal file
59
resources/views/vendor/installer/steps/migrations.blade.php
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
@extends('installer::install')
|
||||
|
||||
@section('step')
|
||||
@if($errors->any())
|
||||
@foreach($errors->all() as $error)
|
||||
<div class="bg-red-100 border-l-4 border-red-500 p-4 mb-3">
|
||||
<div class="flex">
|
||||
<div class="flex-shrink-0">
|
||||
<svg class="h-5 w-5 text-red-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="ml-3">
|
||||
<p class="text-sm leading-5 text-red-700">
|
||||
{!! $error !!}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="bg-green-100 border-l-4 border-green-500 p-4 mb-3">
|
||||
<div class="flex">
|
||||
<div class="flex-shrink-0">
|
||||
<svg class="h-5 w-5 text-green-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="ml-3">
|
||||
<p class="text-sm leading-5 text-green-700">
|
||||
Database connection successful
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<p class="pb-3 text-gray-800">The installation of the database and the loading of all the basic data of the application will be carried out.</p>
|
||||
<p class="pb-3 text-gray-800">This may take a while, please wait and don't close the page.</p>
|
||||
<form method="post" action="{{ route('install.migrations') }}">
|
||||
@csrf
|
||||
<div class="flex justify-end">
|
||||
@if($errors->any())
|
||||
<x-installer::button type="submit" color="red">
|
||||
Try again
|
||||
<svg class="fill-current w-5 h-5 ml-3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</x-installer::button>
|
||||
@else
|
||||
<x-installer::button type="submit">
|
||||
Next step
|
||||
<svg class="fill-current w-5 h-5 ml-3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</x-installer::button>
|
||||
@endif
|
||||
</div>
|
||||
</form>
|
||||
@endsection
|
||||
39
resources/views/vendor/installer/steps/purchase-code.blade.php
vendored
Normal file
39
resources/views/vendor/installer/steps/purchase-code.blade.php
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
@extends('installer::install')
|
||||
|
||||
@section('step')
|
||||
<p class="pb-3 text-gray-800">
|
||||
Below you should enter your purchase code
|
||||
</p>
|
||||
@if(isset($error))
|
||||
<div class="bg-red-100 border-l-4 border-red-500 p-4 mb-3">
|
||||
<div class="flex">
|
||||
<div class="flex-shrink-0">
|
||||
<svg class="h-5 w-5 text-red-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="ml-3">
|
||||
<p class="text-sm leading-5 text-red-700">
|
||||
{!! $error !!}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<form method="post" action="{{ route('install.purchase-code.post') }}">
|
||||
@csrf
|
||||
<div class="mb-3">
|
||||
<label for="purchase_code" class="block font-medium leading-5 text-gray-700 pb-2">Purchase Code <span class="text-red-400">*</span></label>
|
||||
<input class="appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
|
||||
id="purchase_code" type="text" name="purchase_code" value="{{ $values['purchase_code'] ?? '' }}" required>
|
||||
</div>
|
||||
<div class="flex justify-end">
|
||||
<button type="submit" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded inline-flex items-center">
|
||||
Next step
|
||||
<svg class="fill-current w-5 h-5 ml-3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
@endsection
|
||||
43
resources/views/vendor/installer/steps/server.blade.php
vendored
Normal file
43
resources/views/vendor/installer/steps/server.blade.php
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
@extends('installer::install')
|
||||
|
||||
@section('step')
|
||||
<p class="pb-3 text-gray-800">Checking the server requirements</p>
|
||||
<div class="flex flex-wrap border border-gray-200 text-gray-800 rounded-md mb-4 divide-y divider-gray-200">
|
||||
@foreach(config('installer.server') as $check)
|
||||
<div class="w-full px-4 py-2 text-gray-800">
|
||||
{{ $check['name'] }}
|
||||
@if(in_array('version', $check, true))
|
||||
<small>($check['version'])</small>
|
||||
@endif
|
||||
<div class="float-right">
|
||||
@if(($check['check']['type'] === 'php' && PHP_VERSION_ID < $check['check']['value']) || ($check['check']['type'] === 'extension' && !extension_loaded($check['check']['value'])))
|
||||
<x-installer::error-check-icon />
|
||||
@else
|
||||
<x-installer::success-check-icon />
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="flex justify-end">
|
||||
@if($result)
|
||||
<x-installer::link :href="route('install.folders')">
|
||||
Next step
|
||||
<svg class="fill-current w-5 h-5 ml-3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</x-installer::link>
|
||||
@else
|
||||
<x-installer::link :href="route('install.server')" color="red">
|
||||
Reload
|
||||
<svg class="fill-current w-5 h-5 ml-3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
d="M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z"
|
||||
clip-rule="evenodd"
|
||||
/>
|
||||
</svg>
|
||||
</x-installer::link>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
49
resources/views/vendor/installer/steps/symlink_basedir_check.blade.php
vendored
Normal file
49
resources/views/vendor/installer/steps/symlink_basedir_check.blade.php
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
@extends('installer::install')
|
||||
|
||||
@section('step')
|
||||
<p class="pb-3 text-gray-800">Verifying php functions are enable/disable</p>
|
||||
|
||||
<div class="flex flex-wrap border border-gray-200 rounded-md mb-4 divide-y divider-gray-200">
|
||||
<div class="w-full px-4 py-2 text-gray-800">
|
||||
Enable php Symlink funcion
|
||||
<div class="float-right">
|
||||
@if($result)
|
||||
<x-installer::success-check-icon />
|
||||
@else
|
||||
<x-installer::error-check-icon />
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-full px-4 py-2 text-gray-800">
|
||||
Disable Open BaseDir funcion
|
||||
<div class="float-right">
|
||||
@if($baseDir)
|
||||
<x-installer::success-check-icon />
|
||||
@else
|
||||
<x-installer::error-check-icon />
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex justify-end">
|
||||
@if($result && $baseDir)
|
||||
<x-installer::link :href="route('install.database')">
|
||||
Next step
|
||||
<svg class="fill-current w-5 h-5 ml-3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</x-installer::link>
|
||||
@else
|
||||
<x-installer::link :href="route('install.server')" color="red">
|
||||
Reload
|
||||
<svg class="fill-current w-5 h-5 ml-3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
d="M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z"
|
||||
clip-rule="evenodd"
|
||||
/>
|
||||
</svg>
|
||||
</x-installer::link>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
42
resources/views/vendor/installer/steps/welcome.blade.php
vendored
Normal file
42
resources/views/vendor/installer/steps/welcome.blade.php
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
@extends('installer::install')
|
||||
|
||||
@section('step')
|
||||
<p class="pb-2 text-gray-800">
|
||||
Welcome to the installation wizard.
|
||||
</p>
|
||||
<p class="pb-3 text-gray-800">
|
||||
Before getting started, we need some information on the database.
|
||||
You will need to know the following items before proceeding.
|
||||
</p>
|
||||
<div class="px-3 pb-3 text-gray-800">
|
||||
<ol class="list-decimal list-inside">
|
||||
<li>App url</li>
|
||||
<li>Database host</li>
|
||||
<li>Database port</li>
|
||||
<li>Database name</li>
|
||||
<li>Database username</li>
|
||||
<li>Database password</li>
|
||||
</ol>
|
||||
</div>
|
||||
<p class="pb-3 text-gray-800">
|
||||
Most likely these items were supplied to you by your Web Host.
|
||||
If you don’t have this information, then you will need to contact them before you can continue.
|
||||
</p>
|
||||
<p class="pb-3 text-gray-800">
|
||||
Installer will insert this information inside a configuration file so your site can communicate with your database.
|
||||
</p>
|
||||
@if(config('installer.support_url'))
|
||||
<p class="pb-4 text-gray-800">
|
||||
Need more help?
|
||||
<a class="text-blue-500 hover:underline" href="{{ config('installer.support_url') }}" target="_blank">Contact support</a>.
|
||||
</p>
|
||||
@endif
|
||||
<div class="flex justify-end">
|
||||
<x-installer::link :href="route('install.server')">
|
||||
Next step
|
||||
<svg class="fill-current w-5 h-5 ml-3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</x-installer::link>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user