@extends('layouts.admin') @section('title', $Title) @section('content')

{{ $Title }}

@if($message = Session::get('errormsg')) @endif @if($message = Session::get('msg')) @endif
{{-- Search form --}}
{{-- Articles table --}} @foreach($articles as $key => $article) {{-- Show only first 7 words of title --}} @endforeach
# Title Category Image Author Journal DOI Status Action
{{ $articles->firstItem() + $key }}{{ Str::words($article->title, 7, '...') }} {{ Str::words($article->categorydata->name ?? 'null', 7, '...') }} {{ $article->prefix }} {{ $article->first_name }} {{ $article->last_name }} {{ $article->journal }} {{ $article->doi ?? '—' }} {{ ucfirst($article->status) }} View Details Edit
@csrf @method('DELETE')
{{ $articles->links() }}
@endsection