@extends('Shared.Layouts.MasterWithoutMenus') @section('title') @lang("Installer.title") @stop @section('head') @stop @section('content')

@lang("Installer.setup")

@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

@lang("Installer.php_version_check")

@if (version_compare(phpversion(), '7.1.3', '<'))
{!! @trans("Installer.php_too_low", ["requires"=>"7.1.3", "has"=>phpversion()]) !!}
@else
{!! @trans("Installer.php_enough", ["requires"=>"7.1.3", "has"=>phpversion()]) !!}
@endif

@lang("Installer.files_n_folders_check")

@foreach($paths as $path) @if(!File::isWritable($path))
{!! @trans("Installer.path_not_writable", ["path"=>$path]) !!}
@else
{!! @trans("Installer.path_writable", ["path"=> $path]) !!}
@endif @endforeach

@lang("Installer.php_requirements_check")

@foreach($requirements as $requirement) @if(!extension_loaded($requirement))
{!! @trans("Installer.requirement_not_met", ["requirement"=>$requirement]) !!}
@else
{!! @trans("Installer.requirement_met", ["requirement"=>$requirement]) !!}
@endif @endforeach

@lang("Installer.php_optional_requirements_check")

@foreach($optional_requirements as $optional_requirement) @if(!extension_loaded($optional_requirement))
{!! @trans("Installer.optional_requirement_not_met", ["requirement"=>$optional_requirement]) !!}
@else
{!! @trans("Installer.requirement_met", ["requirement"=>$optional_requirement]) !!}
@endif @endforeach {!! Form::open(array('url' => route('postInstaller'), 'class' => 'installer_form')) !!}

@lang("Installer.app_settings")

{!! Form::label('app_url', trans("Installer.application_url"), array('class'=>'required control-label ')) !!} {!! Form::text('app_url', Input::old('app_url'), array( 'class'=>'form-control', 'placeholder' => 'http://www.myticketsite.com' )) !!}

@lang("Installer.database_settings")

@lang("Installer.database_message")

{!! Form::label('database_type', trans("Installer.database_type"), array('class'=>'required control-label ')) !!} {!! Form::select('database_type', array( 'mysql' => "MySQL", 'pgsql' => "Postgres", ), Input::old('database_type'), array( 'class'=>'form-control' )) !!}
{!! Form::label('database_host', trans("Installer.database_host"), array('class'=>'control-label required')) !!} {!! Form::text('database_host', $value = env("DB_HOST") , array( 'class'=>'form-control ', 'placeholder'=>'' )) !!}
{!! Form::label('database_name', trans("Installer.database_name"), array('class'=>'required control-label required')) !!} {!! Form::text('database_name', $value = env("DB_DATABASE") , array( 'class'=>'form-control' )) !!}
{!! Form::label('database_username', trans("Installer.database_username"), array('class'=>'control-label required')) !!} {!! Form::text('database_username', $value = env("DB_USERNAME"), array( 'class'=>'form-control ', 'placeholder'=>'', )) !!}
{!! Form::label('database_password', trans("Installer.database_password"), array('class'=>'control-label required')) !!} {!! Form::text('database_password', $value = env("DB_PASSWORD"), array( 'class'=>'form-control ', 'placeholder'=>'', )) !!}
@lang("Installer.test_database_connection")

@lang("Installer.email_settings")

{!! Form::label('mail_from_address', trans("Installer.mail_from_address"), array('class'=>' control-label required')) !!} {!! Form::text('mail_from_address', $value = env("MAIL_FROM_ADDRESS") , array( 'class'=>'form-control' )) !!}
{!! Form::label('mail_from_name', trans("Installer.mail_from_name"), array('class'=>' control-label required')) !!} {!! Form::text('mail_from_name', $value = env("MAIL_FROM_NAME") , array( 'class'=>'form-control' )) !!}
{!! Form::label('mail_driver', trans("Installer.mail_from_address"), array('class'=>' control-label required')) !!} {!! Form::text('mail_driver', $value = env("MAIL_DRIVER"), array( 'class'=>'form-control ', 'placeholder' => 'mail' )) !!}
{!! @trans("Installer.mail_from_help") !!}
{!! Form::label('mail_port', trans("Installer.mail_port"), array('class'=>' control-label ')) !!} {!! Form::text('mail_port', $value = env("MAIL_PORT"), array( 'class'=>'form-control' )) !!}
{!! Form::label('mail_encryption', trans("Installer.mail_encryption"), array('class'=>' control-label ')) !!} {!! Form::text('mail_encryption', Input::old('mail_encryption'), array( 'class'=>'form-control', 'placeholder' => "tls/ssl" )) !!}
{!! Form::label('mail_host', trans("Installer.mail_host"), array('class'=>' control-label ')) !!} {!! Form::text('mail_host', $value = env("MAIL_HOST"), array( 'class'=>'form-control' )) !!}
{!! Form::label('mail_username', trans("Installer.mail_username"), array('class'=>' control-label ')) !!} {!! Form::text('mail_username', Input::old('mail_username'), array( 'class'=>'form-control' )) !!}
{!! Form::label('mail_password', trans("Installer.mail_password"), array('class'=>' control-label ')) !!} {!! Form::text('mail_password', Input::old('mail_password'), array( 'class'=>'form-control' )) !!}
{!! csrf_field() !!} @include("Installer.Partials.Footer") {!! Form::submit(trans("Installer.install"), ['class'=>" btn-block btn btn-success"]) !!} {!! Form::close() !!}
@stop