Halaman ini menampilkan progress real-time pengerjaan order oleh teknisi kami.
Status Order
@php $statusColors = [ 'draft' => 'secondary', 'assigned' => 'info', 'accepted' => 'primary', 'in_progress' => 'warning', 'completed' => 'success', 'cancelled' => 'danger' ]; $statusLabels = [ 'draft' => 'Draft', 'assigned' => 'Ditugaskan', 'accepted' => 'Diterima', 'in_progress' => 'Sedang Dikerjakan', 'completed' => 'Selesai', 'cancelled' => 'Dibatalkan' ]; $status = $order->status ?? 'draft'; $badgeColor = $statusColors[$status] ?? 'secondary'; $badgeLabel = $statusLabels[$status] ?? ucfirst($status); @endphp
{{ $badgeLabel }}
Order Dibuat
{{ $order->created_at->format('d M Y H:i') }}
Teknisi Ditugaskan
@if($order->assigned_at) {{ $order->assigned_at->format('d M Y H:i') }} @else Belum ditugaskan @endif
Diterima Teknisi
@if($order->accepted_at) {{ $order->accepted_at->format('d M Y H:i') }} @else Menunggu @endif
Sedang Dikerjakan
@if($order->started_at) {{ $order->started_at->format('d M Y H:i') }} @else Menunggu @endif
Selesai
@if($order->completed_at) {{ $order->completed_at->format('d M Y H:i') }} @else Menunggu @endif
Informasi Order
Nomor Order: {{ $order->order_number }}
@if($order->title)
Judul: {{ $order->title }}
@endif @if($order->description)
Deskripsi:
{{ $order->description }}
@endif
Tanggal: {{ $order->created_at->format('d F Y') }}
@if($order->scheduled_date)
Jadwal: {{ $order->scheduled_date->format('d F Y') }}
@endif
Informasi Customer
Nama: {{ $order->client_name ?? 'N/A' }}
Telepon: {{ $order->client_phone ?? 'N/A' }}
Alamat: {{ $order->client_address ?? 'N/A' }}
@if($order->tipe_petugas === 'rombongan' && $order->assignedRombongan)
Tim Rombongan
Nama Tim: {{ $order->assignedRombongan->name }}
@if($order->assignedRombongan->ketua)
Ketua: {{ $order->assignedRombongan->ketua->name }}
@endif @php $anggotaOnly = $order->assignedRombongan->activeMembers->filter(function($member) use ($order) { return $member->user_id != $order->assignedRombongan->ketua_id; }); @endphp @if($anggotaOnly->count() > 0)
Anggota:
    @foreach($anggotaOnly as $member) @if($member->user)
  • {{ $member->user->name }}
  • @endif @endforeach
@endif @if($order->assignedKendaraan)
Kendaraan: {{ $order->assignedKendaraan->merk }} {{ $order->assignedKendaraan->type }} ({{ $order->assignedKendaraan->plat_nomor }})
@endif
@elseif($order->assignedTeknisi)
Teknisi yang Ditugaskan
Nama: {{ $order->assignedTeknisi->name }}
@if($order->assignedKendaraan)
Kendaraan: {{ $order->assignedKendaraan->merk }} {{ $order->assignedKendaraan->type }} ({{ $order->assignedKendaraan->plat_nomor }})
@endif
@endif @if($order->check_in_date || $order->check_in_time)
Check In
Waktu Check In: @php try { if ($order->check_in_date && $order->check_in_time) { // Try to parse check_in_time first (might be full datetime) $checkInDateTime = \Carbon\Carbon::parse($order->check_in_time); echo $checkInDateTime->format('d M Y H:i'); } elseif ($order->check_in_date) { $checkInDate = \Carbon\Carbon::parse($order->check_in_date); echo $checkInDate->format('d M Y H:i'); } } catch (\Exception $e) { echo $order->check_in_date . ' ' . $order->check_in_time; } @endphp
@if($order->foto_check_in)
Foto Check In:
@endif
@endif @if($order->resultPhotos && $order->resultPhotos->count() > 0) @php $instalasiPhotos = $order->resultPhotos->where('category', 'instalasi'); $snPerangkatPhotos = $order->resultPhotos->where('category', 'sn_perangkat'); @endphp @if($instalasiPhotos->count() > 0 || $snPerangkatPhotos->count() > 0)
Foto Hasil Pekerjaan
{{-- Instalasi Photos --}} @if($instalasiPhotos->count() > 0)
Foto Instalasi:
@foreach($instalasiPhotos as $photo)
{{ $photo->title }} @if($photo->title) {{ $photo->title }} @endif
@endforeach
@endif {{-- SN Perangkat Photos --}} @if($snPerangkatPhotos->count() > 0)
Foto Serial Number Perangkat:
@foreach($snPerangkatPhotos as $photo)
{{ $photo->title }} @if($photo->title) {{ $photo->title }} @endif
@endforeach
@endif
@endif @endif @if($order->check_out_date || $order->check_out_time)
Check Out
Waktu Check Out: @php try { if ($order->check_out_date && $order->check_out_time) { // Try to parse check_out_time first (might be full datetime) $checkOutDateTime = \Carbon\Carbon::parse($order->check_out_time); echo $checkOutDateTime->format('d M Y H:i'); } elseif ($order->check_out_date) { $checkOutDate = \Carbon\Carbon::parse($order->check_out_date); echo $checkOutDate->format('d M Y H:i'); } } catch (\Exception $e) { echo $order->check_out_date . ' ' . $order->check_out_time; } @endphp
@if($order->foto_check_out)
Foto Check Out:
@endif
@endif