+ @foreach($this->credentialData as $key => $value)
+ @php
+ $fieldConfig = collect($this->credentialFields)->where('name', $key)->first();
+ $label = $fieldConfig['label'] ?? ucfirst(str_replace('_', ' ', $key));
+ $isPassword = ($fieldConfig['type'] ?? 'text') === 'password';
+ @endphp
+
+
{{ $label }}
+
+
+
+ @if($isPassword)
+
+ ••••••••
+ {{ $value }}
+
+ Show
+ Hide
+
+
+ @else
+
{{ $value ?: 'N/A' }}
+ @endif
+
+
+
+ Copy
+
+
+
+ @endforeach
+
+