@if(count($banner_list) > 0)
  @foreach($banner_list as $banner)
    @if($banner->content_type == 'J' && $banner->banner_placement == 2)
      <div class="row text-center mb-4">

      <?php $file_path = config('constants.admin.root_path_banner').$banner->banner_file_name; ?>
      
      @if (!empty($banner->banner_file_name) && file_exists($file_path))
      <div class="col-md-12 mb-2">
        <a href="{{$banner->banner_link}}" target="_blank"><img src="{{DisplayImage(config('constants.admin.root_path_banner').$banner->banner_file_name)}}" alt="{{$banner->banner_name}}" class="img-fluid"></a>
      </div>
      
     @endif             

     @if(!empty($banner->banner_script))
      <div class="col-md-12 px-md-0 mt-4 d-none d-lg-block mb-2">
      <?php echo stripslashes($banner->banner_script); ?>
      </div>
     @endif
  </div>
    @endif  
  @endforeach
  @else
  
    @if($journal->journal_status == 1)
    <div class="row text-center mb-4 ebm-banners">
      <div class="col-md-3 pr-md-0 mb-2 mb-md-0">
        <a href="/journal/{{ $journal->journal_id }}/become_ebm_form"><img src="/images/ebm.png" class="img-thumbnail"></a>
      </div>
      <div class="col-md-3 pr-md-0 mb-2 mb-md-0">
        <a href="/journal/{{ $journal->journal_id }}/become_reviewer_form"><img src="/images/reviewer.png" class="img-thumbnail"></a>
      </div>	  	  
	  <div class="col-md-3 pr-md-0 mb-2 mb-md-0">        
		<a href="/journal/{{ $journal->journal_id }}/become_editor_form"><img src="/images/editors.png" class="img-thumbnail"></a> </div>
      <div class="col-md-3 mb-2 mb-md-0">
        <a href="/journal/{{ $journal->journal_id }}/become-a-section-editor"><img src="/images/section-editor.png" class="img-thumbnail"></a>
      </div>
  </div>
    @endif 

@endif
