@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])

Dashboard Petugas - {{ $user_role }}

Menampilkan data periode {{ $selected_period_label }}

@php $totalTasksUrl = route('dashboard.petugas', ['bulan' => $filter_month, 'tahun' => $filter_year]); $dailyUrl = url('pekerjaan-daily'); $periodicUrl = url('pekerjaan-periodic'); $nonPeriodicUrl = url('pekerjaan-nonperiodic'); $pendingVerificationUrl = url('pekerjaan-nonperiodic') . '?status=verifikasi'; @endphp @php $visibleKpiCount = ($user_role === 'Office') ? 3 : 5; // Office: Total, Daily, Periodic $kpiColsClass = 'row row-cols-1 row-cols-md-2 row-cols-xl-' . $visibleKpiCount . ' g-3 mb-4'; @endphp
@if ($user_role !== 'Office') @endif @if ($user_role !== 'Office') @endif
Daftar Pekerjaan Belum Selesai - {{ $selected_period_label }}
@if ($total_tasks > 0)
@forelse ($non_periodic_tasks as $task) @empty @endforelse @forelse ($periodic_items as $item) @empty @endforelse
Tanggal Jenis Pekerjaan Keterangan Status Aksi
{{ $task->created_at ? \Carbon\Carbon::parse($task->created_at)->format('d M Y') : '-' }} Non Periodic {{ $task->job_description ?? '-' }} {{ $task->area_name ?? '-' }} @if (!empty($task->work_type)) | {{ ucfirst($task->work_type) }} @endif @php $rawStatus = $task->request_status ?? $task->status ?? ''; $statusNormalized = strtolower(trim($rawStatus)); $badgeClass = 'status-badge status-' . ($statusNormalized ?: 'pending'); $statusLabel = $statusNormalized ? ucfirst($statusNormalized) : 'Pending'; @endphp {{ $statusLabel }} @if ($user_role === 'Office') Tidak tersedia @else Buka Transaksi @endif
{{ \Carbon\Carbon::parse($item->planned_date)->format('d M Y') }} Periodic {{ $item->job_description ?? '-' }} {{ $item->area_name ?? '-' }} @if (!empty($item->periode)) | {{ ucfirst($item->periode) }} @endif Belum Realisasi Buka Transaksi
@else

Tidak ada pekerjaan yang perlu diselesaikan.

@endif
@push('js') @endpush @endsection