@extends('layouts.admin') @section('title', 'Article Analysis') @push('styles') @endpush @section('content')
Kelola artikel berita, analisis sentimen, dan integrasi Risk Score
| Thumbnail | Title & Description | Source & Type | Category | Country | Sentiment | Status | Risk Level | Published Date | Actions | |
|---|---|---|---|---|---|---|---|---|---|---|
|
@if($article->image_url)
|
@if($article->url) {{ Str::limit($article->title, 60) }} @else {{ Str::limit($article->title, 60) }} @endif{{ Str::limit($article->description, 80) }} |
{{ $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') : '-' }} | ||
|
📄
No Articles FoundArticles from News API will appear here |
||||||||||
Click on any article from the table to view detailed information including sentiment analysis, risk factors, and content preview.