You can access the City to City Fares page by expanding the 'Fares' dropdown under the 'Administration' section in the left sidebar and clicking on 'City to City'. This page allows administrators to manage fare rates for passenger travel between different cities via buses. Here, you can view, add, update, and delete city fare records.

1. Add New Fare
To add a new city fare, click the "Add New Fare" button. This will open a modal where you can enter the new fare's details, including:
- Origin City: Select the starting city for the fare.
- Destination City: Select the arrival city for the fare.
- Oneway Fares:
- Adult Fare Oneway: The one-way fare for an adult.
- Student Fare Oneway: The one-way fare for a student.
- Child Fare Oneway: The one-way fare for a child.
- Infant Fare Oneway: The one-way fare for an infant.
- Return Fares:
- Adult Fare Return: The return fare for an adult.
- Student Fare Return: The return fare for a student.
- Child Fare Return: The return fare for a child.
- Infant Fare Return: The return fare for an infant.
Click "Create" within the modal to save the new record.
2. City Fares Table
The main section of the page displays a table listing all existing city fares with the following columns:
- Origin City: The starting city for the fare.
- Destination City: The arrival city for the fare.
- Fares: Displays both one-way and return fares for different passenger types (Adult, Student, Child, Infant).
- Oneway: Shows fares with a
icon.
- Return: Shows fares with a
icon.
- Each fare type is displayed with an icon (e.g.,
for Adult,
for Student,
for Child,
for Infant) and its respective price.
- Created By: The user who created the fare record:
- Status: Indicates whether the fare is `Active` or disabled.
Badge: bg-success
(green) for Active. (Edit icon): Click to edit the fare's details. This opens an "Edit City Fare" modal.
(Delete icon): Click to delete the fare. This opens a "Delete Fare" confirmation modal.
The table also includes pagination controls (e.g., "10 entries per page") and a search bar to filter fare records.