@extends('master') @section('content')
@include('includes.side-menu')
@if (Session::has('error'))
@elseif ($errors->any())
@foreach ($errors->all() as $error) @endforeach
@endif

{{{$article->title}}}

    @php $category = App\Models\Category::getCategoryByID($article->article_category_id); $author = App\Models\User::getUserDataByID($article->corresponding_author_id); @endphp
  • {{{ Carbon\Carbon::parse($article->updated_at)->format('d-m-Y') }}} @if (!empty($category)) {{{$category->title}}} @endif {{{trans('ID')}}}: {{{$article->unique_code}}} {{{trans('Edition')}}}
    {{{trans('Corresponding Author')}}}

    {{{$author->name}}}

    {{{$author->email}}}
  • {{{ trans('User img') }}}
    {{{ Carbon\Carbon::parse($article->created_at)->diffForHumans() }}} {{ trans('On') }} {{{Carbon\Carbon::parse($article->created_at)->format('l \\a\\t H:i:s')}}}

    {{{$article->title}}}

    {{{ $article->excerpt }}}

    {{{trans('Attached Document')}}}

    {{{trans('Download')}}}
    {{{ trans('doc_img') }}}

    {{{App\Models\Article::getArticleFullName($article->submitted_document)}}}

    {{{ trans('File Size') }}} {{{App\Models\UploadMedia::getArticleSize($article->corresponding_author_id,$article->submitted_document)}}}
    @php $comments = App\Models\Article::getArticleComments($article->id,'reviewer'); @endphp @if (!empty($comments))

    {{{trans('Reviewer Feedback')}}}

    @foreach ($comments as $comment)
    {{{App\Models\Helper::getAcronym($comment->name)}}}
    {{{ Carbon\Carbon::parse($comment->created_at)->format('F j, Y') }}}

    {{{$comment->name}}}

    {{{trans('Status')}}}

    @if ($comment->status != "articles_under_review") {{{App\Models\Helper::displayReviewerCommentStatus($comment->status)}}} @endif

    {{{$comment->comment}}}
    @endforeach
    @endif @if ($article->status != "accepted_articles")

    {{{trans('Assign Reviewer')}}}

    @if ($existed_categories->count() > 0 && !empty($existed_reviewers)) {!! Form::open(['url' => url('/'.$user_role.'/dashboard/assign-reviewer'), 'id' => 'assign_reviewer_article', 'class'=>'sj-formtheme sj-categorydetails', 'enctype' => 'multipart/form-data', '@submit.prevent' => 'assign_reviewer_article']) !!}
    {!! Form::close() !!} @elseif ($existed_categories->count() == 0 && !empty($existed_reviewers)) {!! Form::open(['url' => url('/'.$user_role.'/dashboard/assign-reviewer'), 'id' => 'assign_reviewer_article', 'class'=>'sj-formtheme sj-categorydetails', 'enctype' => 'multipart/form-data', '@submit.prevent' => 'assign_reviewer_article']) !!}
    {!! Form::close() !!} @else
    @endif {!! Form::open(['url' => url('submit-editor-feedback/'.$article->id), 'class'=>'sj-formtheme sj-formsearchvthree','id'=>'admin_feedback']) !!}

    {{{trans('Reply')}}}

    {!! Form::select('status', array( 'accepted_articles' => trans('Accept Article'), 'minor_revisions' => trans('Minor Revision'), 'major_revisions'=>trans('Major Revision'), 'rejected' => trans('Reject Article'), null)) !!}
    {!! Form::textarea('comments', null, ['class' => 'form-control', 'placeholder' => trans('Add Feedback')]) !!}
    {!! Form::hidden('article', $article->id) !!}
    {!! Form::submit(trans('Submit'), ['class' => 'sj-btn sj-btnactive','v-on:click' => 'showloading']) !!}
    {!! Form::close() !!} @endif
@endsection