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

Token Dashboard

@php $totalCreated = $total_create_token_group_by_pop->sum(); $totalOpen = $total_not_close_token_group_by_pop->sum(); $totalAssigned = $total_not_close_token_but_assign_token_group_by_pop->sum(); $totalUnassigned = $total_not_close_token_and_not_assign_token_group_by_pop->sum(); $totalNoUpdate = $all_the_tokens_thats_are_not_close_but_assign_but_no_notes_added_more_than_one_hour_group_pop_id->sum(); $totalDueTimeOver = $token_assign_but_not_solve_till_now_as_per_token_code_solve_time_from_assign_time_group_pop_id->sum(); $totalAssignedButNotStartWork = $total_not_close_token_and_assign_and_null_work_start_time_token_group_by_pop->sum(); $totalCreateTokenLastMonth = $total_create_token_last_month_group_by_pop->sum(); $totalCreateTokenThisMonth = $total_create_token_this_month_group_by_pop->sum(); $summaryCards = [ // [ // 'label' => 'Total Tokens', // 'value' => $totalCreated, // 'bg' => 'bg-primary', // 'icon' => 'fa-ticket-alt', // 'text' => 'text-white', // ], [ 'label' => 'Last Month Total Tokens', 'value' => $totalCreateTokenLastMonth, 'bg' => 'bg-secondary', 'icon' => 'fa-calendar-alt', 'text' => 'text-white', ], [ 'label' => 'This Month Total Tokens', 'value' => $totalCreateTokenThisMonth, 'bg' => 'bg-primary', 'icon' => 'fa-calendar-alt', 'text' => 'text-dark', ], [ 'label' => 'Open Tokens', 'value' => $totalOpen, 'bg' => 'bg-info', 'icon' => 'fa-folder-open', 'text' => 'text-white', ], [ 'label' => 'Assigned (Open)', 'value' => $totalAssigned, 'bg' => 'bg-success', 'icon' => 'fa-user-check', 'text' => 'text-white', ], [ 'label' => 'Unassigned (Open)', 'value' => $totalUnassigned, 'bg' => 'bg-warning', 'icon' => 'fa-user-clock', 'text' => 'text-dark', ], // [ // 'label' => 'Assigned But Not Start Work', // 'value' => $totalAssignedButNotStartWork, // 'bg' => 'bg-info', // 'icon' => 'fa-clock', // 'text' => 'text-white', // ], [ 'label' => 'No Update (1hr+)', 'value' => $totalNoUpdate, 'bg' => 'bg-secondary', 'icon' => 'fa-clock', 'text' => 'text-white', ], [ 'label' => 'Due Time Over', 'value' => $totalDueTimeOver, 'bg' => 'bg-danger', 'icon' => 'fa-exclamation-triangle', 'text' => 'text-white', ], ]; $columns = [ // ['key' => 'totalcreated', 'data' => $total_create_token_group_by_pop], ['key' => 'lastmonthtotalcreated', 'data' => $total_create_token_last_month_group_by_pop], ['key' => 'thisthismonthtotalcreated', 'data' => $total_create_token_this_month_group_by_pop], ['key' => 'notclose', 'data' => $total_not_close_token_group_by_pop], ['key' => 'assigned', 'data' => $total_not_close_token_but_assign_token_group_by_pop], ['key' => 'unassigned', 'data' => $total_not_close_token_and_not_assign_token_group_by_pop], // [ // 'key' => 'notstartwork', // 'data' => $total_not_close_token_and_assign_and_null_work_start_time_token_group_by_pop, // ], [ 'key' => 'noupdate', 'data' => $all_the_tokens_thats_are_not_close_but_assign_but_no_notes_added_more_than_one_hour_group_pop_id, ], [ 'key' => 'timeover', 'data' => $token_assign_but_not_solve_till_now_as_per_token_code_solve_time_from_assign_time_group_pop_id, ], ]; @endphp {{-- Summary Cards --}}
@foreach ($summaryCards as $card)
{{ $card['label'] }}

{{ number_format($card['value']) }}

@endforeach
{{-- Table --}}
Token Summary by POP
{{-- --}} {{-- --}} @forelse($pops as $popId => $popName) @foreach ($columns as $col) @php $count = $col['data']->get($popId, 0); @endphp @endforeach @empty @endforelse
# POP NameTotal CreatedLast Month Total Created This Month Total Created Open Assigned UnassignedAssigned But Not Start WorkNo Update More Than One Hour Due Time Over
{{ $popId }} {{ $popName }} @if ($count > 0) {{ number_format($count) }} @endif
No POP data available.
@endsection @section('ajax') @endsection