@extends('admin.layouts.app') @section('title', __('whmcs_import.title')) @section('content') @include('admin.whmcs-import._styles')

{{ __('whmcs_import.title') }}

{{ __('whmcs_import.description') }}

{{ __('whmcs_import.badge_read_only') }} {{ __('whmcs_import.badge_preview') }} {{ __('whmcs_import.badge_logged') }}
@include('admin.whmcs-import._steps', ['current' => 1]) @if($errors->has('connection')) @endif

{{ __('whmcs_import.connection_title') }}

@csrf

{{ __('whmcs_import.saved_connections') }}

@if($connections->isNotEmpty()){{ $connections->count() }}@endif
@forelse($connections as $conn)
{{ $conn->name ?: $conn->database }}
{{ $conn->host }}:{{ $conn->port }} ยท {{ $conn->database }}
{{ __('whmcs_import.open_mapper') }}
@empty
{{ __('whmcs_import.no_connections') }}
@endforelse
@if($logs->isNotEmpty())

{{ __('whmcs_import.recent_logs') }}

@foreach($logs as $log) @endforeach
{{ __('whmcs_import.log_date') }} {{ __('whmcs_import.source_table') }} {{ __('whmcs_import.log_total') }} {{ __('whmcs_import.log_added') }} {{ __('whmcs_import.log_updated') }} {{ __('whmcs_import.log_errors') }}
{{ $log->created_at?->format('Y-m-d H:i') }} {{ $log->source_table }} {{ $log->total }} {{ $log->added }} {{ $log->updated }} {{ $log->errors }} {{ __('whmcs_import.view_log') }}
@endif @if($profiles->isNotEmpty())

{{ __('whmcs_import.saved_profiles') }}

@foreach($profiles as $profile) @endforeach
{{ __('whmcs_import.profile_name') }} {{ __('whmcs_import.source_table') }} {{ __('whmcs_import.import_mode') }}
{{ $profile->name }} {{ $profile->source_table }} {{ __('whmcs_import.modes.'.$profile->import_mode) }} @if($profile->connection_id) {{ __('whmcs_import.apply_profile') }} @endif
@csrf @method('DELETE')
@endif
@endsection