{{-- {{ Auth()->user()->full_name}}--}} Performance Scorecards

View the overall performance and other statistics.

{{-- --}} {{-- --}}
@php $old = 0; $colorLimit = 1; @endphp @forelse($ranks as $rank)
counter > $rank->weekly_target ? "background: #c8ebd7 !important;" : ""}} @else {{$rankMonthly->counter > $rank->monthly_target ? "background: #c8ebd7 !important;" : ""}} @endif @if($colorLimit && $rankMonthly->counter < $rank->monthly_target) @php $colorLimit =0; @endphp {{$rankMonthly->counter < $rank->monthly_target? "": ""}} @else {{$rankMonthly->counter < $rank->monthly_target? "background: #e3e3e3 !important;opacity: .5;": ""}} @endif" >
@if($loop->index ==0) @elseif($loop->index ===1) @elseif($loop->index ===2) @elseif($loop->index ===3) @elseif($loop->index ===4) @endif
{{$rank->title}}
@if($loop->index >0)

@if($filter == "Weekly") @if($rankWeekly->counter < $old) {{$rankWeekly->counter > $rank->weekly_target ? $rank->weekly_target : $old}} @else {{$rankWeekly->counter > $rank->weekly_target ? $rank->weekly_target : $rankWeekly->counter}} @endif @else @if($rankMonthly->counter < $old) {{$rankMonthly->counter > $rank->monthly_target ? $rank->monthly_target : $old}} @else {{$rankMonthly->counter > $rank->monthly_target ? $rank->monthly_target : $rankMonthly->counter}} @endif @endif / @if($filter == "Weekly") {{$rank->weekly_target}} @else {{$rank->monthly_target}} @endif points

@else

@if($filter == "Weekly") {{$rankWeekly->counter > $rank->weekly_target ? $rank->weekly_target : $rankWeekly->counter}} @else {{$rankMonthly->counter > $rank->monthly_target ? $rank->monthly_target : $rankMonthly->counter}} @endif / @if($filter == "Weekly") {{$rank->weekly_target}} @else {{$rank->monthly_target}} @endif points

@endif
@php if($filter == "Weekly") { $old = $rank->weekly_target; } else { $old = $rank->monthly_target; } @endphp @empty @endforelse
My Performance Summary


