@extends('layouts.app')
@section('title')
{{$journal->title}}
@parent
@stop

@section('metatags')
@php
$image_file_name=$journal->image_file_name;
if(empty($image_file_name)) $image_file_name= 'no_image.jpg';
if(!(file_exists('images/bentham/'.$image_file_name))){
      $image_file_name = 'no_image.jpg';
}
  $image_url= 'http://'.$_SERVER['HTTP_HOST'].'/images/bentham/'.$image_file_name;
  $remchar =array('&lt;p&gt;','&lt;/p&gt;','"');//remove characters
  $txt_abstract=strip_tags(html_entity_decode($node_meta->description,ENT_NOQUOTES , 'UTF-8'));   


@endphp
    <meta name="description" content= "{{$node_meta->description}}" />
    <meta name="keywords" content="{{$node_meta->keywords}}"> 
	<meta name="pathi"   content="+{{Request::getPathInfo()}}" />
    <meta property="og:type"   content="website" /> 
    <meta property="og:title" content="{{html_entity_decode($journal->title)}}" />   
    <meta property="og:url" content="{{Request::url()}}" />
    <meta property="og:image" content="{{$image_url}}" />
    <meta property="og:description" content="{!!$txt_abstract!!}" />
    <meta property="og:site_name" content="http://{{$_SERVER['HTTP_HOST']}}" />
@endsection


@section('header_styles')
<!--page level css -->
<script type="text/javascript" src="https://platform-api.sharethis.com/js/sharethis.js#property=5f2d6cad2e6de20011ec6cd1&product=inline-share-buttons" async="async"></script>

<link href="{{ asset('assets/vendors/select2/css/select2.min.css') }}" type="text/css" rel="stylesheet">
<link href="{{ asset('assets/vendors/select2/css/select2-bootstrap.css') }}" rel="stylesheet">


<!--end of page level css-->
@stop

@section('content')


<!----Banner Section Starts----> 
    
  <!----Banner Section Starts----> 
    @include('includes.journal_banner')

  <!----Banner Section Ends---->

<!----Banner Section Ends----> 


