<style>
        #call-paper .dropdown-menu.show{
          display: flex;
        }
        #call-paper .dropdown-menu {
          margin: 0;
          padding: 10px 5px;
          width: 550px;
          background-color: #037989f0;
          border-radius: 15px;
          top: -110% !important;
          border: 1px solid #fff;
      }
      #call-paper .dropdown-menu:before {
        content: '';
        width: 0;
        height: 0;
        border-width: 5px 7px 5px 0;
        border-color: transparent #aaaaaa transparent transparent;
        border-style: solid;
        top: 29%;
        position: absolute;
        left: -8px;
      }

      #call-paper .dropdown-menu a, #call-paper .dropdown-menu button {
          padding: 5px ;
          font-size: 1.1em;
          color: #fff;
          width: 100%;
          display:block;
          border: none;
          text-align: left;
          background-color: transparent;
          border-bottom: 1px dashed #dee2e6;
      }

      #call-paper .dropdown-menu a:hover,.sectionbanner .dropdown-menu a:focus, #call-paper .dropdown-menu button:hover,.sectionbanner .dropdown-menu button:focus {
          background: var(--siteblue);
          border-radius: 5px 5px 0 0px;
          box-shadow: none;
          outline: none;
      }
</style>  

            @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-side positon-relative">

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

          <div class="row mx-0 mt-2">
            <div class="col-auto col-md-auto p-0 pr-1">
              ISSN (Print):
            </div>
            <div class="col-auto col-md-auto p-0">
              {{$journal->issn}}
            </div>
          </div>
          <div class="row mx-0 mb-2">
            <div class="col-auto col-md-auto p-0 pr-1">
              ISSN (Online):
            </div>
            <div class="col-auto col-md-auto p-0">
              {{$journal->eissn}}
            </div>
          </div>

          @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 d-inline fa-sm ml-1"></i></p>

          @endif

          @if(!empty($journal->org_impact_factor))
          <p class="mb-2"><strong>Impact Factor</strong>: {{$journal->org_impact_factor}}</p>
          @endif

          @if(!empty($main_indexing) && !empty($journal->org_impact_factor))
          <p class="mb-2"><strong>Indexed in:</strong> {{$main_indexing->indexing_title}}... <a href="/journal/{{$journal->journal_id}}/indexing-agency" class="text-white mt-2"><em><u>View all</u></em></a></p>
          @endif


          @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 -->
		
		<div class="btn-group">
          <a href="{{ URL::previous() }}" class="btn btn-outline-light btn-sm mr-1">Back</a>

          <a href="{{route('journal',$journal->journal_id)}}" class="btn btn-light btn-sm mr-1">Journal Home</a>
		  @if($journal->journal_status == 1 && $journal->subtitle !="CN")
		  <form action="{{url('call-for-papers')}}" method="POST">
			@CSRF
			<input type="hidden" name="search_journals[]" value="{{$journal->jms_jcode}}">
			
			<div id="call-paper" class="dropdown dropright font-14 p-0 m-0">
                <button class="btn btn-outline-light btn-sm mr-1 dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false">Call For Paper</button>
                  
                <div class="dropdown-menu font-12" aria-labelledby="navbarCallForPapers">
                
                      <div class="row m-0 w-100">
                        <div class="px-1 col">
                            <h6 class="border-bottom text-white pb-2">Submission for General Articles</h6>
							<a href="https://bentham.manuscriptpoint.com/submit/AbstractS/Journal/{{$journal->jms_jcode}}?utm_source=eurekaselect&utm_medium=website&utm_campaign=callforpaper&utm_term=unpaid&utm_content=link" target="_blank">Submit Abstract</a>
                            <a href="https://bentham.manuscriptpoint.com/journals/{{$journal->jms_jcode}}?utm_source=eurekaselect&utm_medium=website&utm_campaign=callforpaper&utm_term=unpaid&utm_content=link" target="_blank">Submit Manuscript</a>
                        </div>                        
                        <div class="px-1 col">
							<h6 class="border-bottom text-white pb-2">Submit to Thematic Issues</h6>
							<button type="submit" class="btn">Submit Manuscript to Thematic Issues</button>
							
							<a href="https://bentham.manuscriptpoint.com/submit/Htproposal/journal/{{$journal->jms_jcode}}?utm_source=eurekaselect&utm_medium=website&utm_campaign=callforpaper&utm_term=unpaid&utm_content=link" target="_blank">Submit Thematic Issue Proposal</a>
                    </div>
                  </div>
                </div>
			</div>
			
		  </form>
		  @endif
		</div>
      
      @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)
            @if($journal->jms_jcode == "CN")
            <!-- <a href="{{$journal->jms_link}}" class="btn btn-outline-light btn-sm mt-2" target="_blank">Submit Abstracts</a> -->
            @else
			<!-- <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> -->
            @endif
			<!-- <a href="{{$journal->jms_link}}" class="btn btn-outline-light btn-sm mt-2" target="_blank">Submit Manuscripts</a> -->
          @endif
          <!-- <br> -->
		  @if($journal->journal_status == 1)
          <a href="/journal/{{ $journal->journal_id }}/institutional-members" class="btn btn-outline-light btn-sm mt-2">Institutional Members</a>
	  @endif
     
      </div>
    </div>
  </div>
</section>

  <!-- Modal -->
  
  

