@extends('layouts.app') @php $isHistoryRoute = request()->routeIs('qma.activity.support_timesheet'); @endphp @section('title', ($isHistoryRoute ? 'History Timesheet Unit Support' : 'Timesheet Unit Support') . ' - Admin QMA | PT Kerinci Merangin Hidro') @section('content')
MANAJEMEN QMA • {{ $isHistoryRoute ? 'Log Aktifitas' : 'Operasional Unit' }}

{{ $isHistoryRoute ? 'History Timesheet Unit Support' : 'Timesheet Unit Support' }}

@if($isHistoryRoute) Riwayat log operasional, utilisasi shift, pencatatan jam kerja mesin (HM/KM), serta konsumsi solar alat berat. @else Pencatatan jam kerja (HM/KM), penugasan operator, utilisasi shift, serta pemakaian solar alat berat. @endif

@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(['start_date', 'end_date', 'vehicle_id', 'operator_id', 'shift', 'status', 'search'])) @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 ODOMETER 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 ?: '-' }}
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 unit support

@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