@php $color_trends = [ 'up' => '#29a645', 'flat' => '#0055b9', 'down' => '#e81c0d' ]; @endphp Vendor Purchase Report
Vendor Purchase Report
{{ $company->name }}
Report Type: By {{ $is_vendor ? 'Vendor' : 'Brand' }} @if($condition_name) | Condition: {{ $condition_name }} @endif
@if($is_vendor) @else @endif @foreach($data as $el) @php $color_change_cost = $color_trends[$el->status_change_cost]; @endphp @if($is_vendor) @else @endif @endforeach
Date Comparison: {{ $formatted_date }} {{ $formatted_previous_date }}  
 
VendorBrandPurchases Purchases Change Purchases
{{ $el->brand_group_name }}{{ $el->brand_name }}${{ $el->cost }} ${{ $el->previous_cost }} ({{ number_format($el->change_cost_percentage,2) }}%) ${{ number_format($el->change_cost,2) }}
Total ${{ $meta['total_cost'] }} ${{ $meta['total_previous_cost'] }} ${{ $meta['total_change_cost'] }}