-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #722 from J-B-Mugundh/rbac-profile
Added End-to-End integration of rental, lease and sales products page
- Loading branch information
Showing
4 changed files
with
295 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 78 additions & 10 deletions
88
frontend/src/AgroRentAI/components/AgriProductListing.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,212 @@ | ||
[ | ||
{ | ||
"_id": 1, | ||
"productName": "John Deere Tractor", | ||
"productType": "Equipment", | ||
"description": "High-performance tractor suitable for all terrains.", | ||
"price": 500, | ||
"priceType": "Rent", | ||
"availability": { | ||
"startDate": "2023-10-01", | ||
"endDate": "2023-12-01" | ||
}, | ||
"location": { | ||
"city": "Nashik", | ||
"state": "Maharashtra" | ||
}, | ||
"contactDetails": { | ||
"phone": "123-456-7890", | ||
"email": "[email protected]" | ||
}, | ||
"condition": "New", | ||
"imageUrl": "https://www.deere.co.in/assets/images/region-1/products/tractors/john-deere-d-series-tractor.jpg", | ||
"isAvailable": true | ||
}, | ||
{ | ||
"_id": 2, | ||
"productName": "Mahindra Plough", | ||
"productType": "Equipment", | ||
"description": "Efficient plough for soil preparation and land management.", | ||
"price": 300, | ||
"priceType": "Lease", | ||
"availability": { | ||
"startDate": "2023-11-01", | ||
"endDate": "2024-01-15" | ||
}, | ||
"location": { | ||
"city": "Indore", | ||
"state": "Madhya Pradesh" | ||
}, | ||
"contactDetails": { | ||
"phone": "789-456-1230", | ||
"email": "[email protected]" | ||
}, | ||
"condition": "Used", | ||
"imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTrQ1Xyp7qhuSZzHikEi6I1BH3W7Ig5Bi4XhA&s", | ||
"isAvailable": true | ||
}, | ||
{ | ||
"_id": 3, | ||
"productName": "Organic Wheat Seeds", | ||
"productType": "Seeds", | ||
"description": "High-quality organic wheat seeds suitable for all seasons.", | ||
"price": 80, | ||
"priceType": "Sell", | ||
"location": { | ||
"city": "Kanpur", | ||
"state": "Uttar Pradesh" | ||
}, | ||
"contactDetails": { | ||
"phone": "234-567-8901", | ||
"email": "[email protected]" | ||
}, | ||
"condition": "New", | ||
"imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ9u3GS6ZBautjOTdq_GGsjefpuuhWHeQOIxw&s", | ||
"isAvailable": true | ||
}, | ||
{ | ||
"_id": 4, | ||
"productName": "Fertilizer Pack", | ||
"productType": "Fertilizers", | ||
"description": "Nutrient-rich fertilizer pack for soil enhancement.", | ||
"price": 50, | ||
"priceType": "Buy", | ||
"location": { | ||
"city": "Pune", | ||
"state": "Maharashtra" | ||
}, | ||
"contactDetails": { | ||
"phone": "345-678-9012", | ||
"email": "[email protected]" | ||
}, | ||
"condition": "New", | ||
"imageUrl": "https://hips.hearstapps.com/hmg-prod/images/farmer-giving-granulated-fertilizer-to-young-tomato-royalty-free-image-1676657512.jpg", | ||
"isAvailable": true | ||
}, | ||
{ | ||
"_id": 5, | ||
"productName": "Agricultural Land", | ||
"productType": "Land", | ||
"description": "Fertile agricultural land available for lease.", | ||
"price": 1000, | ||
"priceType": "Lease", | ||
"availability": { | ||
"startDate": "2023-10-15", | ||
"endDate": "2024-03-01" | ||
}, | ||
"location": { | ||
"city": "Hyderabad", | ||
"state": "Telangana" | ||
}, | ||
"contactDetails": { | ||
"phone": "456-789-0123", | ||
"email": "[email protected]" | ||
}, | ||
"condition": "N/A", | ||
"imageUrl": "https://img.etimg.com/thumb/width-1200,height-900,imgsize-275796,resizemode-75,msid-91981175/news/economy/agriculture/indian-institute-of-management-ahmedabad-launches-agri-land-price-index.jpg", | ||
"isAvailable": false | ||
}, | ||
{ | ||
"_id": 6, | ||
"productName": "Greenhouse", | ||
"productType": "Equipment", | ||
"description": "Greenhouse equipment for plant protection and growth.", | ||
"price": 1500, | ||
"priceType": "Rent", | ||
"availability": { | ||
"startDate": "2023-09-01", | ||
"endDate": "2024-05-01" | ||
}, | ||
"location": { | ||
"city": "Bangalore", | ||
"state": "Karnataka" | ||
}, | ||
"contactDetails": { | ||
"phone": "567-890-1234", | ||
"email": "[email protected]" | ||
}, | ||
"condition": "Used", | ||
"imageUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Botanical_Garden_V.L._Komarov_Botanical_Institute.jpg/640px-Botanical_Garden_V.L._Komarov_Botanical_Institute.jpg", | ||
"isAvailable": true | ||
}, | ||
{ | ||
"_id": 7, | ||
"productName": "Irrigation Pipes", | ||
"productType": "Equipment", | ||
"description": "Durable irrigation pipes for water distribution.", | ||
"price": 200, | ||
"priceType": "Sell", | ||
"location": { | ||
"city": "Ahmedabad", | ||
"state": "Gujarat" | ||
}, | ||
"contactDetails": { | ||
"phone": "678-901-2345", | ||
"email": "[email protected]" | ||
}, | ||
"condition": "New", | ||
"imageUrl": "https://internationalpipe.com/wp-content/uploads/2023/05/Unravel-the-Mysteries-of-Sprinkler-Irrigation-Pipe-Systems.jpg", | ||
"isAvailable": true | ||
}, | ||
{ | ||
"_id": 8, | ||
"productName": "Compost Maker", | ||
"productType": "Equipment", | ||
"description": "Compact compost maker for organic waste management.", | ||
"price": 250, | ||
"priceType": "Sell", | ||
"location": { | ||
"city": "Jaipur", | ||
"state": "Rajasthan" | ||
}, | ||
"contactDetails": { | ||
"phone": "789-012-3456", | ||
"email": "[email protected]" | ||
}, | ||
"condition": "New", | ||
"imageUrl": "https://static.wixstatic.com/media/86eefd_fba4ab1002194862badb92e3cc8778b9~mv2.jpg/v1/fill/w_480,h_356,al_c,q_80,usm_0.66_1.00_0.01,enc_auto/86eefd_fba4ab1002194862badb92e3cc8778b9~mv2.jpg", | ||
"isAvailable": false | ||
}, | ||
{ | ||
"_id": 9, | ||
"productName": "Organic Rice Seeds", | ||
"productType": "Seeds", | ||
"description": "Organic rice seeds, ideal for paddy fields.", | ||
"price": 90, | ||
"priceType": "Sell", | ||
"location": { | ||
"city": "Guwahati", | ||
"state": "Assam" | ||
}, | ||
"contactDetails": { | ||
"phone": "890-123-4567", | ||
"email": "[email protected]" | ||
}, | ||
"condition": "New", | ||
"imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ9u3GS6ZBautjOTdq_GGsjefpuuhWHeQOIxw&s", | ||
"isAvailable": true | ||
}, | ||
{ | ||
"_id": 10, | ||
"productName": "Sprinkler System", | ||
"productType": "Equipment", | ||
"description": "Automatic sprinkler system for efficient irrigation.", | ||
"price": 400, | ||
"priceType": "Rent", | ||
"availability": { | ||
"startDate": "2023-11-10", | ||
"endDate": "2024-04-10" | ||
}, | ||
"location": { | ||
"city": "Chandigarh", | ||
"state": "Punjab" | ||
}, | ||
"contactDetails": { | ||
"phone": "901-234-5678", | ||
"email": "[email protected]" | ||
}, | ||
"condition": "Used", | ||
"imageUrl": "https://internationalpipe.com/wp-content/uploads/2023/05/Unravel-the-Mysteries-of-Sprinkler-Irrigation-Pipe-Systems.jpg", | ||
"isAvailable": true | ||
} | ||
] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.