Interesting Features - JeroCardona/IMEC GitHub Wiki
1. Search Bar
- Description: Users can search for specific products in the store by entering keywords in a search bar.
- Implementation:
- File:
resources/views/layouts/app.blade.php
- Line of Code: The search bar implementation starts at line
15
.
- Logic File:
app/Http/Controllers/ProductController.php
- Line of Code: The logic for the search begins in the
search
method at line 16
.
- Logic File:
app/Http/Controllers/ServiceController.php
- Line of Code: The logic for the search begins in the
search
method at line 16
.
2. Search Filter
- Description: Allows users to filter products by different categories, prices, or brands to refine search results.
- Implementation:
- File:
resources/views/product/index.blade.php
- Line of Code: The filter interface implementation starts at line
6
.
- File:
resources/views/service/index.blade.php
- Line of Code: The filter interface implementation starts at line
6
.
- Logic File:
app/Http/Controllers/ProductController.php
- Line of Code: The filter logic in the
filter
method starts at line 43
.
- Logic File:
app/Http/Controllers/ServiceController.php
- Line of Code: The filter logic in the
filter
method starts at line 34
.
3. Order Status
- Description: Users can view the status of their orders in their profile, with statuses like "In Process," "Shipped," and "Delivered."
- Implementation:
- File:
resources/views/myaccount/order_product.blade.php
- Line of Code: The code to display order status starts at line
23
.
- File:
resources/views/myaccount/order_service.blade.php
- Line of Code: The code to display order status starts at line
30
.
- Logic File:
app/Http/Models/OrderProduct.php
- Line of Code: The logic for handling order status is in the
getStatus
method, starting at line 117
.
- Logic File:
app/Http/Models/OrderService.php
- Line of Code: The logic for handling order status is in the
getStatus
method, starting at line 107
.
4. Top-Selling Products
- Description: Users can view a list of the top-selling products in the store on the homepage.
- Implementation:
- File:
resources/views/product/best_sellers.blade.php
- Line of Code: The "Top-Selling Products" section starts at line
4
.
- Logic File:
app/Http/Controllers/ProductController.php
- Line of Code: The
bestSellers
method that fetches top-selling products starts at line 62
.