@extends('Admin.master_page')

@section('title') <h5 class="m-0 font-weight-bold text-primary" style="float: left;">Domain Transfer List</h5> 

@endsection

@section('content')


 

 <div class="table-responsive"> 

<br>
 	<div>
 		<form method="get" style="width:30%;float:left;">
 			<div class="search hidden sm:block" style="width: 220px;">
                <input type="text" name="search" class="form-control" placeholder="Search...">
            </div>
 		</form> 
 	    
 	</div>

 	<br>
 	<br>
 	<table class="table">
 	 <thead>
 	  <tr>
 	    <th class="border-b-2 whitespace-nowrap">Leap Account</th>
 	    <th class="border-b-2 whitespace-nowrap">Register Name</th>
 	     <th class="border-b-2 whitespace-nowrap">Register Email</th>
 	      <th class="border-b-2 whitespace-nowrap">Domain</th>
 	      <th class="border-b-2 whitespace-nowrap">Date</th>
 	      <th class="border-b-2 whitespace-nowrap">IP</th>
 	      <th class="border-b-2 whitespace-nowrap">Option</th>
 	      <th class="border-b-2 whitespace-nowrap">Status</th>
 	      <th class="border-b-2 whitespace-nowrap">Delete</th>
 	       </tr>
 	        </thead> 
 	        <tbody>
 	        @foreach($domains as $domain)		
 	         <tr>
 	          <td class="border-b">{{ optional($domain->user)->email }}</td>
 	          <td class="border-b">{{ $domain->register_name }}</td>
 	           <td class="border-b">{{ $domain->register_email }}</td>
 	            <td class="border-b">{{ $domain->domain_name }}</td>
 	             <td class="border-b">{{ $domain->date }}</td> 
 	             <td class="border-b">{{ $domain->ip }}</td>
 	             <td class="border-b">{{ $domain->option_domain }}</td>
 	             <td class="border-b">
 	                 <a href="{{ route('domain.transfer.update', $domain->id) }}">{{ $domain->status }}</a>
 	             </td>
 	             
 	              <td class="border-b">
			<a  href="{{route('domain.transfer.delete',$domain->id)}}" style="text-align:center !important;">
			    <i class="fas fa-trash-alt"></i>
			</a>
 	             </td>
 	             
 	             
 	         </tr>
 	         @endforeach

 
 	                 </tbody> 
 	             </table> 

				  <div class="container">
					<div class="row justify-content-center">
						{{ $domains->appends(request()->only('search'))->links() }}
					</div>
				</div>
 	         </div> 



	@endsection