{{-- Metric editor (design: Product creator "Edit metric"). --}} @extends('layouts.app') @section('title', ($metric->exists ? 'Edit metric' : 'Add metric').' — InLynq') @section('heading', 'Metrics') @php $displays = ['currency' => 'Exact', 'range' => 'Range', 'percentage' => 'Percentage', 'number' => 'Number', 'text' => 'Text', 'private' => 'Private']; $current = old('display', $display); $context = $metric->company_id ? 'company' : ($metric->product_id ? 'product' : 'profile'); @endphp @section('content')
@csrf @if($metric->exists) @method('PUT') @endif
Show as
@foreach ($displays as $key => $label)@endforeach
@error('display'){{ $message }}@enderror
The label stays public; the value is hidden ("Shared on request"). Keep it for verification.
Displays as {{ $metric->exists ? ($metric->is_public ? $metric->formatted_value : 'Private') : '—' }} @if ($metric->is_verified) Verified · {{ $metric->verification_source }} @else Request verification@endif
@if ($metric->is_verified)

Changing the value removes the verified badge until it's checked again.

@endif
Cancel
@endsection