<!----Main Section Starts (where all content bodies exist)----> 
<main id="issue">
  
   <section id="j-services">
    <div class="container">
      @if (Session::has('message'))
        <div class="alert alert-danger alert-dismissible fade show" data-auto-dismiss="5000" role="alert">
        <b>Attention!</b>{{ Session::get('message') }}         
           <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
      </div>
            
      @endif

      <div class="row">
        <div class="col-md-8 col-xl-9 listing">
		  
          @if($page_name == "editorial-board")

			 
          <div class="call-services ifa">

            <h2 class="h4">Editorial Board <!-- <a class="btn btn-link" onclick="openNav()">☰ Toggle Sidepanel</a> -->  </h2>

              <hr>

                 <div class="row">                  

                   <div class="col-md-9">              

                     @php 

                        include('editorial-board/'.strtolower($journal->subtitle).'-editorial-board.html'); 

                     @endphp

                   </div>

                 </div>                 

          </div>
          @elseif($page_name == "editorial-policy")
          <div class="call-services policy">
				<h2 class="h4">Editorial Policies</h2>
				<hr>
                 @php //readfile('https://benthamscience.com/journal/ep-service.php?journalID='.$journal->nid); 
					include('editorial-policies/'.strtolower($journal->subtitle).'-editorial-policies.html');	
				 @endphp
          </div>
          @elseif($page_name == "advertise-with-us")
          <div class="call-services advertise">
               <h2 class="h4">Bentham Science Publishers: An Introduction</h2>
              <hr>
                 @php //readfile('https://benthamscience.com/journal/awu-service.php?journalID='.$journal->nid); 
                 include('advertise/advertise.html');
                 @endphp

          </div>
          @elseif($page_name == "publishing-ethics")
          <div class="call-services ethics">
            <h2 class="h4">Publishing Ethics and Rectitude</h2>
              <hr>
                 
                 @php 
                    include('publishing-ethics/publishing-ethics.html');
                  @endphp
          </div>
          @elseif($page_name == "self-archiving-policies")
          <div class="call-services archiving">
            <h2 class="h4">Archiving Policies</h2>
              <hr>
                 
                 @php 
                    include('archiving-policies/self-archiving-policies.html');
                  @endphp
          </div>
          @elseif($page_name == "guideline-for-reviewers")
          <div class="call-services for-reviewers">
                 <!-- @php readfile('https://benthamscience.com/journal/rg-service.php?journalID='.$journal->nid); @endphp -->

                 <h2 class="h4">Reviewer Guidelines </h2>

              <hr>
                 @php 
                  include('reviewers-guidelines/reviewers-guidelines.html');
                  @endphp
          </div>
          @elseif($page_name == "peer-review-workflow")
          <div class="call-services peer-reviewers">
                 <!-- @php readfile('https://benthamscience.com/journal/rg-service.php?journalID='.$journal->nid); @endphp -->
                 <h2 class="h4">PEER REVIEW WORKFLOW</h2>
              <hr>
                 @php 
                  include('reviewers-guidelines/peer_review_workflow.html');
                  @endphp
          </div>
          @elseif($page_name == "ifa")
          <div class="call-services ifa">
            <h2 class="h4">Author Guidelines <!-- <a class="btn btn-link" onclick="openNav()">☰ Toggle Sidepanel</a> -->  </h2>
              <hr>
                 <div class="row">
                  
                   <div class="col-md-9">              
                     @php 
                        include('instructions-for-authors/'.strtolower($journal->subtitle).'-instructions-for-authors.html');
                     @endphp
                   </div>
                 </div>                 
          </div>
		  @elseif($page_name == "guest-editor-guidelines")
          <div class="call-services ifa">
            <h2 class="h4">Guidelines for Guest Editors</h2>
              <hr> 
                   @php 
                      include('guest-editor-guidelines/'.strtolower($journal->subtitle).'-guest-editor-guidelines.html');
                   @endphp                 
          </div>

          @elseif($page_name == "forthcoming-thematic-issues")

          <div class="call-services ifa">

            <h2 class="h4">Forthcoming Thematic Issues</h2>

              <hr> 

                   @php 

                      include('forthcoming-thematic-issues/'.strtolower($journal->subtitle).'-special-issue.html');

                   @endphp                 

          </div>


          @elseif($page_name == "increase-visibility-article")
          <div class="">
            @php 
              include('static-pages/increase_visibility.html');
            @endphp
          </div>
      
          @elseif($page_name == "library-recommendation")
            @include('includes.library_recommendation_tpl')
      
          @elseif($page_name == "trial-requests")
            @include('includes.trial_request_tpl')

          @elseif($page_name == "subscribe_journal_form")
            @include('form.subscribe_journal_form')

          @elseif($page_name == "subscribe_journal_form_preview")
            @include('form.subscribe_journal_form_preview')

          @elseif($page_name == "related-journal")
            @include('related_journals')

          @elseif($page_name == "related-ebooks")
            @include('related_ebooks')

          @elseif($page_name == "purchase_issue_form")
            @include('form.form_purchase_full_issue')
			
          @elseif($page_name == "purchase_issue_form_preview")
            @include('form.form_purchase_full_issue_preview')
			
      		@elseif($page_name == "full_text_inquiry")
                  @include('form.full_text_inquiry')
      			
      		@elseif($page_name == "full_text_inquiry_preview")
            @include('form.full_text_inquiry_preview')
          
          @elseif($page_name == "Issue")
            @include('includes.issue_article')
          
          @elseif($page_name == "become_ebm_form")
                  @include('form.become_ebm_form')
          
          @elseif($page_name == "become_reviewer_form")
                  @include('form.become_ebm_form')

          @elseif($page_name == "become_editor_form")
                  @include('form.become_ebm_form')

          @elseif($page_name == "manuscript-transfer-facility")
                  @include('manuscript_transfer')

          @elseif($page_name == "animated-abstract")
                  @include('animated-abstract')

          @else
            @include('includes.ajax_article')
          @endif
        </div>
        <div class="col-md-4 col-xl-3 ji-links">

            
		@if($journal->journal_status != 2)   
           @php
              //readfile('https://benthamscience.com/journal/editor-service.php?journalID='.$journal->nid);
              //readfile('https://benthamscience.com/journal/nobel-service.php?journalID='.$journal->nid);

              //include('editorial-board/'.strtolower($journal->subtitle).'-editorial-board.html'); 

           @endphp


              
         
            @include('includes.journal_rightmenu')
        @endif  

        </div>
      </div>
    </div>
  </section>
  
