{{-- KPI Cards --}}
Your Dashboard

Your Performance & Tasks — {{ now()->subMonths(3)->format('M Y') }} s/d {{ now()->format('M Y') }}

{{ now()->format('H:i') }} WIB
{{-- 1. Ticket Entry - Need PIC Confirmation --}}
{{-- 2. Ticket Approved - Need to Work --}}
{{-- Existing Card --}}
{{-- Existing Card --}}
{{-- Existing Card --}}

Total Points

{{ number_format($ticketing_kpi['total_points'] ?? 0, 1) }}

This month (Source : MSJ Ticketing)

{{-- Existing Card --}}
{{-- Charts Row --}}
Your Upcoming Tickets

Prioritas berdasarkan Estimasi Selesai

Deadline Priority
@forelse($your_upcoming_tickets ?? [] as $ticket) @empty @endforelse
Ticket ID Reported By Kategori Estimasi Selesai Status
@php $isTransfer = strtoupper(trim((string) ($ticket->status_it ?? ''))) === 'T'; $ticketUrl = $isTransfer ? url('/tftick/show?idencrypt=' . encrypt($ticket->id)) : url('/yutick/show?idencrypt=' . encrypt($ticket->id)); @endphp {{ $ticket->id }} @if ($isTransfer)
Transfer Pending @endif
{{ $ticket->reported_by_name ?? '-' }} {{ $ticket->kategori_name ?? '-' }} @if ($ticket->detkat_name)
{{ $ticket->detkat_name }} @endif
{{ $ticket->estimasi_display }} @php $statusClass = match ($ticket->status) { 'W' => 'bg-primary', 'D' => 'bg-warning', 'A' => 'bg-approve', 'P' => 'bg-info', 'C' => 'bg-gradient-success', 'R' => 'bg-danger', default => 'bg-secondary', }; @endphp {{ $ticket->status_name }}
Tidak ada ticket yang perlu diprioritaskan saat ini
Your Ticket Status

Distribution by status

{{-- Period Navigator --}}
@foreach (['all' => $your_status_period_labels['all'] ?? 'All', 'bulan_ini' => $your_status_period_labels['bulan_ini'] ?? 'Bulan Ini', 'bulan_lalu' => $your_status_period_labels['bulan_lalu'] ?? 'Bulan Lalu', 'bulan_2lalu' => $your_status_period_labels['bulan_2lalu'] ?? '2 Bln Lalu', 'bulan_3lalu' => $your_status_period_labels['bulan_3lalu'] ?? '3 Bln Lalu'] as $spk => $spl) @php $spi = ['all'=>0,'bulan_ini'=>1,'bulan_lalu'=>2,'bulan_2lalu'=>3,'bulan_3lalu'=>4][$spk]; @endphp
@if ($spi < 4)
@endif
{{ $spl }}
@endforeach
{{-- Your Assigned Tickets Table --}}
Your Assigned Tickets
@forelse($your_assigned_tickets ?? [] as $ticket) @empty @endforelse
Ticket ID Date Reported By Jenis Detail Problem Status
{{ $ticket->id }} {{ \Carbon\Carbon::parse($ticket->ticket_date)->format('d M Y') }} {{ $ticket->reported_by_name ?? ($ticket->reported_by ?? '-') }} {{ ($ticket->jenis ?? '') === 'S' ? 'Software' : (($ticket->jenis ?? '') === 'H' ? 'Hardware' : '-') }} {{ $ticket->code ?? ($ticket->software_name ?? '-') }} {{ $ticket->problem ?? '-' }} @php $statusClass = match ($ticket->status) { 'W' => 'bg-primary', 'D' => 'bg-warning', 'A' => 'bg-approve', 'P' => 'bg-info', 'C' => 'bg-gradient-success', 'R' => 'bg-danger', default => 'bg-secondary', }; @endphp {{ $ticket->status_name }}
Belum ada ticket assigned
{{ $your_assigned_tickets->withQueryString()->links('pagination::numeric') }}
{{-- Your Daily Activity Table --}}
Your Daily Activity
@forelse($your_daily_activity ?? [] as $activity) @empty @endforelse
ID Keterangan Start Finish Poin Ticket ID
{{ $activity->id }} {{ $activity->ket }} {{ $activity->start ? \Carbon\Carbon::parse($activity->start)->format('d M Y H:i') : '-' }} {{ $activity->finish ? \Carbon\Carbon::parse($activity->finish)->format('d M Y H:i') : '-' }} {{ $activity->poin ?? 0 }} @if ($activity->ticket_id) {{ $activity->ticket_id }} @else - @endif
Belum ada activity
{{ $your_daily_activity->withQueryString()->links('pagination::numeric') }}
@push('js') @endpush