{{$New}}

  • New
  • {{--
    Target : {{$New}}
    --}}

    {{$Resolved}}

  • Resolved
  • {{--
    Target : {{$Resolved}}
    --}}

    {{$Closed}}

  • Closed
  • {{--
    Target : {{$Closed}}
    --}}

    {{$Escalated}}

  • Escalated
  • {{--
    Target : {{$Escalated}}
    --}}

    {{$Pending}}

  • Pending
  • {{--
    Target : {{$Pending}}
    --}}
    @forelse($ranks as $rank) @php $ss= 0; $dataW = $rank->weekly_target ; $dataM = $rank->monthly_target ; @endphp @empty @endforelse

    Your Rank Is {{ \App\Models\Tenant\RankTarget::where('monthly_target','>=',$rankMonthly->counter)->orderBy('monthly_target','asc')->first() ? \App\Models\Tenant\RankTarget::where('monthly_target','>=',$rankMonthly->counter)->orderBy('monthly_target','desc')->first()->title : \App\Models\Tenant\RankTarget::orderBy('monthly_target','desc')->first()->title }}



    {{--
    #{{Auth()->user()->username}}
    --}}
    {{ Auth()->user()->full_name}}
    @if($filter == "Weekly") @php $ss = ceil(($rankWeekly->counter/$dataW)*100) @endphp @else @php $ss = ceil(($rankMonthly->counter/$dataM)*100) @endphp @endif
    {{$ss}}%
    Scorecards
    @foreach($getPerformanceLevels as $getPerformanceLevel)
    {{$getPerformanceLevel->label}}
    @endforeach
    @if(in_array('AHT',$kpisPermissionArray))
    =",$AHT)->first() ? "background: ".\App\Models\Tenant\AgentPerformanceLevel::where("target_from","<=",$AHT)->where("target_to",">=",$AHT)->first()->color." !important;" : "background: black !important;"}}" class="card" >

    AHT

    {{$AHT}}

    {{--

    Target :{{$productivity}}%

    --}}
    @endif @if(in_array('QUALITY',$kpisPermissionArray))
    =",$quality)->first() ? "background: ".\App\Models\Tenant\AgentPerformanceLevel::where("target_from","<=",$quality)->where("target_to",">=",$quality)->first()->color." !important;" : "background: black !important;"}}" class="card" >

    QUALITY

    {{$quality}}%

    {{--

    Target :{{$quality}}%

    --}}
    @endif @if(in_array('PRODUCTIVITY',$kpisPermissionArray))
    =",$productivity)->first() ? "background: ".\App\Models\Tenant\AgentPerformanceLevel::where("target_from","<=",$productivity)->where("target_to",">=",$productivity)->first()->color." !important;" : "background: black !important;"}}" class="card" >

    PRODUCTIVITY

    {{$productivity}}%

    {{--

    Target :{{$productivity}}%

    --}}
    @endif @if(in_array('UTILIZATION',$kpisPermissionArray))
    =",$UTILIZATION)->first() ? "background: ".\App\Models\Tenant\AgentPerformanceLevel::where("target_from","<=",$UTILIZATION)->where("target_to",">=",$UTILIZATION)->first()->color." !important;" : "background: black !important;"}}" class="card" >

    UTILIZATION

    {{$UTILIZATION}}%

    {{--

    Target :{{$c_sat}}%

    --}}
    @endif @if(in_array('C-SAT',$kpisPermissionArray))
    =",$c_sat)->first() ? "background: ".\App\Models\Tenant\AgentPerformanceLevel::where("target_from","<=",$c_sat)->where("target_to",">=",$c_sat)->first()->color." !important;" : "background: black !important;"}}" class="card" >

    C-SAT

    {{$c_sat}}%

    {{--

    Target :{{$c_sat}}%

    --}}
    @endif @if(in_array('FCR',$kpisPermissionArray))
    =",$FCR)->first() ? "background: ".\App\Models\Tenant\AgentPerformanceLevel::where("target_from","<=",$FCR)->where("target_to",">=",$FCR)->first()->color." !important;" : "background: black !important;"}}" class="card" >

    FCR

    {{$FCR}}%

    {{--

    Target :{{$tagging}}%

    --}}
    @endif @if(in_array('TAGGING',$kpisPermissionArray))
    =",$tagging)->first() ? "background: ".\App\Models\Tenant\AgentPerformanceLevel::where("target_from","<=",$tagging)->where("target_to",">=",$tagging)->first()->color." !important;" : "background: black !important;"}}" class="card" >

    TAGGING

    {{$tagging}}%

    {{--

    Target :{{$tagging}}%

    --}}
    @endif @if(in_array('RESPONSE TIME',$kpisPermissionArray))

    RESPONSE TIME

    {{$RESPONSE_TIME}}

    {{--

    Target :{{$resources}}

    --}}
    @endif @if(in_array('TICKET RESOLUTION TIME',$kpisPermissionArray))

    TICKET RESOLUTION TIME

    {{$TICKET_RESOLUTION_TIME}}

    {{--

    Target :{{$resources}}

    --}}
    @endif

    Ranking

    @if(in_array('AHT',$kpisPermissionArray)) @endif @if(in_array('QUALITY',$kpisPermissionArray)) @endif @if(in_array('PRODUCTIVITY',$kpisPermissionArray)) @endif @if(in_array('UTILIZATION',$kpisPermissionArray)) @endif @if(in_array('C-SAT',$kpisPermissionArray)) @endif @if(in_array('FCR',$kpisPermissionArray)) @endif @if(in_array('TAGGING',$kpisPermissionArray)) @endif @if(in_array('RESPONSE TIME',$kpisPermissionArray)) @endif @if(in_array('TICKET RESOLUTION TIME',$kpisPermissionArray)) @endif @forelse($usersData as $userData) @if(in_array('AHT',$kpisPermissionArray)) @endif @if(in_array('QUALITY',$kpisPermissionArray)) @endif @if(in_array('PRODUCTIVITY',$kpisPermissionArray)) @endif @if(in_array('UTILIZATION',$kpisPermissionArray)) @endif @if(in_array('C-SAT',$kpisPermissionArray)) @endif @if(in_array('FCR',$kpisPermissionArray)) @endif @if(in_array('TAGGING',$kpisPermissionArray)) @endif @if(in_array('RESPONSE TIME',$kpisPermissionArray)) @endif @if(in_array('TICKET RESOLUTION TIME',$kpisPermissionArray)) @endif @empty @endforelse
    PLACE NAMEAHTQUALITYPRODUCTIVITYUTILIZATIONC-SATFCRTAGGINGRESPONSE TIMETICKET RESOLUTION TIMETOTAL RANKING%
    {{ ordinal($loop->index +1)}} {{$userData['full_name']}}{{$userData['AHT']}}%{{$userData['quality']}}%{{$userData['productivity']}}%{{$userData['UTILIZATION']}}%{{$userData['c_sat']}}%{{$userData['FCR']}}%{{$userData['tagging']}}%{{$userData['RESPONSE_TIME']}}%{{$userData['TICKET_RESOLUTION_TIME']}}% {{-- {{($userData['tagging'] + $userData['c_sat'] + $userData['quality'] +$userData['productivity']) /4}} --}} @php $total = 0; $sum = 0; if(in_array('AHT',$kpisPermissionArray)){ $total += $userData['AHT']; $sum++; } if(in_array('QUALITY',$kpisPermissionArray)){ $total += $userData['quality']; $sum++; }if(in_array('PRODUCTIVITY',$kpisPermissionArray)){ $total += $userData['productivity']; $sum++; }if(in_array('UTILIZATION',$kpisPermissionArray)){ $total += $userData['UTILIZATION']; $sum++; }if(in_array('C-SAT',$kpisPermissionArray)){ $total += $userData['c_sat']; $sum++; }if(in_array('FCR',$kpisPermissionArray)){ $total += $userData['FCR']; $sum++; }if(in_array('TAGGING',$kpisPermissionArray)){ $total += $userData['tagging']; $sum++; }if(in_array('RESPONSE TIME',$kpisPermissionArray)){ $total += $userData['RESPONSE_TIME']; $sum++; }if(in_array('TICKET RESOLUTION TIME',$kpisPermissionArray)){ $total += $userData['TICKET_RESOLUTION_TIME']; $sum++; } echo round($total / $sum); @endphp %
    {{--
    --}} {{--
    --}} {{--
    --}} {{--
    --}} {{--
    --}} {{--

    --}} {{-- Your Progress Chart--}} {{--

    --}} {{--
    --}} {{--
    --}} {{--
    --}} {{-- --}} {{--
    --}} {{--
    --}} {{--
    --}} {{--
    --}}