@extends('admin.layouts.app') @section('title', __('whmcs_import.title')) @section('content') @include('admin.whmcs-import._styles') @php $fieldLabel = fn (string $field) => str_starts_with($field, 'custom_field:') ? substr($field, 13).' ('.__('whmcs_import.custom_field').')' : $field; $mappedCount = collect($sourceColumns)->filter(fn ($c) => ($selected[$c['name']] ?? '__skip__') !== '__skip__')->count(); $totalColumns = count($sourceColumns); $types = [ 'clients' => ['icon' => 'fa-users', 'table' => $prefix.'clients', 'label' => __('whmcs_import.target_clients')], 'domains' => ['icon' => 'fa-globe', 'table' => $prefix.'domains', 'label' => __('whmcs_import.target_domains')], 'services' => ['icon' => 'fa-server', 'table' => $prefix.'hosting', 'label' => __('whmcs_import.target_services')], ]; $filledConstants = collect($mapping['constants'] ?? [])->filter(fn ($v) => is_string($v) && $v !== '')->count(); $filledTransforms = collect($mapping['transforms'] ?? [])->filter(fn ($t) => ! empty($t['pattern']))->count(); @endphp
{{ $connection->name ?: $connection->database }} · {{ $connection->host }}:{{ $connection->port }} / {{ $connection->database }}