<form method="POST" action="{{ url('admin/content_access_issue') }}" id="submit_form">	
@csrf

	<table id="example" class="table table-striped table-bordered" style="width:100%">
					<thead>
						<tr>
							<th class="align-text-top text-center ">Issue <br><br> &nbsp; </th>
							<th class="align-text-top text-center">Access <br><br> &nbsp; <input id="acces_all_check" type="checkbox"></th>
							<th class="align-text-top text-center col-sm-3">From Date <br> &nbsp; 
							
								<div>
                                    <p class="flatpickr input-group" data-wrap="true" data-clickOpens="false">
                                        
										<input id="from_date_all" name="from_date_all" class="form-control flatpickr" placeholder="Pick date" data-input data-dateFormat="l, F j, Y">
                                     
                                        <span class="input-group-addon add-on">
                                            <a class="input-btn" data-clear>
                                                <i class="livicon" data-name="remove" data-size="16"
                                                   data-c="#555555" data-hc="#555555" data-loop="true"></i>
                                            </a>
                                        </span>
										<span class="input-group-addon add-on">
                                            <a id="from_apply_all" class="input-btn" data-clear>
                                               apply all
                                            </a>
                                        </span>
                                    </p>
                                </div>
                      
							</th>
							<th class="align-text-top text-center col-sm-3">To Date <br> &nbsp; 
								<div>
                                    <p class="flatpickr input-group" data-wrap="true" data-clickOpens="false">
                                        
										<input id="to_date_all" name="to_date_all" class="form-control flatpickr" placeholder="Pick date" data-input data-dateFormat="l, F j, Y">
                                     
                                        <span class="input-group-addon add-on">
                                            <a class="input-btn" data-clear>
                                                <i class="livicon" data-name="remove" data-size="16"
                                                   data-c="#555555" data-hc="#555555" data-loop="true"></i>
                                            </a>
                                        </span>
										<span class="input-group-addon add-on">
                                            <a id="to_apply_all" class="input-btn" data-clear>
                                               apply all
                                            </a>
                                        </span>
                                    </p>
                                </div>
							</th>   
							<th class="align-text-top text-center">Perpetual <br><br> &nbsp; <input id="perpetuall_check_all" type="checkbox" >
							</th>   	
							<th class="align-text-top text-center ">Remarks</th>
							<th class="align-text-top text-center">
							Action <br><br> &nbsp; 
							<input id="free_access_all" name="access_op_all" type="radio" class="" value="1" />Free &nbsp; 
							<input id="open_access_all" name="access_op_all" type="radio" class="" value="0" />Open Access
			
									
							</th>
						</tr>
					</thead>
					
				<?php $index = 0; ?>
				@foreach($issue_list as $key =>  $value)
				@if ( $value->content_type_id == 0 )
				<tbody>
				<tr>
					<td class="text-center">{{ $value->issue_title }}</td>
					<td class="text-center">
					<input 
						id="access_check_{{ $index }}"
						name="access_check[]"
						type="checkbox"				
						onclick="access_check({{ $index }});"
						value="{{ $value->issue_id }}">
					</td>
					
					<td>					
						<div id="from_date_error_msg_{{$index}}" class="input-group">
							<div class="input-group-addon">
								<i class="livicon" data-name="calendar" data-size="16" data-c="#555555"
								   data-hc="#555555" data-loop="true"></i>
							</div>
							<input 
							id="from_date_{{ $index }}" 
							name="from_date[{{ $value->issue_id }}]" 
							class="form-control flatpickr" 
							disabled="disabled"
							data-dateFormat="l, F j, Y">
						</div>
                      
					
					</td>
					<td>					
						<div id="to_date_error_msg_{{$index}}" class="input-group">
							<div class="input-group-addon">
								<i class="livicon" data-name="calendar" data-size="16" data-c="#555555"
								   data-hc="#555555" data-loop="true"></i>
							</div>
							<input 
							id="to_date_{{ $index }}" 
							name="to_date[{{ $value->issue_id }}]" 
							class="form-control flatpickr" 
							disabled="disabled"
							data-dateFormat="l, F j, Y">
						</div>					
					</td>
					<td class="text-center">					
						<input 
						id="perpetual_check_{{ $index }}" 
						name="perpetual_check[{{ $value->issue_id }}]" 
						type="checkbox" 
						onclick="perpetual_check({{ $index }});" 
						disabled="disabled"
						value="1">
					</td class="text-center">
					<td width="150">
						<textarea class="form-control" name="remarks[{{ $value->issue_id }}]" ></textarea>
					</td>
					<td class="align-text-top text-center">

						<div id="access_error_msg_{{ $index }}" class="form-group">

							<input type="radio" id="free_access_{{ $index }}" name="access_op[{{ $value->issue_id }}]" value="1" disabled="disabled" />
							<label class="control-label" for="inputError">Free</label> &nbsp; 
							<input type="radio" id="open_access_{{ $index }}" name="access_op[{{ $value->issue_id }}]" value="2" disabled="disabled" />
							<label class="control-label" for="inputError">Open Access</label>
							<br>
							
						</div>
 
					</td>

				</tr>
				</tbody>
				
				<?php $index = $index + 1; ?>
				
				@endif
				
		@endforeach   
		
		</table>		
		
		<input type="button" id="save" name="save"  class="btn btn-primary" value="submit" />
		
</form>