产品名称 | @if(count($months)) @foreach($months as $month){{$month}}月 | @endforeach @endif合计 |
---|---|---|
{{$single['name'][$key]}} - {{$single['spec'][$key]}} | @foreach($months as $month)
{{(int)$single['money'][$year][$key][$month]}}
{{(int)$single['amount'][$year][$key][$month]}}
@if($single['money'][$year][$key][$month] > 0)
{{number_format(($single['money'][$year][$key][$month]/$total)*100,2)}}%
@endif
|
@endforeach
{{$total}}
{{(int)array_sum($single['amount'][$year][$key])}}
@if($total > 0)
{{number_format(($total/$single['money2'][$year])*100,2)}}%
@endif
|