# Motel Manager

## Owner / Worker

> ### Owner

* Can get worker.
* Can choose how much salary the worker will receive.
* Can set the worker's permissions.
* Can send message to worker.
* Can give bonus to worker.
* Can update the worker's salary.
* Can fire the worker.

> ### Worker

* Can reject the motel owner's offer.

> ### Both Of Them

{% hint style="warning" %}

### If the worker doesn't have permission can't do these

{% endhint %}

* Of course the owner must pay the worker.
* Can access all rooms. \[configurable]
* Can view last transactions.
* Can set the rent cycle. Example 4 day.
* Can rent rooms to all customers at any price.
* Can deposit / withdraw money in the storage.&#x20;
* Can see the customer's remaining time in real time.
* Can kick the customer. \[if he/she does this. The customer doesn't have to pay the rent].
* Can change the customer's room.
* Can create a new key for the customer.
* Can send message to customer.

> ### Permissions

* [x] Kick the person
* [x] Change room
* [x] Create a new key \[just for metadata]
* [x] Room rent
* [x] View customer requests
* [x] Withdraw
* [x] Deposit
* [x] Change motel status \[suspended or active]

> ### Transactions

* [x] When customer rent a room
* [x] When customer leave room
* [x] When a new worker join the motel
* [x] When someone withdraw money
* [x] When someone deposit money
* [x] When customer pay rent

{% hint style="info" %}
Dashboard
{% endhint %}

<figure><img src="/files/2bvHu1usr6HTPS5e9jPo" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Worker Management
{% endhint %}

<figure><img src="/files/dcpKKSjiHI2MkVL7iOE1" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Customer Management
{% endhint %}

<figure><img src="/files/k2L7oyS1TJpPEBGGmJMa" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Rent A Room For The Customer
{% endhint %}

<figure><img src="/files/htHwlwAeMEL7m0NCdemS" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Take Worker
{% endhint %}

<figure><img src="/files/MWIVsASl5GeJTbIjR2dh" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Storage
{% endhint %}

<figure><img src="/files/YcljJyQnc1qJjHFV4Mdf" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Customer's Request Management
{% endhint %}

<figure><img src="/files/uvQzOZeyCfTpCD6Ja0cI" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.moxha.dev/documentation/paid-scripts/motels/introduction/motel-manager.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
