
<div class="container" id="issue-list">
    <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)
                  

                    <div class="col-md-6">

                        <div class="item card bigbox-hvr-slow p-0 text-justify"> 
                            <div class="card-header position-relative">
                                 <span class="badge badge-info p-1 px-2">Closes:{{strftime('%d %B, %Y',$journals->proposal_closing_date)}} </span class="badge badge-primary">

                                <h4 class="m-0 border-bottom py-2 mb-1 float-left w-100">
                                    
                                    <a href="/callforpapers/{{strtolower($journals->ht_code)}}/specialissue">

                                        {!! $journals->manuscript !!}

                                    </a>

                                </h4>
                            </div>
                            <div class="card-body py-2">    
                                <p class="m-0">{!! Str::words($journals->abstract, 50, ' ...' )!!} <a href="/callforpapers/{{strtolower($journals->ht_code)}}/specialissue">read more </a></p>


                            </div>
                                                     
                            <div class="card-footer">
                                <strong> Guest editor(s):</strong> {{$journals->editor}}
                            </div>
                                

                                
                            

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