@extends('layouts.admin') @section('title', __('operations.entity_data')) @section('content') @if(auth()->user()->role !== 'reader')

{{ __('operations.collect') }}

{{ __('operations.review_hint') }}

@foreach($type === 'park' ? ['enrich','content','ai'] : ['enrich','ai'] as $operation)
@csrf
@endforeach
@endif

{{ __('operations.identifiers') }}

@foreach($identifiers as $identifier)

{{ $identifier->provider?->name }} · {{ $identifier->namespace }} : {{ $identifier->external_id }}

@endforeach @if(auth()->user()->role !== 'reader')
@csrf
@endif

{{ __('operations.manual_value') }}

{{ __('operations.value_hint') }}

@if(auth()->user()->role !== 'reader')
@csrf
@endif

{{ __('operations.observations') }}

{{ __('operations.review') }}
@forelse($observations as $observation)@empty@endforelse
{{ __('operations.field') }}{{ __('operations.value') }}{{ __('operations.provider') }}{{ __('operations.confidence') }}
{{ $observation->field_key }} {{ $observation->locale }}{{ $observation->normalized_value_json }}@if($observation->source?->url){{ $observation->provider?->name }}@else{{ $observation->provider?->name }}@endif{{ $observation->confidence_score }}
{{ __('operations.empty') }}

{{ __('operations.history') }}

@forelse($history as $change)

{{ $change->changed_at->format('d/m/Y H:i') }} · {{ $change->field_key }} {{ $change->locale }} · {{ $change->new_value_json }} · {{ $change->change_reason }}

@empty

{{ __('operations.empty') }}

@endforelse

{{ __('operations.organizations') }}

@foreach($organizationLinks as $item)

{{ $item->name }} · {{ __('operations.organization_role.'.$item->pivot->role) }}

@endforeach @if(method_exists($identity,'organizations') && auth()->user()->role !== 'reader')
@csrf
@endif

{{ __('operations.media') }}

@foreach($media as $item)

{{ $item->author }} · {{ $item->license }} · {{ $item->is_public ? __('operations.public') : __('operations.private') }}

@endforeach @if(auth()->user()->role !== 'reader')
@csrf @foreach(['url','origin_url','author','license'] as $key)@endforeach
@endif
@if(auth()->user()->isAdmin())

{{ __('operations.new_field') }}

@csrf
@endif @endsection