</main>
</div>
<!----Main Section Starts----> 
@endsection
{{-- page level scripts --}}
@section('footer_scripts')
<script src="{!! asset('assets/vendors/select2/js/select2.js') !!}"></script>    
<script src="{!! asset('js/filter.js') !!}"></script>
<script>
$("#journal_id").select2({
  theme:"bootstrap",
  placeholder:"Select Journal",
  width: '100%',
  height: '50px'
});
$("#institution_country").select2({
  theme:"bootstrap",
  placeholder:"Select Country",
  width: '100%',
  height: '50px'
});
$("#country").select2({
  theme:"bootstrap",
  placeholder:"Select Country",
  width: '100%',
  height: '50px'
});


</script>
 
<script type="text/javascript">
  $(function () {
  $('[data-toggle="popover"]').popover()
})
</script>

<script type="text/javascript">
            $(document).ready(function(){ 
            $(".panel, .panel-title, .panel-heading, .panel-body, .ji-links div").removeAttr("style")

            $('.ji-links h3').replaceWith(function(){
          return $("<strong />", {html: $(this).html()});
      });

            $(".panel").addClass("card mb-3");
            $(".panel-heading").addClass("card-header");
            $(".panel-body").addClass("card-body");
            });
        </script>

<script>
 $(document).ready(function() {
              TableOfContents();
            });

function TableOfContents()
{
    var settings = $.extend({
      duration: "500",
      title: "Table of Contents"
    } );
    
    return $('div.call-services.ifa div.row').each(function() {
    var article = $('div.call-services.ifa div.row');
    //console.log(article);

    article.prepend('<div class="col-md-3" id="mySidepanel"><div id="sticky-menu" class="pt-3"></div></div>');
    var list = article.find('div#mySidepanel > div#sticky-menu ');
    
    article.find('article sec[id]>title').each(function(){
      var heading = $(this);
      var tag = heading[0].tagName.toLowerCase();
      var title = heading.text();
      var id = heading.attr('id');
      
      if(typeof id === "undefined") {
        id = Math.random().toString(36).substring(7);
        heading.attr('id', id);
      }
      list.append('<a class="btn btn-sm text-white text-wrap text-left btn-block bg-siteblue shadow" href="#' + id + '" title="' + title + '">' + title + '</a>');
    });
    
    list.on('click', function(event){
      var target = $(event.target);
      
      if(target.is('a')){
        event.preventDefault();
        jQuery('html, body').animate({
          scrollTop: $(target.attr('href'),).offset().top - 150 
        }, settings.duration);
        return false;
      }
    });
  });
  }


$(document).ready(function(){
  $("ref-id, issue_deadlines").hide();   
  $(".ji-links editorial-board-list[editorial-board-list-type]").hide();
  $(".ji-links editorial-board-list[editorial-board-list-type='editor']").show();

    $.each($('special-issue-description'), function () {
         $('special-issue-description').append('<a class="btn btn-primary btn-sm text-white" href="">Download PDF</a>');
         $('special-issue-description a').attr("href", "https://eurekaselect.com/journal-files/special-issue-details/"  + $("special-issue-description").text());
    });  
  
});
      </script>
@stop



