| {{ @$product->item_sku }} |
{{ @$product->item_name }} |
{{ @$product->brand_name }} |
{{ @$product->unit_name }} |
{{ @$awt[0]->target }} |
@foreach($terrs as $terr)
@php
$dt = array_values(array_filter($dts, fn ($x) => $x->item_id == $product->item_id && $x->area_id == $area_id && $x->territory_id == $terr->id));
@$dt_sys_target += @$dt[0]->system_targets;
@$dt_cus_target += @$dt[0]->custom_targets;
@$dt_sys_target_arr[$terr->id] += @$dt[0]->system_targets;
@$dt_cus_target_arr[$terr->id] += @$dt[0]->custom_targets;
@$gdt_sys_target += @$dt[0]->system_targets;
@$gdt_cus_target += @$dt[0]->custom_targets;
@endphp
{{spencerRound(@$dt[0]->system_targets)}} |
{{spencerRound(@$dt[0]->custom_targets)}} |
@endforeach
{{spencerRound($dt_sys_target)}} |
{{spencerRound($dt_cus_target)}} |
@endforeach