{{ $task->title }}

{{ strtoupper(str_replace('_', ' ', $task->status)) }}
@if($task->type === 'psb')
Order Type: PSB (Pasang Baru)

Requirement Khusus:
Tanda tangan customer WAJIB saat checkout
Pastikan customer hadir saat proses checkout untuk tanda tangan digital

@endif
Informasi Task
Type Job
@if($task->type === 'psb') PSB (Pasang Baru) @elseif($task->type === 'maintenance') Maintenance @elseif($task->type === 'repair') Repair @elseif($task->type === 'upgrade') Upgrade @elseif($task->type === 'survey') Survey @else {{ strtoupper($task->type ?? 'General') }} @endif @if($task->type === 'psb') Tanda tangan customer wajib @endif
Deskripsi
{{ $task->description ?? 'Tidak ada deskripsi' }}
Info dari Admin
{{ $task->admin_notes ?? '-' }}
Client
@if($task->client_name) {{ $task->client_name }} @elseif($task->customer) {{ $task->customer->name }} @else Tidak ada informasi @endif @if($task->client_phone)
{{ $task->client_phone }} @endif
@if($task->scheduled_date)
Tanggal Dijadwalkan
{{ \Carbon\Carbon::parse($task->scheduled_date)->format('d M Y H:i') }}
@endif
Lokasi
{{ $task->customer->address ?? 'Tidak ada informasi lokasi' }} @if($task->customer->lat && $task->customer->lon)
Buka di Google Maps @endif
@if($task->notes)
Catatan
{{ $task->notes }}
@endif
@if(($task->customer && $task->customer->rumah_tampak_depan) || $task->info_foto1 || $task->info_foto2 || $task->info_file1 || $task->info_file2)
Foto Referensi & Dokumen
@if($task->customer && $task->customer->rumah_tampak_depan)
Rumah Tampak Depan
Rumah Tampak Depan
Lihat Foto
@endif @if($task->info_foto1)
{{ $task->label_info_foto1 ?? 'Foto Referensi 1' }}
{{ $task->label_info_foto1 ?? 'Foto Referensi 1' }}
Lihat Foto
@endif @if($task->info_foto2)
{{ $task->label_info_foto2 ?? 'Foto Referensi 2' }}
{{ $task->label_info_foto2 ?? 'Foto Referensi 2' }}
Lihat Foto
@endif @if($task->info_file1)
{{ $task->label_info_file1 ?? 'Dokumen PDF 1' }}
Lihat PDF
@endif @if($task->info_file2)
{{ $task->label_info_file2 ?? 'Dokumen PDF 2' }}
Lihat PDF
@endif
@endif @if($task->status === 'draft' && !$task->assigned_teknisi_id && !$task->assigned_rombongan_id)
Ambil Task Ini
Task Belum Ditugaskan
Task ini tersedia untuk diambil. Klik tombol untuk mengambil dan langsung menerima task ini.
@csrf
@endif @if($task->status === 'assigned')
Terima Task
Lokasi Anda saat accept task akan disimpan untuk tracking
@csrf
@endif @if($task->status === 'accepted')
Check-In
@csrf
Check-In Wajib:
  • Lokasi GPS akurat
  • Foto lokasi saat ini (WAJIB)
Format: JPG, PNG. Max: 5MB. WAJIB diisi!
@endif @if($task->status === 'in_progress' && (!$task->keterangan || $task->resultPhotos->where('category', 'instalasi')->count() == 0))
Upload Hasil Pekerjaan
Wajib! Upload minimal 1 foto instalasi dan keterangan hasil pekerjaan sebelum bisa checkout. @if($task->type === 'psb')
Order PSB: Tanda tangan customer juga WAJIB! @endif
@csrf
@if($task->type === 'psb')
Tanda Tangan Customer *WAJIB untuk PSB
Tanda tangan customer diperlukan sebagai bukti persetujuan dan penerimaan instalasi PSB.
Klik untuk membuat tanda tangan digital
@endif
@endif @if(($task->status === 'in_progress' && $task->keterangan && $task->resultPhotos->where('category', 'instalasi')->count() > 0) || ($task->status === 'completed' && !$task->foto_check_out))
@if($task->status === 'completed' && !$task->foto_check_out) @else @endif
Check-Out
@csrf
Check-Out Wajib:
  • Lokasi GPS saat selesai
  • Foto hasil/kondisi akhir (WAJIB)
Format: JPG, PNG. Max: 5MB. WAJIB diisi!
@endif @if($task->status === 'in_progress' || $task->status === 'completed')
Foto-Foto
@if($task->foto_check_in)
Foto Check-In
Check-In Photo
@endif @if($task->foto_check_out)
Foto Check-Out
Check-Out Photo
@endif @php $installationPhotos = $task->resultPhotos->where('category', 'instalasi'); $serialNumberPhotos = $task->resultPhotos->where('category', 'sn_perangkat'); @endphp @if($installationPhotos->count() > 0)
Foto Instalasi
@foreach($installationPhotos as $photo) Installation Photo @endforeach
@endif @if($serialNumberPhotos->count() > 0)
Foto Serial Number
@foreach($serialNumberPhotos as $photo) Serial Number Photo @endforeach
@endif @if($task->type === 'psb' && $task->ttd_customer)
Tanda Tangan Customer (PSB)
@php $customerId = $task->customer_id ?? $task->id_customer; // Path sesuai format Flutter: uploads/signatures/customer/{customer_id}/{filename} $signaturePath = 'uploads/signatures/customer/' . $customerId . '/' . $task->ttd_customer; @endphp Tanda Tangan Customer Tanda tangan customer sebagai bukti persetujuan instalasi PSB
@endif
@endif
Timeline Task
    @if($task->created_at)
  • Task Dibuat: {{ \Carbon\Carbon::parse($task->created_at)->format('d M Y H:i') }}
  • @endif @if($task->accepted_at)
  • Task Diterima: {{ \Carbon\Carbon::parse($task->accepted_at)->format('d M Y H:i') }}
  • @endif @if($task->checkin_time)
  • Check-In: {{ \Carbon\Carbon::parse($task->checkin_time)->format('d M Y H:i') }}
  • @endif @if($task->checkout_time)
  • Check-Out: {{ \Carbon\Carbon::parse($task->checkout_time)->format('d M Y H:i') }}
  • @endif