@foreach($employees as $key => $employee) @foreach ($months as $keyMonth=>$month) @endforeach @foreach ($products as $keyProduct=>$product) @foreach ($months as $month) @endforeach @endforeach @foreach ($months as $month) @endforeach @foreach ($products as $product) @foreach ($months as $month) @php $target = $product->targetEmp($year,$month ,$employee->id); $sales = $product->salesEmp($year,$month,$employee->id); @endphp @endforeach @endforeach @foreach ($months as $month) @php $target = $employee->targetEmp($year,$month); $sales = $employee->salesEmp($year,$month); @endphp @endforeach
{{ $employee->name }}{{ __('targets.months_short.'.$month) }} - {{ $year }} Product Contribution
{{ $product->title }} {{ number_format($product->percentAcheived($year,$month,$employee->id),2) }}%
Product AB FY {{ $year }}AB (AED) REA (AED) Achieved %
{{ $product->title }} {{ number_format ($product->targetYear($year,$employee->id) , 2) }}{{ number_format($target,2) }} {{ number_format($sales,2) }} {{ number_format($target == 0 & $sales == 0 ? 0 : ($sales != 0 && $target == 0 ? 100 : ($sales / $target) * 100) , 2) }}%
Total Sales {{ number_format($employee->totalSales($year),2) }}{{ number_format($target,2) }} {{ number_format($sales,2) }} {{ number_format($target == 0 & $sales == 0 ? 0 : ($sales != 0 && $target == 0 ? 100 : ($sales / $target) * 100) , 2) }}%
@endforeach
REA
Revenue Expected to achieve
AB Actual Booked