@extends('installer.layout') @section('content')<h1 class="text-2xl font-bold">Application and database</h1><p class="mt-1 text-slate-500">The installer will test these credentials before saving them.</p><form method="POST" action="{{ route('install.database.save') }}" class="mt-7 grid gap-5 sm:grid-cols-2">@csrf @php($input='mt-1 w-full rounded-xl border-slate-300')<div class="sm:col-span-2"><label class="text-sm font-medium">Application URL</label><input class="{{ $input }}" type="url" name="app_url" value="{{ old('app_url',url('/')) }}" required></div><div><label class="text-sm font-medium">Database host</label><input class="{{ $input }}" name="db_host" value="{{ old('db_host','127.0.0.1') }}" required></div><div><label class="text-sm font-medium">Port</label><input class="{{ $input }}" type="number" name="db_port" value="{{ old('db_port','3306') }}" required></div><div><label class="text-sm font-medium">Database name</label><input class="{{ $input }}" name="db_database" value="{{ old('db_database') }}" required></div><div><label class="text-sm font-medium">Username</label><input class="{{ $input }}" name="db_username" value="{{ old('db_username') }}" required></div><div class="sm:col-span-2"><label class="text-sm font-medium">Password</label><input class="{{ $input }}" type="password" name="db_password"></div>@if($errors->any())<div class="sm:col-span-2 rounded-xl bg-red-50 p-3 text-sm text-red-700">{{ $errors->first() }}</div>@endif<div class="sm:col-span-2"><button class="rounded-xl bg-emerald-600 px-5 py-3 font-semibold text-white">Test and continue →</button></div></form>@endsection
