@extends('layouts.master') @section('content')
Name: {{$vendor->NAME}} | Address: {{$vendor->ADDRESS_1}} | Address 2: {{$vendor->ADDRESS_2}} |
City: {{$vendor->CITY}} | State: {{$vendor->PROVINCE}} | Zip: {{$vendor->POSTAL_CODE}} |
Month | @for ($month = 1; $month <= 12; $month++){{ \Carbon\Carbon::createFromDate(2024, $month, 1)->format('M-Y') }} | @endfor
REPAIR TYPE | @for ($month = 1; $month <= 12; $month++)@endfor |
{{ $repairType->NAME }} | @for ($month = 1; $month <= 12; $month++) @php $key = sprintf('%02d-%d', $month, 2024); // Adjust year if necessary $amount = $repairAmounts[$repairType->NAME][$key] ?? ''; @endphp@if(!empty($amount)) ${{ number_format($amount,2) }} @endif | @endfor
EXPENSE TYPE | @for ($month = 1; $month <= 12; $month++)@endfor |
{{ $expenseType->NAME }} | @for ($month = 1; $month <= 12; $month++) @php $key = sprintf('%02d-%d', $month, 2024); // Adjust year if necessary $amount = $expenseAmounts[$expenseType->NAME][$key] ?? ''; @endphp@if(!empty($amount)) ${{ number_format($amount,2) }} @endif | @endfor
TOTAL MONTHLY COST | @for ($month = 1; $month <= 12; $month++)${{ number_format($monthlyTotals[$month], 2) }} | @endfor
Date | Description | Odometer | Service Provider | Mechanic | Part | Next Service Due | Material Cost | Labor Cost | Warranty | Total Cost |
---|---|---|---|---|---|---|---|---|---|---|
{{ date('m/d/Y',strtotime($item->date))}} | {{$item->description}} | {{$item->odometer}} | @foreach($serviceCode as $key => $serviceCodes) @if(in_array($serviceCodes->SERVICEID, $arr)) {{$serviceCodes->Description}} @endif @endforeach {{$item->service_provider}} | {{$item->vendorname}} | {{$item->part}} | {{$item->labor}} | ${{number_format($total, 2)}} | |||
Total | ${{number_format($totalSum, 2)}} |