Enhance ManualServers functionality: add user-provided information display and credential handling; improve TagsInput validation; update navigation properties
This commit is contained in:
@@ -65,6 +65,52 @@
|
||||
</div>
|
||||
</x-filament::section>
|
||||
|
||||
@if(!empty($this->credentialData))
|
||||
<x-filament::section>
|
||||
<x-slot name="heading">User-Provided Information</x-slot>
|
||||
<x-slot name="description">
|
||||
Information entered by the client during checkout
|
||||
</x-slot>
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
@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
|
||||
<div class="p-4 rounded-lg border border-gray-200 dark:border-white/10 bg-gray-50 dark:bg-white/5">
|
||||
<p class="text-xs font-medium text-gray-500 dark:text-gray-400 mb-2">{{ $label }}</p>
|
||||
|
||||
<div class="flex items-start justify-between gap-3">
|
||||
<div class="flex-1 min-w-0">
|
||||
@if($isPassword)
|
||||
<p class="font-mono text-sm" x-data="{ show: false }">
|
||||
<span x-show="!show" class="text-gray-400">••••••••</span>
|
||||
<span x-show="show" class="break-all">{{ $value }}</span>
|
||||
<x-filament::link @click="show = !show" size="xs" class="ml-2">
|
||||
<span x-show="!show">Show</span>
|
||||
<span x-show="show">Hide</span>
|
||||
</x-filament::link>
|
||||
</p>
|
||||
@else
|
||||
<p class="font-mono text-sm break-all">{{ $value ?: 'N/A' }}</p>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<x-filament::button
|
||||
size="xs"
|
||||
color="gray"
|
||||
x-data
|
||||
x-on:click="navigator.clipboard.writeText('{{ addslashes($value) }}'); $tooltip('Copied!')">
|
||||
Copy
|
||||
</x-filament::button>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</x-filament::section>
|
||||
@endif
|
||||
|
||||
@if(empty($this->processData))
|
||||
<x-filament::section>
|
||||
<x-slot name="heading">Initialize Setup Flow</x-slot>
|
||||
|
||||
Reference in New Issue
Block a user