@extends('layouts.vertical', ["page_title"=> "Dashboard", "mode" => $mode ?? "", "demo" => $demo ?? ""]) @section('css') @endsection @section('content')
{!!$graph->agg_type == 'team' ? '' : '' !!} {{ucwords($graph->agg_type)}} Report
{{ucwords($graph->type)}} Metric
Report Validity: {{$graph->valid_from}} to {{$graph->valid_till}}
Date Range Selected: {{$graph->first_day}} to {{$graph->last_day}}
| Rank | User | Designation | Total | Active User | @foreach($graph->metrics as $val){{$val->display}} | @endforeach|||
|---|---|---|---|---|---|---|---|---|
| {{$val->user->name}} | {{$val->user->designation}} | @if($graph->type == 'verses'){{isset($val->actual)?$val->actual:0}} / {{isset($val->target)?$val->target:0}} | {{round($val->score, 2)}}% | @else{{round($val->score, 2)}} | {{ isset($val->stats->ucount) ? $val->stats->ucount : '0' }} | @foreach($graph->metrics as $m){{ isset($val->stats->{$m->metric}) ? $val->stats->{$m->metric} : '-' }} | @endforeach @endif||
| Periods | {{$graph->label}} |
|---|---|
| {{$val->x}} | {{$val->y}} |
| Periods | @foreach($graph->values as $met){{$met->metric}} | @endforeach
|---|---|
| {{$stat->x}} | @foreach($graph->values as $met){{isset($met->stats[$i])?$met->stats[$i]->y:0}} | @endforeach
| User | Employee Code | Zone | Region | Area | Territory | @foreach($graph->values->metrics as $metric){{$metric->metric}} | @endforeach|
|---|---|---|---|---|---|---|---|
| {{ $user->name }} {{$user->designation}} |
{{ isset($user->employee_code) ? $user->employee_code:''}} | {{ isset($user->positions->Zone) ? $user->positions->Zone : '-' }} | {{ isset($user->positions->Region) ? $user->positions->Region : '-' }} | {{ isset($user->positions->Area) ? $user->positions->Area : '-' }} | {{ isset($user->positions->Territory) ? $user->positions->Territory : '-' }} | @foreach($graph->values->metrics as $metric){{ isset($metric->stats->{$user->id}) ? $metric->stats->{$user->id} : '-' }} @endforeach | |
| Doctor | MSL Code | User | Employee Code | Zone | Region | Area | Territory | @foreach($graph->values->metrics as $metric){{$metric->metric}} | @endforeach
|---|---|---|---|---|---|---|---|---|
| {{ $contact->name }} | {{ $contact->msl_code }} | @php $user = $graph->values->users->{$contact->id}; @endphp{{ $user->name }} {{$user->designation}} |
{{ isset($user->employee_code) ? $user->employee_code:''}} | {{ isset($user->positions->Zone) ? $user->positions->Zone : '-' }} | {{ isset($user->positions->Region) ? $user->positions->Region : '-' }} | {{ isset($user->positions->Area) ? $user->positions->Area : '-' }} | {{ isset($user->positions->Territory) ? $user->positions->Territory : '-' }} | @foreach($graph->values->metrics as $metric){{ isset($metric->stats->{$contact->id}) ? $metric->stats->{$contact->id} : '-' }} @endforeach |
| Periods | Actual | Target | Percent |
|---|---|---|---|
| {{$val->x}} | {{$val->actual}} | {{$val->target}} | {{$val->y}}% |
| Periods | Actual | Target |
|---|---|---|
| {{$val->x}} | {{$val->actual}} | {{$val->target}} |