@extends('layouts.master') @section('content')

KPI Management

Select Month*

Select Type*

Set Target*

Unit Type
Target {{ !$kpi ? 'Quantity' : ($kpi->type == 1 ? 'Quantity' : 'Revenue') }}
@foreach ($primary_units as $pu)
{{ $pu->unit_name }}
@endforeach
Total Target {{!$kpi ? 'Unit' : ($kpi->type == 1 ? 'Unit' : 'Revenue')}}
{{ $kpi && $kpi->type == 1 ? number_format(array_sum(array_column(json_decode(json_encode($primary_units), TRUE), "target"))) : ($kpi && $kpi->type == 4 ? number_format(array_sum(array_column(json_decode(json_encode($primary_units), TRUE), "revenue"))) : '0.00') }}
@foreach ($product_wise as $p) @endforeach
SKU Product Name Primary Unit Set Target Actions
{{ $p->sku }}
{{ $p->item_name }}
{{ $p->unit_name }} @if ($kpi && $p->target) @else @endif
@foreach ($brand_wise as $b) @endforeach
Brand Name Primary Unit Set Target Actions
{{ $b['brand_name'] }} {{ $b['unit_name'] }} @if ($kpi && $b['target']) @else @endif
$x['type_id'] == 1)) ? 'checked' : '' }}>
$x['type_id'] == 2)) ? 'checked' : '' }}>
$x['type_id'] == 3)) ? 'checked' : '' }}>
$x['type_id'] == 4)) ? 'checked' : '' }}>

Set Additional KPI's

@foreach ($product_wise as $p) @endforeach
SKU Product Name Primary Unit Set Target Actions
{{ $p->sku }}
{{ $p->item_name }}
{{ $p->unit_name }} @if ($kpi && $p->additional_target) @else @endif
@foreach ($brand_wise as $b) @endforeach
Brand Name Primary Unit Set Target Actions
{{ $b['brand_name'] }} {{ $b['unit_name'] }} @if ($kpi && $b['additional_target']) @else @endif
@foreach ($channel_wise as $c) @endforeach
Channel Name Set Target Actions
{{ $c->retailer_type_name }} @if ($kpi && $c->additional_target) @else @endif
Other KPI's Set Target Actions
Average Productivity Target (%) @if (sizeof($kpi_additionals) && sizeof(array_filter($kpi_additionals, fn($x) => $x['type_id'] == 4)) && array_values(array_filter($kpi_additionals, fn($x) => $x['type_id'] == 4))[0]['avg_productivity']) @else @endif
Average SKUs Per Bill Target @if (sizeof($kpi_additionals) && sizeof(array_filter($kpi_additionals, fn($x) => $x['type_id'] == 4)) && array_values(array_filter($kpi_additionals, fn($x) => $x['type_id'] == 4))[0]['avg_sku_per_bill']) @else @endif
Average Drop Size Per Bill @if (sizeof($kpi_additionals) && sizeof(array_filter($kpi_additionals, fn($x) => $x['type_id'] == 4)) && array_values(array_filter($kpi_additionals, fn($x) => $x['type_id'] == 4))[0]['avg_drop_size_per_bill']) @else @endif
Back
@endsection