
            @php 
                $jbannerbg = public_path()."/images/jbannerbg/".strtolower($journal->subtitle)."-jbanner.jpg";
                if(file_exists($jbannerbg)){
                  $jbannerimg = url('/')."/images/jbannerbg/".strtolower($journal->subtitle)."-jbanner.jpg";
                }
                else{
                  $jbannerimg = url('/')."/images/jbannerbg/journal-bg.jpg";
                }
                if(isset($section) && $section->count() > 0 && $page_name == "section-detail")   
                { 
                  $journalsecbg = public_path()."/images/jbannersecbg/".strtolower($section_detail->js_code)."-jbanner.jpg";

                  if(file_exists($journalsecbg)){
                    $jbannersecimg = url('/')."/images/jbannersecbg/".strtolower($section_detail->js_code)."-jbanner.jpg";
                  }
                  else{
                    $jbannersecimg = url('/')."/images/jbannersecbg/ccs-7.jpg";
                  }
                }
              
            @endphp 
              
            <?php
             if(isset($section) && $section->count() > 0 && $page_name == "section-detail")   
                { ?>
                  <style>              
                    :root {
                    --journalbg: url("<?php echo $jbannersecimg; ?>");
                  }

                </style>
            <?php } else { ?>  
            <style>
              :root {
                    --journalbg: url("<?php echo $jbannerimg; ?>");
              }
                  
              </style>
           <?php } ?>  

                  

@if(isset($section) && $section->count() > 0 && $page_name == "section-detail")
<section id="journal-banner" class="section">
@else
<section id="journal-banner">
@endif  

  <div class="container">
    <div class="row">
      <div class="col-md-2 text-center text-md-left">
      <a href="/journal/{{$journal->journal_id}}/current-issue">
      @if(isset($journal->image_file_name) )
        <img src="{{'/images/bentham/'.$journal->image_file_name}}"  width="160" height="211"
          class="img-fluid" alt="">
      @else         
          <img src="https://via.placeholder.com/160x211" alt="profile pic">
      @endif 
      </a>
      @if($journal->flyer_link != "")

      <!--a class="btn btn-outline-light btn-sm mt-3 btn-block" href="/journal/{{ $journal->journal_id }}/download_flyer/{{Crypt::encrypt(config('constants.admin.root_path').'JOURNALS/BEN/'.$journal->subtitle.'/'.$journal->flyer_link)}}" name="language_btn">Download PDF Flyer</a-->	  	  <a class="btn btn-outline-light btn-sm mt-3 btn-block" target="_blank" href="/images/journal-flyer/{{ $journal->flyer_link}}" name="language_btn">Download PDF Flyer</a>	

      @endif

        @if($journal->impact_factor)
        <div class="card-body p-1 card bigbox-hvr-slow  text-dark text-center mt-3">
          <span class="font-14 badge badge-primary bg-siteblue mb-1">Impact Factor</span>
          <span class="card-title m-0 font-weight-bold">{!!$journal->impact_factor!!}</span>   
        </div>
        @endif
      </div>
      <div class="col-md-5 text-center text-md-left mt-4 mt-md-0">
        <h1 class="h3">{{$journal->title}}</h1>
       @if($journal->formerly_title)
        <p class="mb-2">{!! $journal->formerly_title !!} <i class="fas fa-external-link-alt fa-sm ml-1"></i></p>
        @endif
        <?php /*
        @if(!empty(trim($journal->eic_detail)) || trim($journal->eic_detail)!='' )
        <a tabindex="0" class="btn btn-outline-light btn-sm mb-3" role="button" data-toggle="popover" data-html="true" data-trigger="hover" data-content="{!! $journal->eic_detail !!}">Editor-in-Chief <i class="fas fa-angle-double-right"></i></a>
        @endif
        */?>
        <p class="mb-2">ISSN (Print): {{$journal->issn}}<br>
        ISSN (Online): {{$journal->eissn}}</p>
        @isset($latest_issue[0]->issue_id)
        <p class="mb-2"><a class="btn btn-link p-0 font-14 text-white" href="/issue/{{$latest_issue[0]->issue_id}}"><!--strong>Latest Issue:</strong--> Volume {{$latest_issue[0]->volume_name}}, Issue {{$latest_issue[0]->total_no_of_issues}}, {{$latest_issue[0]->year}}</a></p>
        @endisset
        @if($journal->journal_status!='2')
        <p><em>This journal supports open access</em></p>
        @endif
      <a href="{{ URL::previous() }}" class="btn btn-outline-light btn-sm">Back</a> 
      <a href="{{route('journal',$journal->journal_id)}}" class="btn btn-light btn-sm">Journal Home</a>
     <!-- <a href="https://benthamscience.com/journals/{{ strtolower($journal->subtitle) }}/subscribe-to-this-journal/#top" target="_blank" class="btn btn-light btn-sm">Subscribe</a> -->
        
    
      @if(isset($page_name) && $page_name == 'Issue' && $DownloadAccess == false && $issue->price > 0)
          <a href="{{route('purchase_full_issue',$issue->issue_id)}}" class="btn btn-success btn-sm">Purchase Full Issue</a>
      @endif
     
      </div>
    </div>
  </div>
</section>

  <!-- Modal -->
  
  

