@extends('layouts.app') @php $isHistoryRoute = request()->routeIs('qma.activity.support_timesheet'); @endphp @section('title', ($isHistoryRoute ? 'History Timesheet Heavy Equipment' : 'Timesheet Heavy Equipment') . ' - Admin QMA | PT Kerinci Merangin Hidro') @section('content')
MANAJEMEN SISTEM

{{ $isHistoryRoute ? 'History Timesheet' : 'Timesheet Heavy Equipment' }}

@if(!$isHistoryRoute) @can('qma.logs.edit_odometer') @endcan @endif

Total Timesheet

{{ number_format($totalEntries, 0, ',', '.') }}

Laporan Operasi

Total Jam Operasi

{{ number_format($totalOperatingHours, 1, ',', '.') }} Jam

Akumulasi Jam Mesin

Unit Beroperasi

{{ number_format($activeUnitsCount, 0, ',', '.') }}

Unit Beroperasi

Kendala Breakdown

{{ number_format($breakdownCount, 0, ',', '.') }}

Status Breakdown
-
@if(request()->anyFilled(['search', 'vehicle_id', 'shift', 'operator_type']) || (request('start_date') && request('start_date') !== now()->toDateString()) || (request('end_date') && request('end_date') !== now()->toDateString())) Reset Filter @endif
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
Terdapat kesalahan pada isian form: {{ $errors->first() }}
@endif
@forelse($timesheets as $idx => $ts) @empty @endforelse
NO NO TIMESHEET TANGGAL & SHIFT KODE & TIPE UNIT OPERATOR METER AWAL LOKASI & AKTIVITAS STATUS AKSI
{{ $timesheets->firstItem() + $idx }} {{ $ts->timesheet_no }}
{{ $ts->date ? $ts->date->translatedFormat('d M Y') : '-' }}
{{ $ts->shift }} @if($ts->start_time) • {{ \Carbon\Carbon::parse($ts->start_time)->format('H:i') }} @endif
{{ $ts->vehicle?->code ?: '-' }}
{{ $ts->vehicle?->brand_type ?: '-' }}
{{ $ts->operator?->name ?: '-' }} @if($ts->operator) @if($ts->operator->employee_type === 'Sukon') Sukon @elseif($ts->operator->employee_type && $ts->operator->employee_type !== 'Karyawan') {{ $ts->operator->employee_type }} @else Karyawan @endif @endif
NIK: {{ $ts->operator?->nik ?: '-' }}
{{ number_format($ts->start_meter, 1, ',', '.') }} {{ $ts->meter_type }}
{{ $ts->location }}
{{ $ts->activity_type }}
@if($ts->task_description)

"{{ $ts->task_description }}"

@endif
@if($ts->status === 'Operation') Operation @elseif($ts->status === 'Standby') Standby @elseif($ts->status === 'Breakdown') Breakdown @else {{ $ts->status }} @endif
@can('qma.logs.edit_odometer') @if(!$isHistoryRoute) @else @endif @endcan

Belum ada data timesheet Heavy Equipment

@if(!$isHistoryRoute)

Gunakan tombol "Catat Timesheet" di atas untuk menambahkan laporan harian.

@else

Tidak ditemukan catatan timesheet yang sesuai dengan kriteria filter saat ini.

@endif @if(request()->anyFilled(['start_date', 'end_date', 'vehicle_id', 'shift', 'search'])) @endif
@if($timesheets->hasPages())
Menampilkan data {{ $timesheets->firstItem() }} sampai {{ $timesheets->lastItem() }} dari total {{ $timesheets->total() }} timesheet
{{ $timesheets->links() }}
@endif
@if(!$isHistoryRoute) @endif @foreach($unitSupports as $u) @endforeach @foreach($activityTypes as $act) @foreach($locationSuggestions as $loc) @endsection @section('scripts') @endsection