You can access the Vehicle Fares page by expanding the 'Fares' dropdown under the 'Administration' section in the left sidebar and clicking on 'Vehicles'. This page allows administrators to manage transport charges for vehicles and passengers between ports. Here, you can view, add, update, and manage the status of vehicle fare records.

1. Add Fare
To add a new vehicle fare, click the"Add Fare" button. This will open a modal where you can enter the new fare's details, including:
- Vehicle: The type of vehicle (e.g., 40 ft, 9 Tonne, 12 Wheeler).
- Client Name: The name of the client associated with the vehicle fare (optional).
- Origin Port: Select the starting port for the fare.
- Destination Port: Select the arrival port for the fare.
- Vehicle Length (m): The length of the vehicle in meters.
- Oneway Fare: The one-way fare for the vehicle.
- Return Fare: The return fare for the vehicle.
- Weight (Tonne): The weight of the vehicle in tonnes.
Click "Add" within the modal to save the new record.
2. Vehicle Fares Table
The main section of the page displays a table listing all existing vehicle fares with the following columns:
- Client: The name of the client.
- Vehicle: The type of vehicle.
- Origin Port: The starting port for the fare.
- Destination Port: The arrival port for the fare.
- Vehicle Length: The length of the vehicle.
- Oneway Fare: The one-way fare for the vehicle.
- Return Fare: The return fare for the vehicle.
- Weight: The weight of the vehicle.
- Created By: The user who created the fare record.
- Status: Indicates whether the fare is `Active` (green) or `Inactive` (red).
Badge: bg-green
for Active,bg-red
for Inactive. - Actions: Contains icons for performing actions on the fare record:
(Edit icon): Click to edit the fare's details. This opens an "Edit Vehicle Fare" modal.
(Delete icon): Click to delete the fare. This opens a "Delete Vehicle Fare" modal.
(Restore icon): Click to restore an inactive fare.
The table also includes pagination controls (e.g., "10 entries per page") and a search bar to filter fare records.