
            @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 != "" && $journal->journal_status !=2)

      <!--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

      </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


          <p class="mb-2">
            @if(!empty($journal->issn) && $journal->subtitle !="NEMJ")
            ISSN (Print): {{$journal->issn}}<br>
            @endif
            @if(!empty($journal->eissn))
            ISSN (Online): {{$journal->eissn}}
            @endif
          </p>

        @if(isset($current_year_issue[0]->volume_id) && $journal->IsIssue == 1)
        <p class="mb-2">Volume {{$current_year_issue[0]->volume_name}} , Issues {{$current_year_issue[0]->total_no_of_issues}}, {{$current_year_issue[0]->year}}</p>
        
        @elseif(isset($current_year_issue[0]->volume_id) && ($journal->IsIssue == 0 || $journal->continues_publication_journal == 1))
        <p class="mb-2">Volume {{$current_year_issue[0]->volume_name}} , {{$current_year_issue[0]->year}}</p>
        
        @endif
        @if($journal->journal_status!='2' && $journal->IsOpenAccess == 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>


      @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
      <br>
          @if($journal->journal_status !=2)
      <a href="https://bentham.manuscriptpoint.com/submit/AbstractS/Journal/{{$journal->jms_jcode}}" class="btn btn-outline-light btn-sm mt-2" target="_blank">Submit Abstracts</a>
      <a href="{{$journal->jms_link}}" class="btn btn-outline-light btn-sm mt-2" target="_blank">Submit Manuscripts</a>
          @endif
     
      </div>
    </div>
  </div>
</section>

  <!-- Modal -->
  
  

