<?php $__env->startSection('template_title'); ?>
    <?php echo e(trans('packages/installer::installer.environment.wizard.templateTitle')); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('title'); ?>
    <i class="fa fa-magic fa-fw" aria-hidden="true"></i>
    <?php echo trans('packages/installer::installer.environment.wizard.title'); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('container'); ?>

    <form method="post" action="<?php echo e(route('installers.environment.save')); ?>">
        <?php echo csrf_field(); ?>

        <div class="form-group <?php echo e($errors->has('app_name') ? ' has-error ' : ''); ?>">
            <label for="app_name">
                <?php echo e(trans('packages/installer::installer.environment.wizard.form.app_name_label')); ?>

            </label>
            <input type="text" name="app_name" id="app_name" value="<?php echo e(old('app_name', config('app.name'))); ?>"
                   placeholder="<?php echo e(trans('packages/installer::installer.environment.wizard.form.app_name_placeholder')); ?>"/>
            <?php if($errors->has('app_name')): ?>
                <span class="error-block">
                    <i class="fa fa-fw fa-exclamation-triangle" aria-hidden="true"></i>
                    <?php echo e($errors->first('app_name')); ?>

                </span>
            <?php endif; ?>
        </div>

        <div class="form-group <?php echo e($errors->has('app_url') ? ' has-error ' : ''); ?>">
            <label for="app_url">
                <?php echo e(trans('packages/installer::installer.environment.wizard.form.app_url_label')); ?>

            </label>
            <input type="url" name="app_url" id="app_url" value="<?php echo e(old('app_url', url(''))); ?>"
                   placeholder="<?php echo e(trans('packages/installer::installer.environment.wizard.form.app_url_placeholder')); ?>"/>
            <?php if($errors->has('app_url')): ?>
                <span class="error-block">
                    <i class="fa fa-fw fa-exclamation-triangle" aria-hidden="true"></i>
                    <?php echo e($errors->first('app_url')); ?>

                </span>
            <?php endif; ?>
        </div>

        <div class="form-group <?php echo e($errors->has('database_connection') ? ' has-error ' : ''); ?>">
            <label for="database_connection">
                <?php echo e(trans('packages/installer::installer.environment.wizard.form.db_connection_label')); ?>

            </label>
            <select name="database_connection" id="database_connection" class="form-select">
                <option value="mysql"
                        <?php if(old('database_connection', config('database.default')) === 'mysql'): ?> selected <?php endif; ?>><?php echo e(trans('packages/installer::installer.environment.wizard.form.db_connection_label_mysql')); ?></option>
                <option value="sqlite"
                        <?php if(old('database_connection', config('database.default')) === 'sqlite'): ?> selected <?php endif; ?>><?php echo e(trans('packages/installer::installer.environment.wizard.form.db_connection_label_sqlite')); ?></option>
                <option value="pgsql"
                        <?php if(old('database_connection', config('database.default')) === 'pgsql'): ?> selected <?php endif; ?>><?php echo e(trans('packages/installer::installer.environment.wizard.form.db_connection_label_pgsql')); ?></option>
            </select>
            <?php if($errors->has('database_connection')): ?>
                <span class="error-block">
                    <i class="fa fa-fw fa-exclamation-triangle" aria-hidden="true"></i>
                    <?php echo e($errors->first('database_connection')); ?>

                </span>
            <?php endif; ?>
        </div>

        <div class="form-group <?php echo e($errors->has('database_hostname') ? ' has-error ' : ''); ?>">
            <label for="database_hostname">
                <?php echo e(trans('packages/installer::installer.environment.wizard.form.db_host_label')); ?>

            </label>
            <input type="text" name="database_hostname" id="database_hostname" value="<?php echo e(old('database_hostname', config('database.connections.mysql.host'))); ?>"
                   placeholder="<?php echo e(trans('packages/installer::installer.environment.wizard.form.db_host_placeholder')); ?>"/>
            <span class="helper-block">
                <?php echo e(trans('packages/installer::installer.environment.wizard.form.db_host_helper')); ?>

            </span>
            <?php if($errors->has('database_hostname')): ?>
                <span class="error-block">
                    <i class="fa fa-fw fa-exclamation-triangle" aria-hidden="true"></i>
                    <?php echo e($errors->first('database_hostname')); ?>

                </span>
            <?php endif; ?>
        </div>

        <div class="form-group <?php echo e($errors->has('database_port') ? ' has-error ' : ''); ?>">
            <label for="database_port">
                <?php echo e(trans('packages/installer::installer.environment.wizard.form.db_port_label')); ?>

            </label>
            <input type="number" name="database_port" id="database_port" value="<?php echo e(old('database_port', config('database.connections.mysql.port'))); ?>"
                   placeholder="<?php echo e(trans('packages/installer::installer.environment.wizard.form.db_port_placeholder')); ?>"/>
            <?php if($errors->has('database_port')): ?>
                <span class="error-block">
                    <i class="fa fa-fw fa-exclamation-triangle" aria-hidden="true"></i>
                    <?php echo e($errors->first('database_port')); ?>

                </span>
            <?php endif; ?>
        </div>

        <div class="form-group <?php echo e($errors->has('database_name') ? ' has-error ' : ''); ?>">
            <label for="database_name">
                <?php echo e(trans('packages/installer::installer.environment.wizard.form.db_name_label')); ?>

            </label>
            <input type="text" name="database_name" id="database_name" value="<?php echo e(old('database_name')); ?>"
                   placeholder="<?php echo e(trans('packages/installer::installer.environment.wizard.form.db_name_placeholder')); ?>"/>
            <?php if($errors->has('database_name')): ?>
                <span class="error-block">
                    <i class="fa fa-fw fa-exclamation-triangle" aria-hidden="true"></i>
                    <?php echo e($errors->first('database_name')); ?>

                </span>
            <?php endif; ?>
        </div>

        <div class="form-group <?php echo e($errors->has('database_username') ? ' has-error ' : ''); ?>">
            <label for="database_username">
                <?php echo e(trans('packages/installer::installer.environment.wizard.form.db_username_label')); ?>

            </label>
            <input type="text" name="database_username" id="database_username" value="<?php echo e(old('database_username')); ?>"
                   placeholder="<?php echo e(trans('packages/installer::installer.environment.wizard.form.db_username_placeholder')); ?>"/>
            <?php if($errors->has('database_username')): ?>
                <span class="error-block">
                    <i class="fa fa-fw fa-exclamation-triangle" aria-hidden="true"></i>
                    <?php echo e($errors->first('database_username')); ?>

                </span>
            <?php endif; ?>
        </div>

        <div class="form-group <?php echo e($errors->has('database_password') ? ' has-error ' : ''); ?>">
            <label for="database_password">
                <?php echo e(trans('packages/installer::installer.environment.wizard.form.db_password_label')); ?>

            </label>
            <input type="password" name="database_password" id="database_password" value="<?php echo e(old('database_password')); ?>"
                   placeholder="<?php echo e(trans('packages/installer::installer.environment.wizard.form.db_password_placeholder')); ?>"/>
            <?php if($errors->has('database_password')): ?>
                <span class="error-block">
                    <i class="fa fa-fw fa-exclamation-triangle" aria-hidden="true"></i>
                    <?php echo e($errors->first('database_password')); ?>

                </span>
            <?php endif; ?>
        </div>
        <div class="buttons">
            <button class="button" type="submit">
                <?php echo e(trans('packages/installer::installer.environment.wizard.form.buttons.install')); ?>

                <i class="fa fa-angle-right fa-fw" aria-hidden="true"></i>
            </button>
        </div>
    </form>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('packages/installer::master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/elitedes/ecommerce2.creativedesign.com.bd/platform/packages/installer/resources/views/environment.blade.php ENDPATH**/ ?>