> For the complete documentation index, see [llms.txt](https://docs.moxha.dev/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.moxha.dev/documentation/paid-scripts/motels/introduction/motel-manager.md).

# Motel Manager

About the worker and owner

## 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="https://2054689962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2jFzR30XlKSdobBggZNg%2Fuploads%2F6nukBKi0WBAhodpvhw25%2FScreenshot_5.png?alt=media&amp;token=56f26aa2-3504-4f60-8c42-e118ad03ec86" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2054689962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2jFzR30XlKSdobBggZNg%2Fuploads%2FAsRPYLBd5w64qmYQFX69%2FScreenshot_4.png?alt=media&amp;token=6f51c66c-54d0-444c-a0b6-d2b9535eb069" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2054689962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2jFzR30XlKSdobBggZNg%2Fuploads%2FuDcImkQcsUxGdfSqFJWz%2FScreenshot_3.png?alt=media&amp;token=16ab62f5-b130-44bf-9220-90ff35229cc1" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2054689962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2jFzR30XlKSdobBggZNg%2Fuploads%2FxGQ1ih6ZgRfdbE3navlg%2FScreenshot_7.png?alt=media&amp;token=15813ff8-bfc7-4b5a-8f70-c99be9671c69" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2054689962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2jFzR30XlKSdobBggZNg%2Fuploads%2FNJo48ruOanSXYNGPwKnV%2FScreenshot_8.png?alt=media&amp;token=90872544-b8dc-4382-a231-73febc0a7ea6" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2054689962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2jFzR30XlKSdobBggZNg%2Fuploads%2FyAGYFsURGKJj7OaKEGwV%2FScreenshot_9.png?alt=media&amp;token=a849516e-af84-42ad-a46b-128d9c3c28be" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2054689962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2jFzR30XlKSdobBggZNg%2Fuploads%2FkstbQxWi4tOInCAS8pzV%2FScreenshot_11.png?alt=media&amp;token=11db5952-548a-4793-8d8a-db9b7cf42572" alt=""><figcaption></figcaption></figure>
