<div class="container">
    <div class="row">
        <div class="col-md-8 col-xl-9">

            <div class="row list">

              @if(!empty($jms_journal))

                @php $subscribe=''; 

                  if(session()->has('mysubscribption'))  {

                      $subscribe ='subscribe';

                  }else{

                      $subscribe ='';

                  }    

                @endphp  

                @foreach ($jms_journal as $journals)
@php
            $ejournal = App\Models\Journal::GetJournalByJMSCode($journals->subtitle);

        @endphp    
                    <div class="col-md-4 col-xl-3">

                        <div class="item bigbox-hvr-slow d-block p-2">

                           

                              <a href="/callforpapers/{{strtolower($journals->subtitle)}}/journal">

                        @if(isset($ejournal->image_file_name))

                        <img class="img-fluid mb-1 w-100" alt="{{$journals->title}}" src="{{'/images/bentham/'.$ejournal->image_file_name}}"/>
                                @else

                                <img class="img-fluid w-100 mb-1" alt="profile pic" src="https://via.placeholder.com/95x125">

                                @endif

                                </a>
                               
                                    <a href="https://bentham.manuscriptpoint.com/journals/{{ $journals->subtitle }}" class="btn btn-info btn-sm d-block mb-1">Submit Manuscript</a>
                                    <a href="https://bentham.manuscriptpoint.com/submit/Htproposal/journal/{{ $journals->subtitle }}" class="btn btn-dark btn-sm d-block">Submit Thematic Issue</a>
                               

                        </div>

                    </div>

                   

                @endforeach

                

                <div class="col-md-12 d-inline-flex list-pagination">{{ $jms_journal->appends(request()->input())->links() }}</div>

                      @else

                      <div class="col-md-12 text-center">No Record Found</div>

                      @endif

                    </div>
                </div>

                <div class="col-md-4 col-xl-3">
                    <div class="card text-white bg-secondary">
                <div class="card-header">
                    <h5 class="m-0">Find a Journal</h5> 
                </div>
                <div class="card-body">
                    <form  action="{{route('callforpapers')}}" enctype="multipart/form-data" method="post">
                     @csrf   
                        <select class="form-control mb-1" name="by_journal">
                            <option value="">Select Journal</option>
                            @foreach ($jms_all_journal as $journals)                            
                                <option value="{{ $journals->subtitle }}">{{ $journals->title }}</option>
                            @endforeach
                        </select>

<!--                         <select class="form-control mb-1" name="subject_id">
                            <option value="">Select Subject</option>
                           @foreach ($subject_list as $key => $value)
                            <option value="{{$key}}" @if (old("subject_id")){{ (in_array($key, old("subject_id")) ? "selected":"") }} @endif>{{$value}}</option>
                            @endforeach

                        </select>

                        <select class="form-control">
                            <option value="">Select SDG</option>
                        </select>
 -->
                    <hr class="my-2">
                    <button name="btnjournalsearch" type="submit" class="btn btn-info w-100" value="true">
                        Search <i class="fas fa-search float-right mt-1"></i>
                    </button>
              
            </form>


                </div>
            </div>

        </div>

    </div>

</div>
