Item Sales Rank {{ucfirst($business_name)}}
by {{ucfirst($filter)}} From {{ !empty($from) ? date('d F Y', strtotime($from)) : '' }} till {{ !empty($to) ? date('d F Y', strtotime($to)) : '' }}


@if($filter == 'modifier') @endif @if($filter == 'modifier') @if(!empty($data)) @php($i = 0) @php($total_count = 0) @php($count_percentage = 0) @php($total_count_percentage = 0) @php($total_amount = 0) @php($amount_percentage = 0) @foreach($data as $item_sum) @php($total_count += $item_sum["count"]) @php($total_amount += $item_sum["amount"]) @endforeach @foreach($data as $item) @php($i++) @if($total_count > 0) @php($count_percentage = ($item["count"] / $total_count) * 100) @php($total_count_percentage += $count_percentage) @endif @if($total_amount > 0) @php($amount_percentage = ($item["amount"] / $total_amount) * 100) @endif @endforeach @endif @else @if(!empty($item_sales_rank_lists)) @php($i = 0) @php($total_count = 0) @php($count_percentage = 0) @php($total_count_percentage = 0) @php($total_amount = 0) @php($amount_percentage = 0) @foreach($item_sales_rank_lists as $item_sum) @php($total_count += $item_sum->count) @php($total_amount += $item_sum->amount) @endforeach @foreach($item_sales_rank_lists as $item) @php($i++) @if($total_count > 0) @php($count_percentage = ($item->count / $total_count) * 100) @php($total_count_percentage += $count_percentage) @endif @if($total_amount > 0) @php($amount_percentage = ($item->amount / $total_amount) * 100) @endif @endforeach @endif @endif
Serial ItemPrice Typecount count(%) Amount Amount(%)
{{$i}} {{ucfirst($item["item"])}} {{ucfirst($item["type"])}} {{$item["count"]}} {{number_format($count_percentage,$decimal_point)}} {{number_format($item["amount"],$decimal_point)}} {{number_format($amount_percentage,$decimal_point)}}
             
      {{$total_count}}   {{number_format($total_amount,$decimal_point)}}  
{{$i}} {{ucfirst($item->item)}} {{$item->count}} {{number_format($count_percentage,$decimal_point)}} {{number_format($item->amount,$decimal_point)}} {{number_format($amount_percentage,$decimal_point)}}
           
    {{$total_count}}   {{number_format($total_amount,$decimal_point)}}