{{-- resources/views/user/tracking.blade.php --}} @extends('frontend.layouts.app') @section('content')
Tracking URL : {{ json_decode($order->shipment->response, true)['data'][1]['tracking_url'] }}
@endif
{{ $tracking['logistic'] ?? '—' }} @php $status = strtolower($tracking['current_status'] ?? ''); if (stripos($status, 'cancel') !== false || $isCancelled) { $statusClass = 'qun-badge--danger'; } elseif (strpos($status, 'delivered') !== false) { $statusClass = 'qun-badge--success'; } elseif (strpos($status, 'in transit') !== false || strpos($status, 'intransit') !== false) { $statusClass = 'qun-badge--primary'; } else { $statusClass = 'qun-badge--warning'; } @endphp {{ $tracking['current_status'] ?? 'Unknown' }}
{{ $c['customer_name'] ?? '—' }}
{{ $c['customer_address1'] ?? '' }}
{{ $c['customer_address2'] ? ', ' . $c['customer_address2'] : '' }}
{{ $c['customer_city'] ?? '' }}, {{ $c['customer_state'] ?? '' }} -
{{ $c['customer_pincode'] ?? '' }}
Mobile: {{ $c['customer_mobile'] ?? ($c['customer_phone'] ?? '—') }}
Need help?
If you think the tracking is incorrect or the delivery is delayed, contact our support.
{{ $lastScan['status'] ?? '—' }}
{{ $lastScan['status_date_time'] ?? ($lastScan['scan_date_time'] ?? '') }}
@if (!empty($lastScan['remark'])){{ $lastScan['remark'] }}
@endifLocation: {{ $lastScan['scan_location'] ?? '-' }}
{{ json_encode($response, JSON_PRETTY_PRINT) }}