@extends('layouts.admin') @section('title', 'Article Analysis') @push('styles') @endpush @section('content')
{{-- Modern Page Header --}}

Article Analysis

Kelola artikel berita, analisis sentimen, dan integrasi Risk Score

@csrf
Create Manual Article
{{-- Modern Statistics Cards --}}
📰
{{ number_format($totalArticles) }}
Total Articles
All sources
🌐
{{ number_format($apiArticles) }}
API Articles
External feeds
✍️
{{ number_format($manualArticles) }}
Manual Articles
Created by admin
{{-- Additional Statistics Row --}}
🔍
{{ number_format($analyzedArticles) }}
Analyzed Articles
{{ $totalArticles > 0 ? round(($analyzedArticles / $totalArticles) * 100) : 0 }}% completed
📌
{{ number_format($publishedArticles) }}
Published Articles
Live
⏳
{{ number_format($pendingAnalysis) }}
Pending Analysis
Queue
{{-- Tabs Navigation --}}
{{-- Filters Section --}}
Reset
{{-- Main Content Layout with Table and Detail Panel --}}
{{-- Articles Table Section --}}

Article Management

{{-- Bulk Actions Bar (Hidden by default) --}}
0 selected
@forelse($news as $article) @empty @endforelse
Thumbnail Title & Description Source & Type Category Country Sentiment Status Risk Level Published Date Actions
@if($article->image_url) Article thumbnail @else
@endif
{{ $article->source ?? 'Unknown' }}
@if($article->source === 'Manual') Manual @else API @endif
{{ $article->newsCategory?->name ?? 'Uncategorized' }} @if($article->country) {{ $article->country->name }} @else Global @endif @if($article->newsSentiment) @php $sentiment = $article->newsSentiment->sentiment; @endphp {{ ucfirst($sentiment) }} @else Not Analyzed @endif @if($article->published_at) Published @else Draft @endif @if($article->newsSentiment) @php $impact = 0; if ($article->newsSentiment->sentiment === 'positive') { $impact = round($article->newsSentiment->positive_score * 10); } elseif ($article->newsSentiment->sentiment === 'negative') { $impact = -round($article->newsSentiment->negative_score * 10); } @endphp @if($impact > 0) +{{ $impact }} @elseif($impact < 0) {{ $impact }} @else 0 @endif @else - @endif {{ $article->published_at ? $article->published_at->format('M d, Y') : '-' }}
@if(!$article->newsSentiment)
@csrf
@endif
@csrf @method('PATCH')
@csrf @method('DELETE')
📄

No Articles Found

Articles from News API will appear here

{{-- Pagination --}} @if($news->hasPages())
{{ $news->links() }}
@endif
{{-- Detail Panel --}}

Article Details

📄

Select an Article

Click on any article from the table to view detailed information including sentiment analysis, risk factors, and content preview.

@push('scripts') @endpush @endsection