{{-- Customer facing tracking page for a new line request. Standalone on purpose: it is opened from an SMS link by someone with no login, so it carries its own styles and pulls in nothing from the admin layout. --}} @php $company = siteinfo(); // The tracking page may carry its own logo, set in Settings when the new line // feature is on. Falls back to the company logo when none is uploaded. $logo = companyImageUrl($company->track_page_logo ?: ($company->img_url ?? '')); $currentIndex = $stage['index']; $stopped = $stage['stopped']; $total = max(count($steps) - 1, 1); $progress = $stopped ? 0 : (int) round(($currentIndex / $total) * 100); // Icon and accent colour per step. The soft variants are rgba so one value works // on both the light and the dark ground. $stepStyle = [ 'Request Received' => [ 'icon' => 'M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707V19a2 2 0 0 1-2 2z', 'color' => '#6366f1', 'soft' => 'rgba(99, 102, 241, .16)', ], 'Under Review' => [ 'icon' => 'M21 21l-5.2-5.2M17 10a7 7 0 1 1-14 0 7 7 0 0 1 14 0z', 'color' => '#f59e0b', 'soft' => 'rgba(245, 158, 11, .16)', ], 'Follow Up' => [ 'icon' => 'M3 5a2 2 0 0 1 2-2h3.28a1 1 0 0 1 .95.68l1.5 4.5a1 1 0 0 1-.5 1.21l-2.26 1.13a11 11 0 0 0 5 5l1.14-2.26a1 1 0 0 1 1.2-.5l4.5 1.5a1 1 0 0 1 .69.95V19a2 2 0 0 1-2 2h-1C9.72 21 3 14.28 3 6V5z', 'color' => '#a855f7', 'soft' => 'rgba(168, 85, 247, .16)', ], 'Coverage Survey' => [ 'icon' => 'M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0zm-9 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6z', 'color' => '#06b6d4', 'soft' => 'rgba(6, 182, 212, .16)', ], 'Confirmed' => [ 'icon' => 'M9 12l2 2 4-4m6 2a9 9 0 1 1-18 0 9 9 0 0 1 18 0z', 'color' => '#10b981', 'soft' => 'rgba(16, 185, 129, .16)', ], 'Assigned Technician' => [ 'icon' => 'M14.7 6.3a4 4 0 0 0 5 5l-9.6 9.6a2.1 2.1 0 0 1-3-3l9.6-9.6a4 4 0 0 0-2-2z', 'color' => '#f97316', 'soft' => 'rgba(249, 115, 22, .16)', ], 'Complete' => [ 'icon' => 'M5 12.55a11 11 0 0 1 14 0M8.5 16.1a6 6 0 0 1 7 0M2 8.8a16 16 0 0 1 20 0M12 20h.01', 'color' => '#22c55e', 'soft' => 'rgba(34, 197, 94, .16)', ], 'Your Confirmation' => [ 'icon' => 'M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.3a2 2 0 0 0 2-1.7l1.4-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3', 'color' => '#14b8a6', 'soft' => 'rgba(20, 184, 166, .16)', ], ]; $isComplete = !$stopped && in_array($stage['stage'], [ \App\Services\NewLineRequestStage::COMPLETE, \App\Services\NewLineRequestStage::CONFIRMED_BY_CUSTOMER, ], true); $starIcon = 'M12 2.6l2.9 5.9 6.5.9-4.7 4.6 1.1 6.4L12 17.4l-5.8 3-1.1-6.4L.4 9.4l6.5-.9L12 2.6z'; $tickIcon = 'M5 13l4 4L19 7'; $fallback = ['icon' => $tickIcon, 'color' => '#64748b', 'soft' => 'rgba(100, 116, 139, .16)']; @endphp
New Connection Request Tracking
| Name | {{ $newLineRequest->name ?? '-' }} |
| Mobile | {{ $newLineRequest->phone ?? '-' }} |
| Area | {{ $areaName }} |
| Package | {{ $newLineRequest->website_package }} |
| Submit On | {{ $newLineRequest->created_at ? $newLineRequest->created_at->format('d M Y, h:i A') : '-' }} |
You confirmed your connection on {{ \Carbon\Carbon::parse($newLineRequest->customer_confirmed_at)->format('d M Y') }}.
@if ($newLineRequest->customer_rating)Please confirm and rate our service.
@endif