| 
									
										
										
										
											2022-11-06 21:39:52 +11:00
										 |  |  | @section("title", "Add an IP address") | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  | <x-app-layout> | 
					
						
							|  |  |  |     <x-slot name="header"> | 
					
						
							|  |  |  |         {{ __('Insert a new IP') }} | 
					
						
							|  |  |  |     </x-slot> | 
					
						
							|  |  |  |     <div class="container"> | 
					
						
							|  |  |  |         <x-card class="shadow mt-3"> | 
					
						
							|  |  |  |             <h4 class="mb-3">IP information</h4> | 
					
						
							|  |  |  |             <x-back-button> | 
					
						
							|  |  |  |                 <x-slot name="href">{{ route('IPs.index') }}</x-slot> | 
					
						
							|  |  |  |                 Go back | 
					
						
							|  |  |  |             </x-back-button> | 
					
						
							| 
									
										
										
										
											2022-10-13 14:36:21 +11:00
										 |  |  |             <x-response-alerts></x-response-alerts> | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |             <form action="{{ route('IPs.store') }}" method="POST"> | 
					
						
							|  |  |  |                 @csrf | 
					
						
							|  |  |  |                 <div class="row"> | 
					
						
							|  |  |  |                     <div class="col-12 col-lg-6 mb-4"> | 
					
						
							| 
									
										
										
										
											2022-10-31 14:42:02 +11:00
										 |  |  |                         <x-text-input title="IP address" name="address"></x-text-input> | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                     </div> | 
					
						
							|  |  |  |                     <div class="col-12 col-lg-4 mb-3"> | 
					
						
							|  |  |  |                         <div class="input-group"> | 
					
						
							|  |  |  |                             <div class="input-group-prepend"><span class="input-group-text">Type</span></div> | 
					
						
							|  |  |  |                             <select class="form-control" name="ip_type"> | 
					
						
							|  |  |  |                                 <option value="ipv4" selected>IPv4</option> | 
					
						
							|  |  |  |                                 <option value="ipv6">IPv6</option> | 
					
						
							|  |  |  |                             </select></div> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |                 <div class="row"> | 
					
						
							|  |  |  |                     <p>Attached to:</p> | 
					
						
							|  |  |  |                     <div class="col-12 col-md-6 mb-3"> | 
					
						
							|  |  |  |                         <div class="input-group"> | 
					
						
							|  |  |  |                             <div class="input-group-prepend"><span class="input-group-text">Service</span></div> | 
					
						
							|  |  |  |                             <select class="form-control" name="service_id"> | 
					
						
							| 
									
										
										
										
											2022-11-09 15:05:55 +11:00
										 |  |  |                                 @foreach ($servers as $server) | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                                     <option value="{{ $server['id'] }}"> | 
					
						
							| 
									
										
										
										
											2022-11-09 15:05:55 +11:00
										 |  |  |                                         {{ $server['hostname'] }} (Server) | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                                     </option> | 
					
						
							|  |  |  |                                 @endforeach | 
					
						
							| 
									
										
										
										
											2022-11-09 15:05:55 +11:00
										 |  |  |                                 @foreach ($shareds as $shared) | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                                     <option value="{{ $shared['id'] }}"> | 
					
						
							| 
									
										
										
										
											2022-11-09 15:05:55 +11:00
										 |  |  |                                         {{ $shared['main_domain'] }} (Shared) | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                                     </option> | 
					
						
							|  |  |  |                                 @endforeach | 
					
						
							| 
									
										
										
										
											2022-11-09 15:05:55 +11:00
										 |  |  |                                 @foreach ($resellers as $reseller) | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                                     <option value="{{ $reseller['id'] }}"> | 
					
						
							| 
									
										
										
										
											2022-11-09 15:05:55 +11:00
										 |  |  |                                         {{ $reseller['main_domain'] }} (Reseller) | 
					
						
							|  |  |  |                                     </option> | 
					
						
							|  |  |  |                                 @endforeach | 
					
						
							|  |  |  |                                 @foreach ($seed_boxes as $seed_box) | 
					
						
							|  |  |  |                                     <option value="{{ $seed_box['id'] }}"> | 
					
						
							|  |  |  |                                         {{ $seed_box['title'] }} (Seed box) | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                                     </option> | 
					
						
							|  |  |  |                                 @endforeach | 
					
						
							|  |  |  |                             </select></div> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |                 <div class="row"> | 
					
						
							|  |  |  |                     <div class="col-12 col-lg-4"> | 
					
						
							|  |  |  |                         <x-submit-button>Insert IP</x-submit-button> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |             </form> | 
					
						
							|  |  |  |         </x-card> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | </x-app-layout> |