Changelog: Dedek - 2026-06-25
Daily Changelog - Waste Vantage Legacy
Overview
Today's changes by Dedek focus on enhancing the Inquiry-to-Lead conversion flow by capturing detailed lead classification types and address details. Dedek implemented database modifications to support these fields in leads, upgraded the frontend modal views to allow editing during conversion, and documented mobile API endpoints.
Added
- Leads Migrations (
database/migrations/)- Added
2026_06_25_103302_add_type_to_leads_table.phpto introduce thetypecolumn to theleadstable. - Added
2026_06_25_103756_add_address_fields_to_leads_table.phpto introducestreet_number,unit_lot,street_name,suburb,state, andcountryto theleadstable.
- Added
- API Documentation (
mobile_prestart_api_docs.md)- Added a comprehensive documentation file for mobile prestart API checklist endpoints, vehicles, and tasks.
Changed
- Inquiry Controller Refactoring (
app/Http/Controllers/Admin/InquiryController.php)- Added strong parameter and return types to methods (
show,destroy,deactivate,convertToLead). - Added user ID logging to backend exception
catchlogs to track which operator triggered an error. - Upgraded
convertToLeadto validate name, email, type, and address properties from the request before creating the new Lead with all newly added properties. - Updated the Inquiry status target value to
'converted_lead'upon successful conversion.
- Added strong parameter and return types to methods (
- Lead Model Config (
app/Lead.php)- Added
type,street_number,unit_lot,street_name,suburb,state, andcountryto the$fillablearray.
- Added
- AutoHelper Additions (
app/Helpers/AutoHelper.php)- Added
leadTypeshelper returning standard lead classifications (Cold, Warm, Hot). - Added
getStateByPostcodeto resolve the grandparent ServiceArea state name from a postcode.
- Added
- Inquiry Views & Modal conversion (
resources/views/admin/inquiries/index.blade.php,resources/views/admin/inquiries/show.blade.php)- Replaced the simple SweetAlert confirmation with a Bootstrap 4 Modal (
#convertToLeadModal). - Allows full form inputs for Name, Email, Phone, Website, Postcode, Unit/Lot, Street Number, Street Name, Suburb, State, Country, Lead Type, Waste Type, Bin Size, and Notes prior to converting.
- Replaced the simple SweetAlert confirmation with a Bootstrap 4 Modal (
Fixed
- None.
Removed
- None.