@php $fieldMap = [ 'service_host' => 'Địa chỉ IP', 'service_username' => 'Username', 'service_port' => 'Port', 'service_password' => 'Mật khẩu', 'os_name' => 'Hệ điều hành', ]; $iconMap = [ 'service_host' => 'internet.png', 'service_username' => 'admin.png', 'service_password' => 'password.png', ]; $rows = collect($fields ?? array_keys($fieldMap))->filter(fn($key) => isset($fieldMap[$key]))->values(); @endphp
THÔNG TIN TRUY CẬP VPS
|
@if(isset($iconMap[$key]))
|
@if($key === 'service_password')
{{ $data[$key] ?? '—' }}
@else
{{ $data[$key] ?? '—' }}
@endif
|