Customers Page
URL: <base-url>/backend/hrc#/customers
Directory: VaahCms/Modules/HRC/Vue/pages/customers
Controller: VaahCms/Modules/HRC/Http/Controllers/Backend/CustomersController.php
Model: VaahCms/Modules/HRC/Models/EqCustomer.php
Store: VaahCms/Modules/HRC/Vue/store/modules/store-customers.jsDescription
The page is designed to offer an intuitive user experience (UX) for administrators to create and manage customers ofEquetronic. It includes a dashboard where admins easily search, filter and review the details of the customer and
also provide options for admins to update and delete customer records, streamlining the customer management process.

Purpose
The page provides CRUD functionality for the eq_customer_roles table. Here the main list gives paginated list of customers
fetched from the database and also provides options to filter the list.
How it works
This page has the following major components
| Component | Description |
|---|---|
List.vue | The main component of the page that displays a paginated list of items fetched via ajax call. It includes search filters and calls ListLargeView component from partials folder when the list is in full width and ListSmallView when width is half. |
View.vue | The component that displays the details of the selected item. |
Create.vue | The component that contains the form for creation request. |
Edit.vue | The component that contains the form for update request. |
Assumptions
- The HRC module is Activated and all migrations and seeds have been run.
- The ajax requests are functioning correctly. Including the initial assets request
Acceptance Criteria
- The list components top left should have heading "Customer Roles" with the no of items mentioned in brackets.
- The list component's should have "create" button
- The Filters should work in real time
- Each item in the list should have view and edit action buttons
- The Create and edit form should have labels and placeholder.
- All dropdowns and select boxes must work
- A confirmation prompt should come up any time a delete or a trash action is performed.
Table of Contents