UNIT | Driver Name | Past Due | Past Due Date |
---|---|---|---|
@if(empty($trucksLastMaintence)) N/A @else {{ $trucksLastMaintence->UNIT_ID }} @endif | {{ empty($trucksLastMaintence->NAME) ? 'N/A' : $trucksLastMaintence->NAME }} | {{ \Carbon\Carbon::parse($trucksLastMaintence->LAST_MAINTENANCE)->diffInDays(\Carbon\Carbon::now(),false) }} | {{ \Carbon\Carbon::parse($trucksLastMaintence->LAST_MAINTENANCE)->format('Y-m-d') }} |