@extends('master') @php $breadcrumbs = Breadcrumbs::generate('editorArticles',$user_role,$user_id,$article_status); @endphp @section('breadcrumbs') @if (count($breadcrumbs))
    @foreach ($breadcrumbs as $breadcrumb) @if ($breadcrumb->url && !$loop->last)
  1. {{{$breadcrumb->title}}}
  2. @else
  3. {{{App\Models\Helper::displayArticleBreadcrumbsTitle($breadcrumb->title)}}}
  4. @endif @endforeach
@endif @endsection @section('content')
@include('includes.side-menu')
@if (Session::has('message'))
@elseif (Session::has('error'))
@elseif ($errors->any())
@foreach ($errors->all() as $error) @endforeach
@endif

{{{$page_title}}}

{!! Form::open(['url' => url('/'.$user_role.'/dashboard/'.$user_id.'/'.Request::segment(4).'/article-search'), 'method' => 'get', 'class' => 'sj-formtheme sj-formsearchvtwo']) !!}
{!! Form::close() !!}
    @if($articles->count() > 0) @foreach($articles as $article) @php $category = App\Models\Category::getCategoryByID($article->article_category_id); $author = App\Models\User::getUserDataByID($article->corresponding_author_id); $edition = App\Models\Article::getArticleEdition($article->edition_id); @endphp
  • @if($article->notify == 1) @endif {{{ Carbon\Carbon::parse($article->created_at)->format('d-m-Y') }}} @if(!empty($category->title)) {{{$category->title}}} @endif {{ trans('Id') }}{{{$article->unique_code}}} @if(!empty($edition)) {{{ trans('Edition') }}}: {{{$edition->title}}} @endif

    {{{$article->title}}}

    {{{ 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}}}

    @if ($article->status == "accepted_articles") @php $edition = !empty($editions) ? $editions : array(); $editionStatus = App\Models\Edition::getEditionStatusByID($article->edition_id); @endphp
    {!! Form::open(['url' => url('/'.$user_role.'/dashboard/update-accepted-article'),'class'=>'sj-categorysform', 'id' => $article->id, 'files' => true, 'enctype' => 'multipart/form-data']) !!}
    @if($payment_mode != "free")
    {!! Form::number('price',!empty($article->price) ? $article->price : null , ['class' => 'form-control', 'min' => '1', 'placeholder' => trans('Article Price') ]) !!}
    @endif {!! Form::hidden('article', $article->id) !!}
    {!! Form::submit(trans('Save'), ['class' => 'sj-btn sj-btnactive','id' =>$article->id ]) !!}
    {!! Form::close() !!}
    @elseif ($article->status == "articles_under_review") @endif
    @php echo htmlspecialchars_decode(stripslashes($article->excerpt)); @endphp

    {{{trans('Attach 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::getAdminArticleComments($article->id,'reviewer'); @endphp @if (!empty($comments))

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

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

    {{{$comment->name}}}

    {{{$comment->role_type}}}

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

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

    {{{$comment->comment}}}
    @endforeach
    @endif
  • @endforeach @else @include('errors.no-record') @endif
@if( method_exists($articles,'links') ) {{ $articles->links('pagination.custom') }} @endif
@endsection