@extends('admin.layout') @section('content') @section('style') @parent @stop @php $currentURL = url()->current(); if (str_contains($currentURL, 'bdr')) { $link='BDR'; $getUserRoleData = userRoleData(); $LeadSources = explode(",",$getUserRoleData->BDR_Audit); $Tickets = explode(",",$getUserRoleData->Tickets); $Lock_button=explode(",",$getUserRoleData->Lock_button); } else { $link='CSR'; $getUserRoleData = userRoleData(); $LeadSources = explode(",",$getUserRoleData->CSR_Audit); $Tickets = explode(",",$getUserRoleData->Tickets); $Lock_button=explode(",",$getUserRoleData->Lock_button); $WorkLogsVIew = explode(",",$getUserRoleData->WorkLogsVIew); } @endphp

{{ trans('Call List CSR and BDR') }} Showing {{($result['callmonitor']->currentPage()-1)*$result['callmonitor']->perPage()+($result['callmonitor']->total() ? 1:0)}} to {{($result['callmonitor']->currentPage()-1)*$result['callmonitor']->perPage()+count($result['callmonitor'])}} of {{$result['callmonitor']->total()}} Results

@php //$getUserRoleData = userRoleData(); //$LeadSources = explode(",",$getUserRoleData->QAquations); //dd($LeadSources); @endphp
@if(in_array("Add",$LeadSources )) {{ trans('Add BDR Call Monitoring') }} @endif
@if(in_array("Add",$LeadSources )) {{ trans('Add CSR Call Monitoring') }} @endif
@if(in_array("Add",$LeadSources )) {{ trans('User Score') }} @endif
Avg. Score: {{ $result['total_percent_sum'] ?? 'N/A' }}{{ isset($result['total_percent_sum']) && $result['total_percent_sum'] < 80 ? ' ( Failed )' : '' }}

@if(session()->has('message'))

{{ session()->get('message') }}

@endif @if(session()->has('error'))

{{ session()->get('error') }}

