@extends('layouts.app') @section('title', $article->title . ' - Corpus Intellectual') @section('description', Str::limit($article->abstract, 160)) @section('content')
{{ ucfirst(str_replace('_', ' ', $article->article_type)) }}

{{ $article->title }}

@php $authors = $article->authors_text ? array_map('trim', explode(',', $article->authors_text)) : []; @endphp @foreach($authors as $author)
{{ $author }}
@endforeach
Published:
{{ $article->published_date->format('F j, Y') }}
Submitted:
{{ $article->submitted_date->format('F j, Y') }}
@if($article->doi)
DOI:
{{ $article->doi }}
@endif

Abstract

{{ $article->abstract }}

@if($article->keywords) @php $keywords = is_array($article->keywords) ? $article->keywords : json_decode($article->keywords, true); @endphp

Keywords

@foreach($keywords ?? [] as $keyword) {{ $keyword }} @endforeach
@endif

Full Text

{!! nl2br(e($article->content)) !!}

Author Information

@php $authors = $article->authors_text ? array_map('trim', explode(',', $article->authors_text)) : []; @endphp
@foreach($authors as $author) {{ $author }} @endforeach

Article Actions

Download PDF

Article Metrics

Views {{ number_format($article->views_count) }}
Downloads {{ number_format($article->downloads_count) }}
Citations 0
@if($article->category)

Category

{{ $article->category->name }} @if($article->category->description)

{{ $article->category->description }}

@endif
@endif
@if($relatedArticles->count() > 0)

Related Articles

@foreach($relatedArticles as $relatedArticle)
{{ ucfirst(str_replace('_', ' ', $relatedArticle->article_type)) }}

{{ $relatedArticle->title }}

{{ Str::limit($relatedArticle->abstract, 120) }}

@php $authors = $relatedArticle->authors_text ? array_map('trim', explode(',', $relatedArticle->authors_text)) : []; @endphp {{ collect($authors)->take(2)->join(', ') }} @if(count($authors) > 2) et al. @endif
{{ $relatedArticle->published_date->format('M Y') }} {{ number_format($relatedArticle->views_count) }} views
@endforeach
@endif @endsection