{{ Form::open([ 'method'  => 'delete', 'url' => [ 'admin/content_access_article/delete'] ]) }}

<table id="example" class="table table-striped table-bordered" style="width:100%">
	
				<thead>
					<tr>
						<th class="align-text-top text-center ">Article title</th>
						<th class="align-text-top text-center ">From Date</th>
						<th class="align-text-top text-center ">To Date</th>
						<th class="align-text-top text-center ">Perpetual</th>
						<th class="align-text-top text-center ">Remarks</th>
						<th class="align-text-top text-center">Access</th>
						<th class="align-text-top text-center">Action &nbsp; <input id="acces_all_check" type="checkbox"></th>
					</tr>
				</thead>
				<tbody>
			@isset($article_list)	
				@php ($array_exist = 0)
				
				@foreach($article_list as $value)
					@if ( $value->content_type_id > 0 )
						@php ($array_exist = 1)
						
					<tr>
					
						<td class="text-left">{{ $value->article_title }}</td>
						<td class="text-center"> 
						@if (strtotime($value->from_date) == 0)
						---
						@else				
							{{$value->from_date}}
						@endif
							
						</td>
						<td class="text-center"> 
						@if (strtotime($value->to_date) == 0)
						---
						@else				
							{{$value->to_date}}
						@endif
						</td>
						
						<td class="align-text-top text-center">
						  @if ( $value->perpetual == 0 ) <span>&#10006;</span> @else <span>&#10004;</span> @endif			
						</td>

						<td class="align-text-top text-left" width="150">
						  {{$value->remarks}}		
						</td>

						<td class="align-text-top text-center">
							@if ( $value->content_type_access_id == 1 ) 
								Free Access 
							@elseif ( $value->content_type_access_id == 2 ) 
								Open Access 
							@else
								---
							@endif
						</td>
						
						<td class="text-center">
							<input 
							id="access_check_{{ $value->article_id }}"
							name="access_check[]"
							type="checkbox"				
							value="{{ $value->article_id }}">
						</td>
					
					</tr>
					
					@endif
				@endforeach   
				@if($array_exist == 1)
				<tr>
				
					<td colspan="6">&nbsp;</td>
					<td class="align-text-top text-center">
								
						 <button type="submit" class="btn btn-danger btn-sm" ">
						 <i class="livicon" data-name="trash" data-loop="true" data-color="#fff" data-hovercolor="white" data-size="14"></i>DELETE</button>
						
					</td>
				
				</tr>

				@endif
				
			@else
				<tr>
				<td colspan="7"><center>No Record</center></td>
				
			
			</tr>
			@endif
		
			</tbody>		
			</table>		
		
		
		
{{ Form::close() }}