@php $color_trends = [ 'up' => '#29a645', 'flat' => '#0055b9', 'down' => '#e81c0d' ]; @endphp @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 }}${{ number_format($el->price,2) }} {{ number_format($el->quantity) }} ${{ number_format($el->profit_margin,2) }} {{ $el->profit_margin_percentage }}% ${{ number_format($el->previous_price,2) }} {{ number_format($el->previous_quantity) }} ${{ number_format($el->previous_profit_margin,2) }} {{ $el->previous_profit_margin_percentage }}% trending_{{$el->status_change_price}} ${{ number_format($el->change_price,2) }} trending_{{$el->status_change_quantity}} {{ number_format($el->change_quantity) }} trending_{{$el->status_change_profit_margin}} ${{ number_format($el->change_profit_margin,2) }} {{ $el->change_profit_margin_percentage }}%
Total ${{ number_format($meta['total_price'],2) }} {{ number_format($meta['total_quantity']) }} ${{ number_format($meta['total_profit_margin'],2) }} {{ $meta['total_profit_margin_percentage'] }}% ${{ number_format($meta['total_previous_price'],2) }} {{ number_format($meta['total_previous_quantity']) }} ${{ number_format($meta['total_previous_profit_margin'],2) }} {{ $meta['total_previous_profit_margin_percentage'] }}% ${{ number_format($meta['total_change_price'],2) }} {{ number_format($meta['total_change_quantity']) }} ${{ number_format($meta['total_change_profit_margin'],2) }} {{ $meta['total_change_profit_margin_percentage'] }}%