@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 ($article->published_on)

Published on {{ \Illuminate\Support\Carbon::parse($article->published_on)->format('M d, Y') }}

@endif @if ($article->issn)

ISSN: {{ $article->issn }}

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

Author Information

  • {{ $article->author->name }}

    @if ($article->author->profile->designation || $article->author->profile->affiliation)

    {{ trim(($article->author->profile->designation ?? '') . ', ' . ($article->author->profile->affiliation ?? ''), ' ,') }}

    @endif

    {{ $article->author->email }}

    {{ $article->author->profile->country . ', ' . $article->author->profile->state . ', ' . $article->author->profile->district . ', ' . $article->author->profile->pin_code }}

Co-authors

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

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

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

    @endif
  • @endforeach
@endif
@endsection