@use('Illuminate\Support\Str') {{-- @intent Exibir um dado sensível/técnico com transparência de integridade (ADR-019/ADR-029). @description Componente de uso do serviço Security (ADR-015). Sem cor de paleta e sem estilo inline: tudo vem de `.security-card` (tokens, `rem`) — o tema e o `@layer a11y` continuam mandando. --}} @props([ 'label' => null, 'value' => null, 'hash' => null, 'type' => 'text', ]) @php $title = $label ?? __('security::card.default_label'); $id = 'security-card-title-'.Str::slug($title); @endphp
merge(['class' => 'security-card']) }} role="region" aria-labelledby="{{ $id }}">

{{ $title }}

@if (filled($hash)) {{ __('security::card.integrity_badge') }} @endif
@if ($type === 'secret')
{{ __('security::card.secret_label') }} {{ $value ?? '********' }}
@else

{{ $value }}

@endif @if (filled($hash))
{{ __('security::card.details') }}

{{ __('security::card.hash_label') }} {{ $hash }}

@endif