@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
|
Date Comparison: |
{{ $formatted_date }} |
{{ $formatted_previous_date }} |
|
|
@if($is_vendor)
Vendor |
@else
Brand |
@endif
Purchases |
Purchases |
Change Purchases |
@foreach($data as $el)
@php
$color_change_cost = $color_trends[$el->status_change_cost];
@endphp
@if($is_vendor)
{{ $el->brand_group_name }} |
@else
{{ $el->brand_name }} |
@endif
${{ $el->cost }} |
${{ $el->previous_cost }} |
({{ number_format($el->change_cost_percentage,2) }}%) ${{ number_format($el->change_cost,2) }}
|
@endforeach
Total |
${{ $meta['total_cost'] }} |
${{ $meta['total_previous_cost'] }} |
${{ $meta['total_change_cost'] }} |