Skip to main content

Changelog: Aryan - 2026-06-09

Daily Changelog - Waste Vantage Legacy

Overview

Today's changes by Aryan focus on cleanups and feature enhancements in Contract wizard screens, including relocating the date configuration fields to improve user experience, swapping out legacy HTML dropdown selects with Vue Multiselect, and refactoring queries to remove hardcoded user role IDs.


Added

  • Empty State Validation Helpers (resources/js/components/contracts/ContractCustomerLookup.vue)
    • Added computed properties customerDetailIsEmpty and billingDetailIsEmpty to check whether customer/billing information is completely empty to dynamically switch view modes and placeholder overlays.

Changed

  • Contract Date Configuration Placement (resources/js/components/contracts/...)
    • Relocated the Contract Date Bar section (start date flatpickr, duration dropdown, calculation of end date, and validation logic) from ContractBinServices.vue to ContractDetails.vue.
    • Updated ContractCreate.vue to pass the periodes prop to the ContractDetails component rather than ContractBinServices.
  • Vue Multiselect Integration for Schedule (resources/js/components/contracts/ServicePricingForm.vue)
    • Replaced standard HTML <select> with <multiselect> for recurring schedule selection (runsheet groups) and moved the selection logic from watchers to the @input="handleRunsheetChange" method.

Fixed

  • Dynamic Role Queries (app/Http/Controllers/Admin/...)
    • Replaced hardcoded role IDs (7 and 8 for Sales and Account Managers) with dynamic Eloquent query scopes searching role names using whereHas('role') in:
      • app/Http/Controllers/Admin/FrontBins/FrontBinController.php
      • app/Http/Controllers/Admin/RentalBins/RentalBinsController.php
      • app/Http/Controllers/Admin/TrashBags/TrashBagController.php
      • app/Http/Controllers/Admin/WheelBins/WheelBinController.php
  • Route Parameter Correction (resources/views/admin/inventory-item/create.blade.php)
    • Fixed the back-to-list route parameter name from service to supplier.

Removed

  • None.