2023-09-25 10:49:55 +00:00
< div >
2023-12-07 18:06:32 +00:00
< form wire : submit = 'submit' >
2023-09-25 10:49:55 +00:00
< div class = " flex items-center gap-2 pb-4 " >
@ if ( $database -> human_name )
< h2 > {{ Str :: headline ( $database -> human_name ) }} </ h2 >
@ else
< h2 > {{ Str :: headline ( $database -> name ) }} </ h2 >
@ endif
2025-08-26 08:27:31 +00:00
< x - forms . button canGate = " update " : canResource = " $database " type = " submit " > Save </ x - forms . button >
@ can ( 'update' , $database )
< x - modal - confirmation wire : click = " convertToApplication " title = " Convert to Application "
buttonTitle = " Convert to Application " submitAction = " convertToApplication " : actions = " ['The selected resource will be converted to an application.'] "
confirmationText = " { { Str::headline( $database->name ) }} "
confirmationLabel = " Please confirm the execution of the actions by entering the Service Database Name below "
shortConfirmationLabel = " Service Database Name " />
@ endcan
@ can ( 'delete' , $database )
< x - modal - confirmation title = " Confirm Service Database Deletion? " buttonTitle = " Delete " isErrorButton
submitAction = " delete " : actions = " ['The selected service database container will be stopped and permanently deleted.'] " confirmationText = " { { Str::headline( $database->name ) }} "
confirmationLabel = " Please confirm the execution of the actions by entering the Service Database Name below "
shortConfirmationLabel = " Service Database Name " />
@ endcan
2023-09-25 10:49:55 +00:00
</ div >
2023-09-25 15:51:04 +00:00
< div class = " flex flex-col gap-2 " >
< div class = " flex gap-2 " >
2025-08-26 08:27:31 +00:00
< x - forms . input canGate = " update " : canResource = " $database " label = " Name " id = " database.human_name " placeholder = " Name " ></ x - forms . input >
< x - forms . input canGate = " update " : canResource = " $database " label = " Description " id = " database.description " ></ x - forms . input >
< x - forms . input canGate = " update " : canResource = " $database " required
2024-03-25 09:41:44 +00:00
helper = " You can change the image you would like to deploy.<br><br><span class='dark:text-warning'>WARNING. You could corrupt your data. Only do it if you know what you are doing.</span> "
2025-04-30 14:43:48 +00:00
label = " Image " id = " database.image " ></ x - forms . input >
2023-09-25 15:51:04 +00:00
</ div >
2023-11-09 13:59:38 +00:00
< div class = " flex items-end gap-2 " >
2025-08-26 08:27:31 +00:00
< x - forms . input canGate = " update " : canResource = " $database " placeholder = " 5432 " disabled = " { { $database->is_public }} " id = " database.public_port "
2023-11-09 13:59:38 +00:00
label = " Public Port " />
2025-08-26 08:27:31 +00:00
< x - forms . checkbox canGate = " update " : canResource = " $database " instantSave id = " database.is_public " label = " Make it publicly available " />
2023-09-25 15:51:04 +00:00
</ div >
2024-03-25 11:13:43 +00:00
@ if ( $db_url_public )
2024-03-25 11:36:04 +00:00
< x - forms . input label = " Database IP:PORT (public) "
2024-03-25 11:13:43 +00:00
helper = " Your credentials are available in your environment variables. " type = " password " readonly
wire : model = " db_url_public " />
@ endif
2023-09-25 10:49:55 +00:00
</ div >
2023-09-25 13:48:43 +00:00
< h3 class = " pt-2 " > Advanced </ h3 >
2024-03-21 11:44:32 +00:00
< div class = " w-96 " >
2025-08-26 08:27:31 +00:00
< x - forms . checkbox canGate = " update " : canResource = " $database " instantSave = " instantSaveExclude " label = " Exclude from service status "
2023-09-25 13:48:43 +00:00
helper = " If you do not need to monitor this resource, enable. Useful if this service is optional. "
2023-09-26 12:45:52 +00:00
id = " database.exclude_from_status " ></ x - forms . checkbox >
2025-08-26 08:27:31 +00:00
< x - forms . checkbox canGate = " update " : canResource = " $database " helper = " Drain logs to your configured log drain endpoint in your Server settings. "
2024-03-21 11:44:32 +00:00
instantSave = " instantSaveLogDrain " id = " database.is_log_drain_enabled " label = " Drain Logs " />
2023-09-25 13:48:43 +00:00
</ div >
2023-09-25 10:49:55 +00:00
</ form >
</ div >