Skip to main content

Changelog: Aryan - 2026-06-08

Daily Changelog - Waste Vantage Legacy

Overview

Today's changes by Aryan focus on optimizing permission controls, driver assignments, and standardizing date formats across models. Key updates include auto-assignment of drivers for empty order rentals, auto-displaying runsheets for single-driver setups, tightening permissions on skip-bin visibility/actions, and standardizing date column casting on Eloquent models.


Added

  • Auto-Assignment of Driver on Empty Rental (app/Repositories/OrderRentalRepository.php)
    • Integrated driver auto-assignment via TaskRepository::autoAssignTask() when creating empty rental order records.
  • Auto-Show Runsheet for Single Driver (resources/js/components/runsheets/Assign2.vue)
    • Added front-end logic to auto-open/expand the first task runsheet when there is only one driver active in the runsheet workspace.

Changed

  • Standardized Eloquent Date Casting (Multiple Model Files)
    • Updated 10 models to explicitly cast date columns to 'date:Y-m-d' format, solving drift/serialization format mismatch issues:
      • app/Customer.php (grace_period_at)
      • app/CustomerStatement.php (start_statement, end_statement)
      • app/Disposal.php (due_date)
      • app/NonDelivery.php (date)
      • app/OrderInvoice.php (start_billing_date, end_billing_date, invoice_date, due_date)
      • app/OrderInvoiceDetail.php (date)
      • app/RunsheetGroup.php (last_date_task, start_date_task)
      • app/RunsheetRental.php (date)
      • app/StockDate.php (date)
      • app/UserCreditLimit.php (billing_cycle_start_date)

Fixed

  • Access Control for Disabled Skip Bin Orders (app/Http/Controllers/OrderController.php)
    • Fixed behavior to correctly abort requests with a 403 Forbidden response instead of redirecting when skip-bin orders are disabled for the partner.
  • Skip Bin Visibility in Setup (resources/views/admin/...)
    • Hid skip-bin buttons on contract and order-creation views:
      • resources/views/admin/front-bins/create-new.blade.php
      • resources/views/admin/rental-bins/create-new.blade.php
      • resources/views/admin/rental-bins/create.blade.php
      • resources/views/admin/trash-bags/create-new.blade.php
      • resources/views/admin/wheel-bins/create-new.blade.php
  • Marketing Permission and Menus (app/Http/Controllers/Admin/LeadController.php, resources/views/layouts/_admin.blade.php)
    • Standardized marketing menu permission checks and link visibility.
  • Skip Bin Permission Validation (app/Http/Controllers/Admin/OrderController.php, app/Http/Controllers/Admin/OrderSkipBinController.php, navigation templates)
    • Hardened access control logic and updated permission guards for skip-bin management operations.
  • Admin Dashboard UI Layout (resources/views/admin/index.blade.php)
    • Cleaned up redundant bootstrap row wrappers on the dashboard page.

Removed

  • None.