@extends('admin.layout') @section('title', __('admin.sources.title').' · '.__('admin.brand')) @section('content')
{{ __('admin.nav.sources') }}

{{ __('admin.sources.title') }}

{{ __('admin.sources.subtitle') }}

@if (config('data.population_enabled'))
@csrf
@else {{ __('admin.platform.population_title') }} · {{ __('admin.platform.locked') }} @endif
@foreach ($sources as $source)
{{ $source->source_type }}

{{ $source->name }}

{{ $source->code }}

{{ $source->is_active ? __('admin.enabled') : __('admin.disabled') }}
{{ $source->fetches_count }}{{ __('admin.fetches') }}{{ $source->external_mappings_count }}{{ __('admin.mappings_label') }}
@forelse ($source->providerHealth as $health)
{{ $health->scope }}{{ __('admin.statuses.'.$health->status) }}{{ $health->last_success_at?->diffForHumans() ?? '—' }}
@empty
{{ __('admin.sources.no_health') }}
@endforelse
@csrf @method('PATCH')
@endforeach
@endsection