@extends('admin/layouts/default')

{{-- Page title --}}
@section('title')
    Content Access
    @parent
@stop

{{-- page level styles --}}
@section('header_styles')
    <!--page level css -->
    <link href="{{ asset('assets/vendors/jasny-bootstrap/css/jasny-bootstrap.css') }}" rel="stylesheet">
    <link href="{{ asset('assets/vendors/select2/css/select2.min.css') }}" type="text/css" rel="stylesheet">
    <link href="{{ asset('assets/vendors/select2/css/select2-bootstrap.css') }}" rel="stylesheet">
    <link href="{{ asset('assets/vendors/datetimepicker/css/bootstrap-datetimepicker.min.css') }}" rel="stylesheet">
    <link href="{{ asset('assets/vendors/iCheck/css/all.css') }}"  rel="stylesheet" type="text/css" />
    <link href="{{ asset('assets/css/pages/wizard.css') }}" rel="stylesheet">
	<link href="{{ asset('assets/css/pages/tables.css') }}" rel="stylesheet">
	
	<script src="{{ asset('js/jquery.min.js') }}" type="text/javascript"></script>
	
	<link href="{{ asset('assets/vendors/pickadate/css/default.css') }}" rel="stylesheet" type="text/css"/>
    <link href="{{ asset('assets/vendors/pickadate/css/default.date.css') }}" rel="stylesheet" type="text/css"/>
    <link href="{{ asset('assets/vendors/pickadate/css/default.time.css') }}" rel="stylesheet" type="text/css"/>
    <link href="{{ asset('assets/vendors/airDatepicker/css/datepicker.min.css') }}" rel="stylesheet" type="text/css"/>
    <link href="{{ asset('assets/vendors/flatpickrCalendar/css/flatpickr.min.css') }}" rel="stylesheet" type="text/css"/>
    <link href="{{ asset('assets/css/pages/adv_date_pickers.css') }}" rel="stylesheet" type="text/css"/>
	
    <!--end of page level css-->
@stop

{{-- Page content --}}
@section('content')
    <section class="content-header">
        <h1>Content Access Issue</h1>
        <ol class="breadcrumb">
            <li>
                <a href="{{ route('admin.dashboard') }}">
                    <i class="livicon" data-name="home" data-size="14" data-color="#000"></i>
                    Dashboard
                </a>
            </li>
            <li><a href="#"> Users</a></li>
            <li class="active">Issue level Content Access</li>
        </ol>
    </section>
	
	<section class="content">
                <div class="row">
                    <div class="col-md-12">
                        <!-- BEGIN SAMPLE TABLE PORTLET-->
                        <div class="portlet box success">
                            <div class="portlet-title">
                                <div class="caption">
                                    <i class="livicon" data-name="responsive" data-size="16" data-loop="true" data-c="#fff" data-hc="white"></i>
                                    View Issue level Content Access
                                </div>			
									<a class="btn btn-sm btn-default button-alignment pull-right mb-1" title="Add article" href="{{ URL::to('admin/content_access_issue/create') }}">
									<span class="glyphicon glyphicon-plus"></span> Create</a>								
                            </div>
							
                            <div class="portlet-body table-responsive">		
							
								<form action="{{ route('content_access_issue.index') }}" method="Get"  enctype="multipart/form-data">
								
									<div class="form-group">
									<label class="control-label" for="select21">Select Access Type:</label>
									
									<select class="form-control select2" id="access_type" name="access_type">
										<option title="Select Access" value=""
										@isset($param['access_type']) @if($param['access_type'] == '') selected @endif @endisset
										>Select Access</option>
										<option title="Volume of Journal" value="1"
										@isset($param['access_type']) @if($param['access_type'] == 1 ) selected @endif @endisset
										>Free</option>
										<option title="Volume of EBook" value="2"
										@isset($param) @if($param['access_type'] == 2) selected @endif @endisset
										>Open Access</option>
									</select>
								</div>
								
								
								@include('search.journal_search') 
									@include('search.volume_search') 
								
								<div class="form-group">
								
											<label class="control-label col-md-2" for="select21">Date From :</label> 
											<div class="col-md-4">
											<input id="from_date" name="from_date" class="form-control flatpickr" placeholder="Pick date" data-input data-dateFormat="l, F j, Y" value="{{ $param['from_date'] }}"> 
											</div>
										
											<label class="control-label col-md-2" for="select21">Date To :</label> 
											<div class="col-md-4">	
											<input id="to_date" name="to_date" class="form-control flatpickr" placeholder="Pick date" data-input data-dateFormat="l, F j, Y" value="{{ $param['to_date'] }}">
											</div>
								</div>
								
							
								
									
									<button type="submit" class="btn btn-primary" name="frm_search" value ="true">
										<span class="glyphicon glyphicon-search"></span>  Search
									</button>
									
									<button type="button" id="btn_reset" class="btn btn-link" onclick="javascript: location.href='/admin/content_access_issue'">Reset</button>
									
								</form>
							</div>	
						</div>							
										
					
										
							@isset($issue_list)

							<div class="panel panel-success">
								<div class="panel-heading">
									<h4 class="panel-title">issue List</h4>
									
								</div>
								<div class="panel-body">
									@include('admin.content_access.issue_list')	
								</div>
							</div>								
							@endisset
					    
                        <!-- END SAMPLE TABLE PORTLET-->
                    </div>
                </div>
            </section>

@stop

{{-- page level scripts --}}
@section('footer_scripts')
	
	<script src="{{ asset('js/content_access.js') }}" type="text/javascript"></script>
	
    <script src="{{ asset('assets/vendors/iCheck/js/icheck.js') }}"></script>
    <script src="{{ asset('assets/vendors/moment/js/moment.min.js') }}" ></script>    
    <script src="{{ asset('assets/vendors/select2/js/select2.js') }}" type="text/javascript"></script>    
	<script src="{{ asset('assets/js/pages/table-advanced2.js') }}" type="text/javascript"></script>    
    <script src="{{ asset('assets/vendors/datetimepicker/js/bootstrap-datetimepicker.min.js') }}" type="text/javascript"></script>
	
	<script src="{{ asset('assets/vendors/pickadate/js/picker.js') }}" type="text/javascript"></script>
    <script src="{{ asset('assets/vendors/pickadate/js/picker.date.js') }}" type="text/javascript"></script>
    <script src="{{ asset('assets/vendors/pickadate/js/picker.time.js') }}" type="text/javascript"></script>
    <script src="{{ asset('assets/vendors/flatpickrCalendar/js/flatpickr.min.js') }}" type="text/javascript"></script>
    <script src="{{ asset('assets/vendors/airDatepicker/js/datepicker.min.js') }}" type="text/javascript"></script>
    <script src="{{ asset('assets/vendors/airDatepicker/js/datepicker.en.js') }}" type="text/javascript"></script>
    <script src="{{ asset('assets/js/pages/custom_datepicker.js') }}" type="text/javascript"></script>
    
@stop