<!-- Modal -->



<div id="org_user" class="modal fade" role="dialog">

  <div class="modal-dialog modal-lg" style="width:60%">



	<!-- Modal content-->

	<div class="modal-content">

	  <div class="modal-header">

		<button type="button" class="close" data-dismiss="modal">&times;</button>

		<h4 class="modal-title">Organization User List</h4>

	  </div>

	  <div class="modal-body">

		<div class="portlet box info">

            <div class="portlet-title">

                <div class="caption">

                    <i class="livicon" data-name="rocket" data-size="16" data-loop="true" data-c="#fff" data-hc="white"></i> Responsive Table

                </div>

            </div>

            <div class="portlet-body">

			@isset($org_user_list)

                <table class="table table-striped table-bordered table-hover">

                    <thead>

						<tr>

							<th class="align-text-top text-center ">User Name</th>

							<th class="align-text-top text-center ">Access Type</th>

							<th class="align-text-top text-center ">Access On</th>

							<th class="align-text-top text-center ">Action</th>

						</tr>

                    </thead>

                    <tbody>

					@foreach($org_user_list as $value)

                        <tr>

							<td class="text-center">{{$value->name}}</td>

							<td class="text-center">{{$value->access_type_title}}</td>

							<td class="text-center">

									@php 

										$access_type_on = explode(',',$value->access_type_on); 

									@endphp

									@if (in_array('v', $access_type_on)) Volume <br /> @endif

									@if (in_array('e', $access_type_on)) eBook Volume <br /> @endif

									@if (in_array('i', $access_type_on)) Issue <br /> @endif

									@if (in_array('c', $access_type_on)) Chapter <br /> @endif

									@if (in_array('a', $access_type_on)) Article <br /> @endif

							</td>

							<td class="text-center">

								<form action="{{ route('user_access.index', ['section' => 'access_ip_range_list'])}}" method="Get"  enctype="multipart/form-data">

								<input type="hidden" name="section" value="access_ip_range_list" />

								<input type="hidden" name="user_register" value="yes" />

								<input type="hidden" name="user_name" value="{{$value->name}}" />

								<input type="hidden" name="user_access_id" value="{{encrypt($value->user_access_id)}}" />

								<input type="hidden" name="request_id" value="{{encrypt($request_id)}}" />

								<button type="submit" class="btn btn-primary" name="frm_search" value ="true">Proceed Request</button>

								</form>

							</td>

                        </tr>



                    </tbody>

					@endforeach

					</table>

			@endisset 			

            </div>

        </div>	  

	  </div>

	  <div class="modal-footer">

		<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>

	  </div>

	</div>



  </div>

</div>

