<?php if (isset($component)) { $__componentOriginale787fe3c7876de31b3282840e9fc8f62 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale787fe3c7876de31b3282840e9fc8f62 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'common::install.components.install-layout','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('install-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
    <p class="mb-24">Below you should enter your database connection details. If you're not sure about these, contact your hosting provider.</p>

    <?php if($errors->has('database')): ?>
        <div class="bg-danger p-10 mb-20 rounded-md text-white ">
            <div class="font-semibold mb-6">There was an issue. This is the error message:</div>
            <div class="text-sm"><?php echo e($errors->get('database')[0]); ?></div>
        </div>
    <?php endif; ?>

    <form action="<?php echo e(url('install/database/validate')); ?>" method="post" class="w-full">
        <?php echo csrf_field(); ?>
        <div class="mb-20">
            <label for="host" class="block mb-4 text-sm">Database host</label>
            <input type="text" name="host" id="host" class="block py-8 px-12 border rounded shadow w-full" value="<?php echo e($host ?? 'localhost'); ?>" required>
        </div>
        <div class="mb-20">
            <label for="database" class="block mb-4 text-sm">Database name</label>
            <input type="text" name="database" id="database" class="block py-8 px-12 border rounded shadow w-full" value="<?php echo e($database ?? 'database'); ?>" required>
        </div>
        <div class="mb-20">
            <label for="username" class="block mb-4 text-sm">Database username</label>
            <input type="text" name="username" id="username" class="block py-8 px-12 border rounded shadow w-full" value="<?php echo e($username ?? 'root'); ?>" required>
        </div>
        <div class="mb-20">
            <label for="password" class="block mb-4 text-sm">Database password</label>
            <input type="password" name="password" id="password" class="block py-8 px-12 border rounded shadow w-full" value="<?php echo e($password ?? ''); ?>">
        </div>
        <div class="mb-20">
            <label for="port" class="block mb-4 text-sm">Database port</label>
            <input type="text" name="port" id="port" class="block py-8 px-12 border rounded shadow w-full" value="<?php echo e($port ?? '3306'); ?>" placeholder="Optional">
        </div>
        <div class="mb-20">
            <label for="prefix" class="block mb-4 text-sm">Database prefix</label>
            <input type="text" name="prefix" id="prefix" class="block py-8 px-12 border rounded shadow w-full" value="<?php echo e($prefix ?? ''); ?>" placeholder="Optional">
        </div>

        <?php if (isset($component)) { $__componentOriginale49165d24e23a99ce9bef721914cd27c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale49165d24e23a99ce9bef721914cd27c = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'common::install.components.install-button','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('install-button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>Continue <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale49165d24e23a99ce9bef721914cd27c)): ?>
<?php $attributes = $__attributesOriginale49165d24e23a99ce9bef721914cd27c; ?>
<?php unset($__attributesOriginale49165d24e23a99ce9bef721914cd27c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale49165d24e23a99ce9bef721914cd27c)): ?>
<?php $component = $__componentOriginale49165d24e23a99ce9bef721914cd27c; ?>
<?php unset($__componentOriginale49165d24e23a99ce9bef721914cd27c); ?>
<?php endif; ?>
    </form>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale787fe3c7876de31b3282840e9fc8f62)): ?>
<?php $attributes = $__attributesOriginale787fe3c7876de31b3282840e9fc8f62; ?>
<?php unset($__attributesOriginale787fe3c7876de31b3282840e9fc8f62); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale787fe3c7876de31b3282840e9fc8f62)): ?>
<?php $component = $__componentOriginale787fe3c7876de31b3282840e9fc8f62; ?>
<?php unset($__componentOriginale787fe3c7876de31b3282840e9fc8f62); ?>
<?php endif; ?>
<?php /**PATH /var/www/payraty/helpdesk/common/resources/views/install/database.blade.php ENDPATH**/ ?>