> For the complete documentation index, see [llms.txt](https://leaestudio.gitbook.io/city-guide-document/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://leaestudio.gitbook.io/city-guide-document/admin-panel-guide.md).

# 5. Admin Site Guide

The City Guide Admin Site is an area which only the administrator​ can access. From here you can manage (delete, edit, create) places, categories, cities, manage users...

## Create a new country

To create a new country:

1. Go to the country page
2. Below the list of country. Click +**Add Country** button.
3. In the "**Add Country**" popup, choose from the following options:

* **Country Name:** Give the country a name.&#x20;
* **Currency Unit:** (Ex: AUD, USD. Default: USD)
* **Display Currency Unit:** (Ex: EUR, USD. Default: USD)
* **Display Currency Symbol:** (Ex: $. Default: $)

&#x20;  4\. After completing all the necessary fields, click on **Save Changes**.

![popup create a new country](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNjFwZgI_Ng_wL46y_D%2F-LNjG18MvaDTxyjBJvap%2FScreen%20Shot%202018-10-01%20at%205.54.03%20PM.png?alt=media\&token=16133d8c-e5ee-469c-a2fa-8c56fa65f28d)

## Create a new city

![list city in the app](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNmpf1hH28Cuu7ib4m-%2F-LNmqvJ_n7t78BvptdG4%2Fnew_city.jpg?alt=media\&token=a23df188-22ee-4c6f-ac3c-642371904f2a)

To create a new city:

1. Go to the city page.
2. Below the list of city. Click **Add City** button.
3. In the **New City** popup, choose from the following options:

* **City Name:** Give the city a name.&#x20;
* **City Intro:** Some of the text about the city.
* **Latitude, Longitude, Zoom Level:**&#x20;

  City latitude and longitude will look something like this:

  > `40.756076`\
  > `-73.990838`
  >
  > See how to get Latitude and Longitude from Google Maps [here](https://www.wikihow.com/Get-Latitude-and-Longitude-from-Google-Maps)
* **Image:** Give the city an image (recommend 750px - 420px)

&#x20;  4\. After completing all the necessary fields, click on **Save Changes**.

![popup create new city](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNmpf1hH28Cuu7ib4m-%2F-LNmrA9740wwDcmXky0V%2FScreen%20Shot%202018-10-02%20at%2010.39.57%20AM.png?alt=media\&token=b7d36971-bd62-45b5-9771-b0e64eff6958)

## Create a new category

![Category in the app](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNmuBHqLlrCRcUvtyZ5%2F-LNmvlMpKmyD746tpEiA%2FIMG_1942.PNG?alt=media\&token=71a319de-5655-4cdc-9560-95c696c3aa39)

To create a new category:

1. Go to the category page.
2. Below the list of category. Click **Add Category** butto&#x6E;**.**
3. In the **Add Category** popup, choose from the following options:

* **Category Name:** Give the category a name.&#x20;
* **Price Unit:** (Ex: Night, Person, Ticket)

&#x20;  4\. After completing all the necessary fields, click on **Save Changes.**

![popup create a new category](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNjI2tzJJmaPnvwj8MX%2F-LNjJGssNv_H7AYmVQr6%2FScreen%20Shot%202018-10-01%20at%206.08.31%20PM.png?alt=media\&token=64c34ccb-2e78-45ea-9d5a-80db0067b82e)

## Create a new Sub Category

To create a new Category:

1. Go to the sub category page.
2. In the **category** drop-down in the upper left. Select the category in which you want to create a sub category.&#x20;
3. Below the list of sub category. Click **Add Sub-Category.**&#x20;
4. In the "**Add Sub-Category**" popup, choose from the following options:

* **Sub - Category Name:** Give the sub category a name.&#x20;

&#x20;  4\. After completing all the necessary fields, click on "**Save Changes**".

![popup create a new sub category](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNjJZkIwSS-i3UKN-9l%2F-LNjKgFAhD4ycmSHv39R%2FScreen%20Shot%202018-10-01%20at%206.14.52%20PM.png?alt=media\&token=5a90b6fc-c62e-4b89-8866-dc9941eee3ab)

## Add category for the city&#x20;

![categories for the city in the app](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNmpf1hH28Cuu7ib4m-%2F-LNmqGIXVKDvgCZqJXbe%2Fcategory_for_city.jpg?alt=media\&token=4ccf6a2e-beb8-4f35-83f0-396c81bcdd58)

To add a category for the city:

1. Go to the city - category page.
2. In the **city** drop-down in the upper left. Select the city in which you want to add more category.&#x20;
3. Below the list of category. Click **Choose More Category.**
4. In the "**Choose More Category**" popup, check the category in which you want to add for the city. (Multiple Selects)
5. Click **Save Changes**.

![Popup choose more category ](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNjMNJ2pXwvjZOFxG4S%2F-LNjP6N72mzNceeM2Sgv%2FScreen%20Shot%202018-10-01%20at%206.34.07%20PM.png?alt=media\&token=3ce5e52b-8929-4358-9afa-a512918945ee)

## Create a new Place

![place detail in the app](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNmy6zXSp-Fb487in0H%2F-LNn1CbGRuGuFryPCl3o%2Fplace_detail.png?alt=media\&token=c844ff14-5d5d-4da8-b422-dd29c3ac788a)

To create a new Place:

1. Go to the place page.
2. In the upper right. Click **Add Place** button.
3. In the add place page, choose from the following options:

* **Select City:** Select the city in which you want to create a place.
* **Select Category:** Select the category in which you want to create a place (Multiple Selects).
* **Select Sub - Category:** Select the sub - category in which you want to create a place (Multiple Selects).
* **Place Name:** Input the name of place.
* **Longitude & Latitude:**&#x20;

  Place latitude and longitude will look something like this:

  > `40.756076`\
  > `-73.990838`
  >
  > See how to get Latitude and Longitude from Google Maps [here](https://www.wikihow.com/Get-Latitude-and-Longitude-from-Google-Maps)
* **From Price:**
* **To Price:**
* **Opening Time:** Input a open time of the place.
* **Opening Day:** Input a open day of the place.
* **Description:** Input a description of the place.
* **Address:** Input a address of the place.
* **Phone Number:** Input a phone number of the place.
* **Email:** Input a email of the place.
* **Website:** Input a website of the place.
* **Facebook:** Input a facebook of the place.
* **Images:** Input some images of the place.

&#x20;  4\. After completing all the necessary fields, click on "**Save Changes**".

## Create new hotel, hostel, homestay

![hotel detail](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNs2MxaLR2_CLvn877z%2F-LNs4F43S_yDst7d3N7W%2FHotel%20Detail.png?alt=media\&token=069a7b97-8a61-4bea-b20a-163f60a78127)

To create a new hotel:

1. Go to the place page.
2. In the upper right. Click **Add Place** button.
3. In the add place page, choose from the following options:

* **Select City:** Select the city in which you want to create a hotel.
* **Select Category:** Select the category in which you want to create a hotel (Multiple Selects).
* **Select Sub - Category:** Select the sub - category in which you want to create a hotel (Multiple Selects).
* **Hotel Name:** Input the name of the hotel.
* **Longitude & Latitude:**&#x20;

  Place latitude and longitude will look something like this:

  > `40.756076`\
  > `-73.990838`
  >
  > See how to get Latitude and Longitude from Google Maps [here](https://www.wikihow.com/Get-Latitude-and-Longitude-from-Google-Maps)
* **From Price:** Input a from price for the hotel
* **To Price:** Input a to price for the hotel.
* **Check-in Time:** Input a check in time of the hotel.
* **Check-out Time:** Input a check out time of the hotel.
* **Description:** Input a description of the hotel.
* **Address:** Input a address of the hotel.
* **Phone Number:** Input a phone number of the hotel.
* **Email:** Input a email of the hotel.
* **Website:** Input a website of the hotel.
* **Facebook:** Input a facebook of the hotel.
* **Free Facility:** Select some of free facility for hotel from droplist. To create a free facility for hotel, go to free facility page.
* **Images:** Input some images of the hotel.
* **booking.com link:** put a link of hotel on booking.com
* **hostelworld.com link:** put a link of hotel on hostelworld.com
* **airbnb.com link:** put a link of hotel on airbnb.com

&#x20;  4\. After completing all the necessary fields, click on "**Save Changes**".

![form for create a hotel](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNs2MxaLR2_CLvn877z%2F-LNs6m4n3kgJG_h5cSyy%2FScreen%20Shot%202018-10-03%20at%2011.10.37%20AM.png?alt=media\&token=7c0cead9-0488-4c78-846d-72473875eb0b)

## Create a new tour

![tour detail](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNs2MxaLR2_CLvn877z%2F-LNs88RMl6Kn_T4QGeiK%2FTour%20Detail.png?alt=media\&token=678246bc-3584-4bf5-83fb-b7e909bf6b0d)

To create a new tour:

1. Go to the place page.
2. In the upper right. Click **Add Place** button.
3. In the add place page, choose from the following options:

* **Select City:** Select the city in which you want to create a tour.
* **Select Category:** Select the category in which you want to create a tour (Multiple Selects).
* **Select Sub - Category:** Select the sub - category in which you want to create a tour (Multiple Selects).
* **Tour Name:** Input the name of the tour.
* **From Price:** Input a from price for the tour
* **To Price:** Input a to price for the tour.
* **Description:** Input a description of the tour.
* **Address:** Input a address of the tour company.
* **Phone Number:** Input a phone number of the tour company.
* **Email:** Input a email of the tour company.
* **Website:** Input a website of the tour company.
* **Facebook:** Input a facebook of the tour company.
* **Tour location:** ex: London
* **Tour duration:** ex: 5 hours
* **Tour gruop size:** ex 5- 8 people
* **Tour language:** ex: english, Vietnamese
* **Tour transportation:** ex: taxi, motorbike
* **Tour Booking Url:** put a link of tour to booking
* **Images:** Input some images of tour.

&#x20;  4\. After completing all the necessary fields, click on "**Save Changes**".

![form for create a tour](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNs2MxaLR2_CLvn877z%2F-LNsAQx1nPttmqei_9MR%2FScreen%20Shot%202018-10-03%20at%2011.26.34%20AM.png?alt=media\&token=6deb02f3-2450-4acf-ab22-8ce2da3b62c1)

## Sort the city list displayed

![the list of city in the app](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNml5MVslDu28yiergs%2F-LNmlsleMil5Kw-6Q0z-%2FIMG_3077.jpg?alt=media\&token=e605c7f8-28f1-490d-b53e-5b136243f992)

if you need to sort the list of city displayed:

1. Log in to the admin page.
2. Go to the city page.
3. Put a number for priority of city in witch you need to sort. If the priority number is the largest, the city will be displayed on top of the list.

![City priority](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNml5MVslDu28yiergs%2F-LNmnD7_xwKfeasiKd-e%2Fcity_priority.jpg?alt=media\&token=db2ca99a-d9db-4b30-8cd8-00912b37cc9b)

## Sort category on the tab of the city

![Category order on tab](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNmjtIhmR35Iz5yO2Ae%2F-LNmkQHw_N37qa3cQEnr%2Fcategory_tab_sort.jpg?alt=media\&token=62dbb0b2-1f96-462a-8345-9a83af31ae14)

if you need to sort category on the tab bar of the city:

1. Log in to the admin page.
2. Go to category page.
3. Put a number for priority of category in witch you need to sort. If the priority number is the largest, the category will be displayed on first of the tab.

![priority of category](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNmhuIsJ93NnEwd0Fls%2F-LNmiPlFVRJIs7BcoJOj%2Fpriority.jpg?alt=media\&token=e82bdf6f-3536-4f07-b68d-e0b4e0c3af4f)

## Set default category show on the city home

If you need set default category show on the city home.

![](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNml5MVslDu28yiergs%2F-LNmp4Dwg9UI9sfASeTC%2Fset_category_on_city.jpg?alt=media\&token=1c15286b-2ae0-428b-9309-9bb255f17693)

1. Go to the city - category page.
2. Put a number for order column of category in witch you need to show. If the priority number is the largest, the category will be displayed the city home.

&#x20;        *Note: The maximum number of categories for show on the city home is 2*

![](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNmpf1hH28Cuu7ib4m-%2F-LNmpjn9xS81HZr8QdZg%2Fcategory_onrder.jpg?alt=media\&token=2a9f856c-a1b5-4bad-a1af-efbd52fedbac)

## Sort place

![places in the category](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNn292Dylcnt3Ihib80%2F-LNn2rUqpAw3awJss3fr%2Fsort_place.jpg?alt=media\&token=bc3b9a20-21fe-4625-8732-adf4d870b23f)

if you need to sort places on the category:

1. Log in to the admin page.
2. Go to place page.
3. Put a number for priority of place in witch you need to sort. If the priority number is the largest, the place will be displayed on first in the category.

![place list](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNn292Dylcnt3Ihib80%2F-LNn39TshisTPeFedrvP%2FScreen%20Shot%202018-10-02%20at%2011.36.38%20AM.png?alt=media\&token=c569d78d-7308-4188-a683-11eda5403fe8)

## Create a new banner ad for City

![banner ad on city home in the app](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNmstxmjkY5eX_KGe-R%2F-LNmszdGG3Z1WXv8o_ID%2FIMG_3188.jpg?alt=media\&token=7cc5aaeb-d73a-442d-a078-6cb7a39af3da)

&#x20;To create a new banner ad for the city:

1. Go to the city page.
2. In the list of city. See the city in which you want to create a banner ad, click **Edit** button.
3. In the "**Edit City**" popup, choose from the following options:

* **Banner Ad Url:** Give the ad a link that you want to redirect
* **Banner Ad Image:** Give the ad an image (recommend 750px - 360px)

&#x20;  2\. After completing all the necessary fields, click on **Save Changes**.

![popup create a new banner ad](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNj-hHWQVuSFXbKlEJM%2F-LNj0kaMYxtEltmpnq7t%2FScreen%20Shot%202018-10-01%20at%204.38.37%20PM.png?alt=media\&token=3bb45725-7e21-4828-ab74-5d9f44dc5a9b)

## Create new admin manage

To create new admin manage&#x20;

1. Go to user page
2. Set user in witch you need to made admin in roles column.

![](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNs2MxaLR2_CLvn877z%2F-LNsI5GoXye4iJhcyQZj%2FScreen-Shot-2018-10-03-at-11.57.06-AM.jpg?alt=media\&token=3f257900-a28d-4b1a-bbf1-6026e1391742)

## Manage comment

To manage comment for place.

1. Go to comments page
2. Delete, Deactive, Add comment in there.

![comments table](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNs2MxaLR2_CLvn877z%2F-LNsKN_pOkX_vfJSqZq7%2FScreen%20Shot%202018-10-03%20at%2012.09.57%20PM.png?alt=media\&token=0b10f5ce-e73a-4d21-9b2e-06c369e0acf6)

## Get Latitude and Longitude from Google Maps&#x20;

1. **Search for an address or the place you want to locate** [**Google Maps**](https://www.google.com/maps/)**.** This will open a Google map. Depending on the specificity of your search, Google may drop a pin in the exact location for you, or else offer you options.

* For instance, if searching "Starbucks Seattle", a map will appear populated with several possible locations for you to choose from.
* If you don't have an exact address, zoom in or out on the map to locate your desired geographic location manually.

![](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNjwbi_NMWKAf4YdNZE%2F-LNjzFhNAJSzwPqTR8Li%2Faid1248331-v4-728px-Get-Latitude-and-Longitude-from-Google-Maps-Step-13.jpg?alt=media\&token=1ce0c32a-d5a6-4c7f-be0e-6a31214a8a1d)

**2. Drop a pin.** Click on the exact location you'd like coordinates for.

* Once a pin is dropped, the latitude and longitude will be a part of the URL in your address bar, but there's a even simpler way to get the information.

![](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNjwbi_NMWKAf4YdNZE%2F-LNjzVzFVTLlSzEPVfH6%2Faid1248331-v4-728px-Get-Latitude-and-Longitude-from-Google-Maps-Step-14.jpg?alt=media\&token=b9e74022-bf0e-4ffc-896e-910c8f463c61)

**3. Right-click on the pin and select "What's here?"**. To right-click on a Mac, hold down Ctrl as you click on the mouse. Instead of dropping a pin, you can also right-click on the map location directly.

![](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNjwbi_NMWKAf4YdNZE%2F-LNjzqIXoSrKF1lYgtfM%2Faid1248331-v4-728px-Get-Latitude-and-Longitude-from-Google-Maps-Step-15.jpg?alt=media\&token=ad0559ea-850f-4755-b960-b1dfeb3c03a5)

**4. Get your location's latitude and longitude.** The coordinates will be located in a rectangular box that appears on the bottom of your computer screen.

* The latitude coordinate is listed first in the coordinate pair.

![](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LNjwbi_NMWKAf4YdNZE%2F-LNk--un4cpDwoHO56Pk%2Faid1248331-v4-728px-Get-Latitude-and-Longitude-from-Google-Maps-Step-16.jpg?alt=media\&token=6ac63aab-61c2-4418-9af9-ee22a604810a)
