@extends('tenant.layouts.supervisor')
{{-- Tilte Section --}}
@section('title', 'Analytics')
@section('filter')
@endsection
{{-- Style Section --}}
@section('style')
@endsection
{{-- Content Section --}}
@section('content')
Integrate all the data and insights into your workflow to create a more comprehensive of your customers.
| Agent Username | --}} {{--Received Tickets | --}} {{--Handling Time | --}} {{--Resolved Ticket | --}} {{--Closed Tickets | --}} {{--Assigned Tickets | --}} {{--
|---|---|---|---|---|---|
--}}
{{-- --}}
{{-- {{ $full_name }}--}}
{{-- | --}}
{{-- {{ \App\Models\Tenant\Resource::where('user_id',$agent->id)->count() }} | --}} {{----}} {{-- @php--}} {{-- $previousTimestamp = '00:00:00';--}} {{-- $datda = \App\Models\Tenant\Resource::where('user_id',$agent->id)->where('status','New')->get();--}} {{-- foreach ($datda as $datd)--}} {{-- {--}} {{-- $totalTime = [];--}} {{-- $previousTimestamp = null;--}} {{-- $currentId = null;--}} {{-- foreach ($datd->resourceActions as $sada)--}} {{-- {--}} {{-- $currentTimestamp = \Illuminate\Support\Carbon::parse($sada->created_at);--}} {{-- $currentId = $sada->recource_id;--}} {{-- }--}} {{-- if ($previousTimestamp !== null ) {--}} {{-- $diffInSeconds = $currentTimestamp->diffInSeconds($previousTimestamp);--}} {{-- if (!isset($totalTime[$currentId])) {--}} {{-- $totalTime[$currentId] = 0;--}} {{-- }--}} {{-- $totalTime[$currentId] += $diffInSeconds;--}} {{-- }--}} {{-- $previousTimestamp = $currentTimestamp;--}} {{-- $previousId = $currentId;--}} {{-- }--}} {{-- @endphp--}} {{-- --}} {{--{{ \Illuminate\Support\Carbon::parse($previousTimestamp)->format('H:i:s') }}--}} {{-- --}} {{-- | --}} {{--{{ \App\Models\Tenant\Resource::where('user_id',$agent->id)->where('status','Resolved')->count() }} | --}} {{--{{ \App\Models\Tenant\Resource::where('user_id',$agent->id)->where('status','Closed')->count() }} | --}} {{--{{ \App\Models\Tenant\Resource::where('user_id',$agent->id)->where('status','New')->count() }} | --}} {{--