@foreach($items as $item) @endforeach @foreach($users as $user) @foreach ($items as $item) @foreach ($user->items as $itemSold) @if ($item->id == $itemSold->item_id) @break @endif @if ($loop->last) @endif @endforeach @endforeach @endforeach @if(count($users)) @for($i = 0; $i < count($totalItemSold); $i++) @endfor @endif
TARGET ACTUAL ACTUAL (%)
# NAME CALL EFFECTIVE CALL VALUE CALL EFFECTIVE CALL VALUE CALL (%) EFFECTIVE CALL (%) VALUE (%){{ $item->name }}
{{ $loop->iteration }} {{ $user->name }} {{ $weeklyTargetCall }} {{ $weeklyTargetEffectiveCall }} {{ $weeklyTargetValue }} {{ $user->actual_call ?? 0 }} {{ $user->actual_effective_call ?? 0 }} {{ $user->actual_value ?? 0 }} {{ $weeklyTargetCallPercentage }} {{ $weeklyTargetEffectiveCallPercentage }} {{ $weeklyTargetValuePercentage }}{{ number_format($itemSold->quantity) }}0
Total {{ $targetCall }} {{ $targetEffectiveCall }} {{ $targetValue }} {{ $actualCall }} {{ $actualEffectiveCall }} {{ $actualValue }} {{ $averageActualCallPercentage }} {{ $averageActualEffectiveCallPercentage }} {{ $averageActualValuePercentage }}{{ $totalItemSold[$i] }}
Total Days {{ $totalDay }}