@extends('layout.app') @section('styles') @endsection @section('content')

{{ $page_title ?? 'New Line Request Summary' }}

Last updated: {{ now()->format('h:i:s A') }}
@php $total = $total ?? 0; $cards = [ [ 'label' => 'Total Requests', 'value' => $total, 'ratio' => 100, 'bg' => 'bg-primary', 'text' => 'text-white', 'icon' => 'fas fa-list', 'url' => route('newline.newIndex',['done_status' => 'No']), ], [ 'label' => 'Multi Router', 'value' => $multi_router_yes ?? 0, 'ratio' => $total > 0 ? round((($multi_router_yes ?? 0) / $total) * 100) : 0, 'bg' => 'bg-info', 'text' => 'text-white', 'icon' => 'fas fa-network-wired', 'url' => route('newline.newIndex', ['multi_router' => 'Yes','done_status' => 'No']), ], [ 'label' => 'Pending New Line Request', 'value' => $total_pending_new_line_request ?? 0, 'ratio' => $total > 0 ? round((($total_pending_new_line_request ?? 0) / $total) * 100) : 0, 'bg' => 'bg-success', 'text' => 'text-white', 'icon' => 'fas fa-clock', 'url' => route('newline.newIndex', ['done_status' => 'Pending']), ], [ 'label' => 'No Response 10 Min over', 'value' => $total_10_minutes ?? 0, 'ratio' => $total > 0 ? round((($total_10_minutes ?? 0) / $total) * 100) : 0, 'bg' => 'bg-secondary', 'text' => 'text-white', 'icon' => 'fas fa-clock', 'url' => route('newline.newIndex',['ten_minutes_over' => 'Yes']), ], [ 'label' => 'No Response 60 Min over', 'value' => $total_60_minutes ?? 0, 'ratio' => $total > 0 ? round((($total_60_minutes ?? 0) / $total) * 100) : 0, 'bg' => 'bg-warning', 'text' => 'text-dark', 'icon' => 'fas fa-hourglass-half', 'url' => route('newline.newIndex',['sixty_minutes_over' => 'Yes']), ], [ 'label' => 'Unassigned', 'value' => $un_assign_count ?? 0, 'ratio' => $total > 0 ? round((($un_assign_count ?? 0) / $total) * 100) : 0, 'bg' => 'bg-danger', 'text' => 'text-white', 'icon' => 'fas fa-user-times', 'url' => route('newline.newIndex', ['assigned_status' => 'No']), ], [ 'label' => 'Follow Up Today or Samaller Then Today', 'value' => $follow_up_lines_to_day_or_samaller_then_to_day ?? 0, 'ratio' => $total > 0 ? round((($follow_up_lines_to_day_or_samaller_then_to_day ?? 0) / $total) * 100) : 0, 'bg' => 'bg-dark', 'text' => 'text-white', 'icon' => 'fas fa-lock', 'url' => route('newline.newIndex', ['to_follow_up_pending' => 'Yes']), ], [ 'label' => 'Survey Coverage But Canceled', 'value' => $total_canceled ?? 0, 'ratio' => $total > 0 ? round((($total_canceled ?? 0) / $total) * 100) : 0, 'bg' => 'bg-danger', 'text' => 'text-white', 'icon' => 'fas fa-times-circle', 'url' => route('newline.newIndex',['survey_coverage_but_canceled' => 'Yes']), ], ]; @endphp
@foreach ($cards as $card) @endforeach
{{-- Employee Wise Table --}}
Employee Wise Pending Assigned
{{ $total_pending_new_line_request ?? 0 }} Total
@foreach ($employee_wise_pending as $index => $data) @endforeach
# Employee Name Pending Count Share
{{ $index + 1 }}
{{ $data['user']->name }}
{{ $data['count'] }} @php $share = ($total_pending_new_line_request ?? 0) > 0 ? round( ($data['count'] / $total_pending_new_line_request) * 100, ) : 0; @endphp
{{ $share }}%
Total {{ $total_pending_new_line_request ?? 0 }} 100%
User Wise Pending (48h+)
{{ $total_48h_pending ?? 0 }} Total
@foreach ($user_wise_pending_count as $data) @endforeach
# User Name Pending Count Share
{{ $loop->iteration }}
{{ $data['user_name'] }}
{{ $data['count'] }} @php $share = ($total_48h_pending ?? 0) > 0 ? round(($data['count'] / $total_48h_pending) * 100) : 0; @endphp
{{ $share }}%
Total {{ $total_48h_pending ?? 0 }} 100%
@endsection @section('ajax') @endsection