@if($step === 'welcome')
Step 1 of 6
Server preflight
The installer validates required PHP extensions, writable paths, Laravel classes, the MT4 integration service, and the permission package before touching the database.
Laravel
{{ app()->version() }}
Existing database
{{ $dbConnected ? 'Connected' : 'Not connected yet' }}
Preflight result
{{ $requiredFailed ? $requiredFailed.' required item(s) failed' : 'All required checks passed' }}
@foreach($preflight as $item)
{{ $item['label'] }}{{ $item['detail'] }}
@endforeach
@if($dbError)The current .env database is unavailable, which is normal for a new installation: {{ $dbError }}
@endif
@endif
@if($step === 'general')
Step 2 of 6
Application and MT4 API
Configure the platform identity and the server-side credentials used for every account, trade, price, chart, group, balance, credit, and order request.
@endif
@if($step === 'theme')
Step 3 of 6
Select the complete visual theme
Choose a website theme, then select a design for the client panel and sign-in pages.
@endif
@if($step === 'database')
Step 4 of 6
Database installation
Fresh mode resets the selected database, then runs every migration and deterministic seeder. Existing mode preserves current rows, applies all pending MT4/theme migrations, and refreshes idempotent metadata.
@endif
@if($step === 'admin')
Step 5 of 6
Create the super admin
The installer creates or updates the owner account, verifies permission tables, synchronizes every web permission to the Super Admin role, and clears the permission cache.
@if(!$isFreshInstall && ($roles ?? collect())->isNotEmpty())
@endif
@endif
@if($step === 'finish')
Step 6 of 6
Ready to deploy
Review the configuration. The final operation creates the schema, seeds permissions and themes, activates the selected design, creates the owner, writes a secure application key, and locks the installer.
Application{{ $general['app_name'] ?? config('app.name') }}
URL / timezone{{ $general['app_url'] ?? config('app.url') }} · {{ $general['timezone'] ?? config('app.timezone') }}
MT4 API{{ rtrim($general['mt4_api_base_url'] ?? '', '/') }}{{ $general['mt4_api_endpoint'] ?? '' }} · credentials configured
Live messages{{ !empty($general['pusher_app_id']) && !empty($general['pusher_app_key']) && !empty($general['pusher_app_secret']) ? 'Pusher private channels configured' : 'Pusher not configured; database messages remain available' }}
Website theme{{ $selectedThemeData['name'] ?? $selectedTheme }}
Client panel and sign-in pages{{ $selectedClientPresentation === 'matched' ? 'Theme-matched' : 'Legacy' }}
Database{{ $databaseDisplay }}
Install mode{{ ($database['install_mode'] ?? 'fresh')==='fresh' ? 'Fresh: reset schema, migrate and seed safe metadata' : 'Upgrade: preserve data and apply pending migrations' }}
Super admin{{ $admin['email'] ?? 'Not saved' }}
Role{{ $selectedRoleName }}
No MT4 password or API credential is rendered into client-side JavaScript. The final environment file is server-side and should remain outside public web access.
@endif