@extends('layouts.app')

@section('title')

Free Online Samples

@parent

@stop


@section('content')
<main id="journal">    
    <section>
      <div class="container">

<div class="row">
<div class="col-12">
    <h1 class="h3">
    Free Online Samples
    </h1>
    <hr>
    <p>These freely available journal issues will help greatly to widely disseminate the articles and lead to a greater number of citations due to the potentially much larger readership.</p>
</div>
<div class="col-md-12">
 @foreach ($journallist as $journals)

    <div class="card card-body mb-3 bigbox-hvr-slow">
        
            <div class="row">
             <div class="col-md-3 col-lg-2">
            <a href="{{ URL::route('journal', $journals->journal_id) }}">
            @if(isset($journals->image_file_name))
            <img class="img-fluid" src="{{'/images/bentham/'.$journals->image_file_name}}"/>
            @else
              <img class="mr-3 img-thumbnail" src="https://via.placeholder.com/120x160" alt="profile pic">
                @endif
            </a>
        </div>
        <div class="col-md-9 col-lg-10">
            <h5>
                <a href="{{ URL::route('journal', $journals->journal_id) }}">
                    {!!$journals->title!!}
                </a>
            </h5>
            <div class="row">
                <div class="col-md-9">
                    <div class="row">
                        <div class="col-md-4">
                            <p>
                                ISSN (Print):{{$journals->issn}}
                                <br>
                                    ISSN (Online):{{$journals->eissn}}
                                <br>
                            </p>
                        </div>
                        <div class="col-md-8">
                            <h6 class="h6 border-bottom pb-2">Abstracted/Indexed in</h6>
                            <p>{!! Str::words($journals->keyword, 1000,' ....')  !!} </p>
                        </div>
                    </div>
                </div>
                
                <div class="col-md-3">
                    <p>
                        <a href="/journal/{{ $journals->journal_id }}/free-copies-online" class="btn btn-dark bg-siteblue btn-sm d-lg-block mb-1">Free Online Samples</a>

                        <a href="/journal/{{ $journals->journal_id }}/trial-requests" class="btn btn-dark bg-siteblue btn-sm d-lg-block mb-1" target="_blank">Trial Request</a>

                        @if($journals->flyer_link != "")
                           <!--a href="/journal/{{ $journals->journal_id }}/download_flyer/{{Crypt::encrypt(config('constants.admin.root_path').'JOURNALS/BEN/'.$journals->subtitle.'/'.$journals->flyer_link)}}" class="btn btn-dark bg-siteblue btn-sm d-lg-block mb-1">Download Flyer</a-->

                            <a class="btn btn-dark bg-siteblue btn-sm d-lg-block mb-1" target="_blank" href="/images/journal-flyer/{{ $journals->flyer_link}}" name="language_btn">Download PDF Flyer</a>
                        @endif
                    
                    </p>
                </div>
            </div>

           </div>
    </div>
</div>
@endforeach
{{ $journallist->appends(request()->input())->links() }}

</div>
</div>
</div>
</section>
</main>
@endsection
