@extends('layouts.master') @section('styles') @endsection @section('content')
| S. No# | Distributor Name | Region | Area | Territory | @if(count($data['dates'])>0) @foreach($data['dates'] as $dates){{$dates}} | @endforeach @endifTotal | ||||
|---|---|---|---|---|---|---|---|---|---|---|
| B. Qty | E. Qty | @endforeach @endifB. Qty | E. Qty | |||||||
| {{$sr++}} | {{$item->distributor_name}} | {{$item->region_name}} | {{$item->area_name}} | {{($item->territory_name)? $item->territory_name:'NA'}} | @foreach($data['dates'] as $date) @php $count=0; @endphp @foreach(collect($data['data'])->where('distributor_id',$item->distributor_id) as $keyD => $itemD) @if($itemD->booking_date==$date){{number_format($itemD->booked_qty,2)}} | {{number_format($itemD->executed_qty,2)}} | @php $count++; $totalBQty += $itemD->booked_qty; $totalEQty += $itemD->executed_qty; @endphp @endif @endforeach @if($count==0)0.00 | 0.00 | @endif @endforeach{{number_format($totalBQty, 2)}} | {{number_format($totalEQty, 2)}} |