Serial |
Item |
@if($filter == 'modifier')
Price Type |
@endif
count |
count(%) |
Amount |
Amount(%) |
@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
{{$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)}} |
@endforeach
|
|
|
|
|
|
|
|
|
|
{{$total_count}} |
|
{{number_format($total_amount,$decimal_point)}} |
|
@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
{{$i}} |
{{ucfirst($item->item)}} |
{{$item->count}} |
{{number_format($count_percentage,$decimal_point)}} |
{{number_format($item->amount,$decimal_point)}} |
{{number_format($amount_percentage,$decimal_point)}} |
@endforeach
|
|
|
|
|
|
|
|
{{$total_count}} |
|
{{number_format($total_amount,$decimal_point)}} |
|
@endif
@endif