@php $color_trends = [ 'up' => '#29a645', 'flat' => '#0055b9', 'down' => '#e81c0d' ]; @endphp Vendor Ranking Report
Vendor Ranking 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_quantity = $color_trends[$el->status_change_quantity]; $color_change_price = $color_trends[$el->status_change_price]; $color_change_profit_margin = $color_trends[$el->status_change_profit_margin]; @endphp @if($is_vendor) @else @endif @endforeach
Date Comparison: {{ $formatted_date }} {{ $formatted_previous_date }}  
 
VendorBrandSales Qty Profit Profit Margin Sales Qty Profit Profit Margin Change Sales Change Qty Change Profit Change Profit Margin
{{ $el->brand_group_name }}{{ $el->brand_name }}${{ $el->price }} {{ $el->quantity }} ${{ $el->profit_margin }} {{ $el->profit_margin_percentage }}% ${{ $el->previous_price }} {{ $el->previous_quantity }} ${{ $el->previous_profit_margin }} {{ $el->previous_profit_margin_percentage }}% ${{ $el->change_price }} {{ $el->change_quantity }} ${{ $el->change_profit_margin }} {{ $el->change_profit_margin_percentage }}%
Total ${{ $meta['total_price'] }} {{ $meta['total_quantity'] }} ${{ $meta['total_profit_margin'] }} {{ $meta['total_profit_margin_percentage'] }}% ${{ $meta['total_previous_price'] }} {{ $meta['total_previous_quantity'] }} ${{ $meta['total_previous_profit_margin'] }} {{ $meta['total_previous_profit_margin_percentage'] }}% ${{ $meta['total_change_price'] }} {{ $meta['total_change_quantity'] }} ${{ $meta['total_change_profit_margin'] }} {{ $meta['total_change_profit_margin_percentage'] }}%