| 
									
										
										
										
											2022-10-13 16:03:31 +11:00
										 |  |  | @section("title", "Edit settings") | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  | <x-app-layout> | 
					
						
							|  |  |  |     <x-slot name="header"> | 
					
						
							|  |  |  |         Edit Settings | 
					
						
							|  |  |  |     </x-slot> | 
					
						
							|  |  |  |     <div class="container"> | 
					
						
							|  |  |  |         <x-card class="shadow mt-3"> | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |             <x-response-alerts></x-response-alerts> | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |             <x-back-button> | 
					
						
							|  |  |  |                 <x-slot name="href">{{ route('/') }}</x-slot> | 
					
						
							|  |  |  |                 Back to home | 
					
						
							|  |  |  |             </x-back-button> | 
					
						
							| 
									
										
										
										
											2023-03-31 11:31:19 +11:00
										 |  |  |             <form action="{{ route('settings.update', 1) }}" method="POST" enctype="multipart/form-data"> | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                 @csrf | 
					
						
							|  |  |  |                 @method('PUT') | 
					
						
							| 
									
										
										
										
											2022-05-09 15:57:02 +10:00
										 |  |  |                 <div class="row mt-2"> | 
					
						
							| 
									
										
										
										
											2022-05-29 17:10:46 +10:00
										 |  |  |                     <div class="col-12 col-md-6 mb-3"> | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                         <x-yes-no-select title="Use dark mode" name="dark_mode" value="{{ $setting->dark_mode }}"></x-yes-no-select> | 
					
						
							| 
									
										
										
										
											2022-05-09 15:57:02 +10:00
										 |  |  |                     </div> | 
					
						
							| 
									
										
										
										
											2022-05-29 17:10:46 +10:00
										 |  |  |                     <div class="col-12 col-md-6 mb-3"> | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                         <x-yes-no-select title="Show versions footer" name="show_versions_footer" value="{{ $setting->show_versions_footer }}"></x-yes-no-select> | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |                 <div class="row mt-3"> | 
					
						
							| 
									
										
										
										
											2022-05-29 17:10:46 +10:00
										 |  |  |                     <div class="col-12 col-md-6 mb-3"> | 
					
						
							|  |  |  |                         <x-os-select> | 
					
						
							|  |  |  |                             <x-slot name="title">Default server OS</x-slot> | 
					
						
							|  |  |  |                             <x-slot name="name">default_server_os</x-slot> | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                             <x-slot name="current">{{$setting->default_server_os}}</x-slot> | 
					
						
							| 
									
										
										
										
											2022-05-29 17:10:46 +10:00
										 |  |  |                         </x-os-select> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                     <div class="col-12 col-md-6 mb-3"> | 
					
						
							|  |  |  |                         <x-currency-select> | 
					
						
							|  |  |  |                             <x-slot name="title">Default currency</x-slot> | 
					
						
							|  |  |  |                             <x-slot name="name">default_currency</x-slot> | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                             <x-slot name="current">{{$setting->default_currency}}</x-slot> | 
					
						
							| 
									
										
										
										
											2022-05-29 17:10:46 +10:00
										 |  |  |                         </x-currency-select> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |                 <div class="row mt-3"> | 
					
						
							|  |  |  |                     <div class="col-12 col-md-6 mb-3"> | 
					
						
							|  |  |  |                         <x-number-input> | 
					
						
							|  |  |  |                             <x-slot name="title">Due soon amount to show</x-slot> | 
					
						
							|  |  |  |                             <x-slot name="name">due_soon_amount</x-slot> | 
					
						
							|  |  |  |                             <x-slot name="step">1</x-slot> | 
					
						
							|  |  |  |                             <x-slot name="min">0</x-slot> | 
					
						
							|  |  |  |                             <x-slot name="max">12</x-slot> | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                             <x-slot name="value">{{$setting->due_soon_amount}}</x-slot> | 
					
						
							| 
									
										
										
										
											2022-05-29 17:10:46 +10:00
										 |  |  |                         </x-number-input> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                     <div class="col-12 col-md-6 mb-3"> | 
					
						
							|  |  |  |                         <x-number-input> | 
					
						
							|  |  |  |                             <x-slot name="title">Recently added amount to show</x-slot> | 
					
						
							|  |  |  |                             <x-slot name="name">recently_added_amount</x-slot> | 
					
						
							|  |  |  |                             <x-slot name="step">1</x-slot> | 
					
						
							|  |  |  |                             <x-slot name="min">0</x-slot> | 
					
						
							|  |  |  |                             <x-slot name="max">12</x-slot> | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                             <x-slot name="value">{{$setting->recently_added_amount}}</x-slot> | 
					
						
							| 
									
										
										
										
											2022-05-29 17:10:46 +10:00
										 |  |  |                         </x-number-input> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |                 <div class="row mt-3"> | 
					
						
							|  |  |  |                     <div class="col-12 col-md-6 mb-3"> | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                         <x-yes-no-select title="Show servers to public" name="show_servers_public" value="{{ $setting->show_servers_public }}"></x-yes-no-select> | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                     </div> | 
					
						
							| 
									
										
										
										
											2022-05-29 17:10:46 +10:00
										 |  |  |                     <div class="col-12 col-md-6 mb-3"> | 
					
						
							|  |  |  |                         <x-currency-select> | 
					
						
							|  |  |  |                             <x-slot name="title">Home page currency</x-slot> | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                             <x-slot name="current">{{$setting->dashboard_currency}}</x-slot> | 
					
						
							| 
									
										
										
										
											2022-05-29 17:10:46 +10:00
										 |  |  |                         </x-currency-select> | 
					
						
							|  |  |  |                     </div> | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2022-05-29 17:10:46 +10:00
										 |  |  |                 <p>Only if <i>Show servers to public</i> is <b>YES</b> do these apply:</p> | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                 <div class="row mt-3"> | 
					
						
							| 
									
										
										
										
											2022-05-29 17:10:46 +10:00
										 |  |  |                     <div class="col-12 col-md-6 mb-3"> | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                         <x-yes-no-select title="Show servers IP's" name="show_server_value_ip" value="{{ $setting->show_server_value_ip }}"></x-yes-no-select> | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                     </div> | 
					
						
							| 
									
										
										
										
											2022-05-29 17:10:46 +10:00
										 |  |  |                     <div class="col-12 col-md-6 mb-3"> | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                         <x-yes-no-select title="Show servers hostname" name="show_server_value_hostname" value="{{ $setting->show_server_value_hostname }}"></x-yes-no-select> | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |                 <div class="row mt-3"> | 
					
						
							| 
									
										
										
										
											2022-05-29 17:10:46 +10:00
										 |  |  |                     <div class="col-12 col-md-6 mb-3"> | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                         <x-yes-no-select title="Show servers provider" name="show_server_value_provider" value="{{ $setting->show_server_value_provider }}"></x-yes-no-select> | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                     </div> | 
					
						
							| 
									
										
										
										
											2022-05-29 17:10:46 +10:00
										 |  |  |                     <div class="col-12 col-md-6 mb-3"> | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                         <x-yes-no-select title="Show servers location" name="show_server_value_location" value="{{ $setting->show_server_value_location }}"></x-yes-no-select> | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |                 <div class="row mt-3"> | 
					
						
							| 
									
										
										
										
											2022-05-29 17:10:46 +10:00
										 |  |  |                     <div class="col-12 col-md-6 mb-3"> | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                         <x-yes-no-select title="Show servers price" name="show_server_value_price" value="{{ $setting->show_server_value_price }}"></x-yes-no-select> | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                     </div> | 
					
						
							| 
									
										
										
										
											2022-05-29 17:10:46 +10:00
										 |  |  |                     <div class="col-12 col-md-6 mb-3"> | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                         <x-yes-no-select title="Show servers YABS" name="show_server_value_yabs" value="{{ $setting->show_server_value_yabs }}"></x-yes-no-select> | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2022-10-04 14:35:46 +11:00
										 |  |  |                 <div class="row mt-3"> | 
					
						
							|  |  |  |                     <div class="col-12 col-md-6 mb-3"> | 
					
						
							|  |  |  |                         <div class="input-group"> | 
					
						
							|  |  |  |                             <div class="input-group-prepend"><span | 
					
						
							|  |  |  |                                     class="input-group-text">Default order by</span></div> | 
					
						
							|  |  |  |                             <select class="form-control" name="sort_on"> | 
					
						
							|  |  |  |                                 <option | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                                     value="1" {{ ($setting->sort_on === 1) ? 'selected' : '' }}> | 
					
						
							| 
									
										
										
										
											2022-10-04 14:35:46 +11:00
										 |  |  |                                     created_at ASC | 
					
						
							|  |  |  |                                 </option> | 
					
						
							|  |  |  |                                 <option | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                                     value="2" {{ ($setting->sort_on === 2) ? 'selected' : '' }}> | 
					
						
							| 
									
										
										
										
											2022-10-04 14:35:46 +11:00
										 |  |  |                                     created_at DESC | 
					
						
							|  |  |  |                                 </option> | 
					
						
							|  |  |  |                                 <option | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                                     value="3" {{ ($setting->sort_on === 3) ? 'selected' : '' }}> | 
					
						
							| 
									
										
										
										
											2022-10-04 14:35:46 +11:00
										 |  |  |                                     next_due_date ASC | 
					
						
							|  |  |  |                                 </option> | 
					
						
							|  |  |  |                                 <option | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                                     value="4" {{ ($setting->sort_on === 4) ? 'selected' : '' }}> | 
					
						
							| 
									
										
										
										
											2022-10-04 14:35:46 +11:00
										 |  |  |                                     next_due_date DESC | 
					
						
							|  |  |  |                                 </option> | 
					
						
							|  |  |  |                                 <option | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                                     value="5" {{ ($setting->sort_on === 5) ? 'selected' : '' }}> | 
					
						
							| 
									
										
										
										
											2022-10-04 14:35:46 +11:00
										 |  |  |                                     as_usd ASC | 
					
						
							|  |  |  |                                 </option> | 
					
						
							|  |  |  |                                 <option | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                                     value="6" {{ ($setting->sort_on === 6) ? 'selected' : '' }}> | 
					
						
							| 
									
										
										
										
											2022-10-04 14:35:46 +11:00
										 |  |  |                                     as_usd DESC | 
					
						
							|  |  |  |                                 </option> | 
					
						
							|  |  |  |                                 <option | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                                     value="7" {{ ($setting->sort_on === 7) ? 'selected' : '' }}> | 
					
						
							| 
									
										
										
										
											2022-10-04 14:35:46 +11:00
										 |  |  |                                     owned_since ASC | 
					
						
							|  |  |  |                                 </option> | 
					
						
							|  |  |  |                                 <option | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                                     value="8" {{ ($setting->sort_on === 8) ? 'selected' : '' }}> | 
					
						
							| 
									
										
										
										
											2022-10-04 14:35:46 +11:00
										 |  |  |                                     owned_since DESC | 
					
						
							|  |  |  |                                 </option> | 
					
						
							|  |  |  |                                 <option | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                                     value="9" {{ ($setting->sort_on === 9) ? 'selected' : '' }}> | 
					
						
							| 
									
										
										
										
											2022-10-04 14:35:46 +11:00
										 |  |  |                                     updated_at ASC | 
					
						
							|  |  |  |                                 </option> | 
					
						
							|  |  |  |                                 <option | 
					
						
							| 
									
										
										
										
											2022-10-31 14:49:47 +11:00
										 |  |  |                                     value="10" {{ ($setting->sort_on === 10) ? 'selected' : '' }}> | 
					
						
							| 
									
										
										
										
											2022-10-04 14:35:46 +11:00
										 |  |  |                                     updated_at DESC | 
					
						
							|  |  |  |                                 </option> | 
					
						
							|  |  |  |                             </select> | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2023-03-31 11:31:19 +11:00
										 |  |  |                 <div class="row mt-3"> | 
					
						
							|  |  |  |                     <div class="col-12 col-md-6 mb-3"> | 
					
						
							|  |  |  |                         <label class="form-label pe-2" for="chooseFile">Add custom favicon must be either .ico|.png|.jpg MAX 40KB</label> | 
					
						
							|  |  |  |                         <input type="file" name="favicon" class="form-control" id="favicon"> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |                 <div class="row"> | 
					
						
							|  |  |  |                     <div class="col-12 col-lg-4"> | 
					
						
							|  |  |  |                         <x-submit-button>Update settings</x-submit-button> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |             </form> | 
					
						
							|  |  |  |         </x-card> | 
					
						
							| 
									
										
										
										
											2022-10-20 15:33:50 +11:00
										 |  |  |         <x-details-footer></x-details-footer> | 
					
						
							| 
									
										
										
										
											2022-03-06 02:29:58 +11:00
										 |  |  |     </div> | 
					
						
							|  |  |  | </x-app-layout> |