@php $series = 0; @endphp @foreach ($data as $key => $item) @if(@$key == "Order Status") @foreach ($item as $property => $value) {{ ucfirst(@$value['name'])}} {{@$value['count']}} @endforeach @endif @endforeach
| Sr | Name | Count | @if(@$key == "Order According Price")Currency | Total Paid | Total Unpaid | @endif||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Currency | @if(isset($last_currency)) {{$last_currency}} @endif | Total Paid Amount : | {{$paid_amount}} | Total Unpaid Amount : | {{$unpaid_amount}} | @php $paid_amount = 0; $unpaid_amount = 0; @endphp||||||||
| {{ $loop->iteration }} | @if ($value['name'] == '--')Not Defined | {{ @$value['count']}} | @else{{ ucfirst(@$value['name'])}} | {{ @$value['count']}} | @if(@$key == "Order According Price")@if(@$value['currency']) {{@$value['currency']}} @endif | @if(@$value['paid']) {{@$value['paid']}} @else 0 @endif | @if(@$value['unpaid']) {{@$value['unpaid']}} @else 0 @endif | @php @$paid_amount = $paid_amount+@$value['paid']; @$unpaid_amount = @$unpaid_amount+@$value['unpaid']; @endphp @endif @endif @if(@$key == "Order According Price") @if($loop->last)||||||
| Currency | @if(isset($last_currency)) {{$last_currency}} @endif | Total Paid Amount : | {{$paid_amount}} | Total Unpaid Amount : | {{$unpaid_amount}} | @php $paid_amount = 0; $unpaid_amount = 0; @endphp