@endif
@if(Request::has('quickAudit'))
@else
@endif
@if (in_array("View", explode(",", $getUserRoleData->WorkLogsVIew)))
@endif
@if(isset($_REQUEST['quickAudit']) && $_REQUEST['quickAudit'] == 1) @endif
@if(isset($_REQUEST['quickAudit']) && $_REQUEST['quickAudit'] == 1) @endif
@if(isset($_REQUEST['quickAudit']) && $_REQUEST['quickAudit'] == 1) @endif
@if(isset($_REQUEST['quickAudit']) && $_REQUEST['quickAudit'] == 1) @endif
@if(isset($_REQUEST['quickAudit']) && $_REQUEST['quickAudit'] == 1) @endif
@if(isset($_REQUEST['quickAudit']) && $_REQUEST['quickAudit'] == 1) @endif
@if(isset($_REQUEST['quickAudit']) && $_REQUEST['quickAudit'] == 1)
@endif
@if(isset($_REQUEST['quickAudit']) && $_REQUEST['quickAudit'] == 1) @endif @if(Request::has('quickAudit')) @if(isset($_REQUEST['audit_type']) && $_REQUEST['audit_type']!="Ticket Performance" && $_REQUEST['quickAudit']=1 ) @endif @if(Request::has('filterAudit') && (!isset($_REQUEST['audit_type']) || $_REQUEST['audit_type'] != "Ticket Performance")) @if(isset($_REQUEST['filterAudit']) && $_REQUEST['filterAudit']) @endif @endif @endif @if(isset($_REQUEST['audit_type']) && $_REQUEST['audit_type']=="Ticket Performance") @endif @php $i=0; @endphp @if(count((array) $result['callmonitor'])>0) @foreach ($result['callmonitor'] as $call) @if(isset($_REQUEST['audit_type']) && $_REQUEST['audit_type']=="Ticket Performance") @php $rating = ((int)$call->rating*20) @endphp @if(in_array("Edit",$Tickets ) || in_array("Delete",$Tickets )) @endif @elseif(Request::has('filterAudit')) @php $rating = ((int)$call->score*20) @endphp @elseif(Request::has('quickAudit')) @if($call->rating == "fatal") @else @endif @else @if($call->total_percent<70 || $call->fatalcall_status ==1) @else @endif @endif @php $i++; @endphp @endforeach @else @endif
{{ trans('Name') }} {{ trans('Team Leader') }} {{ trans('Score') }} {{ trans('Fatal') }} {{ trans('RTM') }} {{ trans('Feedback Status') }} {{ trans('Auditor') }} {{ trans('Assigned To') }}{{ trans('Audit Type') }} {{ trans('Audit Subject') }}{{ trans('Auditor Call Length') }}{{ trans('Ticket No.') }}{{ trans('Ticket No.') }}{{ trans('Audit Date') }} {{ trans('Action') }}
@if(!empty($call->lastAssignedTo)){{ $call->lastAssignedTo->first_name.' '.$call->lastAssignedTo->last_name }}@endif @if(!empty($call->lastAssignedTo->teamLeader)){{ $call->lastAssignedTo->teamLeader->first_name.' '.$call->lastAssignedTo->teamLeader->last_name }}@endif{{ $rating }} {{ ($call->rtm) ? $call->rtm : '' }} No - @if(!empty($call->performanceBy)){{ $call->performanceBy->first_name.' '.$call->performanceBy->last_name }}@endif -- Ticket Performance {{ $call->tickets_number }} {{ $call->performance_at }} @if(in_array("View",$Tickets )) @endif
{{ ($call->csrName) ? $call->csrName->first_name." ".$call->csrName->last_name : $call->lastAssignedTo->first_name.' '.$call->lastAssignedTo->last_name }} {{ ($call->csrName) ? $call->reporting_manager : ( !empty($call->lastAssignedTo->teamLeader) ? $call->lastAssignedTo->teamLeader->first_name . ' ' . $call->lastAssignedTo->teamLeader->last_name : '' ) }} {{ ($call->csrName) ? $call->score : $rating }} @if ($call->csrName) @if ($call->score == "fatal") Yes @else No @endif @else No @endif {{ ($call->rtm) ? $call->rtm : '' }} {{ ($call->status) ? $result['quick_audit_status'][$call->status] : "--" }} @if($call->csrName) @if($call->auditor) {{ $call->auditor->first_name . " " . $call->auditor->last_name }} @endif @else @if(!empty($call->performanceBy)) {{ $call->performanceBy->first_name . ' ' . $call->performanceBy->last_name }} @endif @endif - {{ ($call->csrName) ? $call->type : $call->type }} {{ ($call->audit_subject) ? $call->audit_subject : "--" }} {{ ($call->csrName) ? $call->number :"--" }} {{ !$call->csrName ? $call->number : '--' }} {{ ($call->csrName) ? $call->performance_date : $call->performance_date }} @if($call->csrName ) @if(in_array("Edit",$LeadSources )) @endif @if(in_array("View",$LeadSources )) View @endif @if(in_array("Delete",$LeadSources )) @endif @else @if(in_array("Edit",$Tickets ) || in_array("Delete",$Tickets )) @if(in_array("View",$Tickets )) @endif @endif @endif
{{ $call->csrName ? $call->csrName->first_name . ' ' . $call->csrName->last_name : 'N/A' }} {{ $call->reporting_manager }} {{ $call->ranking }}YesNo{{ ($call->rtm) ? $call->rtm : '' }} {{ $result['quick_audit_status'][$call->status] }} @if($call->auditor) {{ $call->auditor->first_name." ".$call->auditor->last_name }} @endif - {{ $call->audit_type }} {{ $call->audit_subject }} {{ $call->auditor_call_length }} {{ $call->audit_time }} @if(in_array("Edit",$LeadSources )) @endif @if(in_array("View",$LeadSources )) View @endif @if(in_array("Delete",$LeadSources )) @endif
{{ $call->userdetail->first_name." ".$call->userdetail->last_name }} {{ $call->supervisor }} {{ $call->total_percent }}YesNo{{ $call->auditor['first_name']??''}} {{$call->auditor['last_name']??'' }} {{$call->trainer['first_name'] ??''}} {{$call->trainer['last_name']??'' }} {{ $call->date }} @if(in_array("Edit",$LeadSources )) @endif @if(in_array("View",$LeadSources )) View @endif @if(in_array("Delete",$LeadSources )) @endif
{{ $result['callmonitor']->appends($_GET)->links() }}
No record found
@endsection @section('scripts') @parent @stop