@extends('layouts.app') @section('content') @php $primaryAuthor = $article->author->display_name ?? 'NEROSA Editorial'; $authorProfile = optional($article->author->profile); $authors = collect([$primaryAuthor]) ->merge($article->coAuthors->pluck('full_name')->filter()) ->filter() ->values(); $issueLabel = $article->issue ? trim((optional($article->issue->volume)->title ? optional($article->issue->volume)->title.' - ' : '').$article->issue->title) : null; $doiUrl = $article->doi ? (\Illuminate\Support\Str::startsWith($article->doi, ['http://', 'https://']) ? $article->doi : 'https://doi.org/'.ltrim($article->doi, '/')) : null; $thumbUrl = $article->thumbnail ? (\Illuminate\Support\Str::startsWith($article->thumbnail, ['http://','https://']) ? $article->thumbnail : asset('storage/'.$article->thumbnail)) : null; $pdfUrl = $article->formatted_pdf ? asset('storage/'.$article->formatted_pdf) : null; $epubUrl = $article->epub_file ? asset('storage/'.$article->epub_file) : null; $xmlUrl = $article->xml_file ? asset('storage/'.$article->xml_file) : null; $generatedCitation = $authors->implode(', ').'. '.$article->title.'. NEROSA' .($issueLabel ? '. '.$issueLabel : '') .($article->doi ? '. doi: '.$article->doi : ''); $citationText = $article->citation ?: $generatedCitation; @endphp
@if($article->category)

{{ $article->category->name }}

@endif

{{ $article->title }}

{{ $authors->implode(', ') }}

@if($authorProfile->designation || $authorProfile->affiliation)

{{ $authorProfile->designation }} @if($authorProfile->designation && $authorProfile->affiliation)|@endif {{ $authorProfile->affiliation }}

@endif @if($issueLabel)

{{ $issueLabel }}

@endif
@if($thumbUrl)
{{ $article->title }}
@endif
{!! $article->synopsis !!}
@if($article->coAuthors->count())

Author Information

    @foreach($article->coAuthors as $co)
  • {{ $co->full_name }}

    @if($co->designation || $co->affiliation)

    {{ trim(($co->designation ?? '').', '.($co->affiliation ?? ''), ' ,') }}

    @endif
  • @endforeach
@endif
@endsection