@if(count($banner_list) > 0)
  @foreach($banner_list as $banner)
    @if($banner->content_type == 'J' && $banner->banner_placement == 3)
      <?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 px-md-0 mt-4 d-none d-lg-block">
	      <a href="{{$banner->banner_link}}" target="_blank"><img class="img-fluid" src="{{DisplayImage(config('constants.admin.root_path_banner').$banner->banner_file_name)}}" alt="{{$banner->banner_name}}"></a>
	    </div>
	   @endif 
	  @if(!empty($banner->banner_script))
	    <div class="col-md-12 px-md-0 mt-4 d-none d-lg-block">
		  <?php echo stripslashes($banner->banner_script); ?>
	    </div>
      @endif
    @endif  
  @endforeach
@endif

