RegistrationStatusScreen

fun RegistrationStatusScreen(navController: NavController, controllers: AppControllers, campsiteId: String, fromDate: LocalDate, endDate: LocalDate, numPeople: Int)

Displays the campsite registration status and lottery entry options.

Shows the selected reservation details and allows users to join an available lottery. Checks whether registration is open and whether the lottery is full.

Successful entries navigate to the lottery confirmation screen, while failed entries display an error message.

Parameters

navController

The NavController used for navigation.

controllers

The AppControllers used to access campsite, lottery, and user information.

campsiteId

The ID of the selected campsite.

fromDate

The reservation start date.

endDate

The reservation end date.

numPeople

The number of guests included in the entry.