@extends('layouts.dashboard') @section('title', 'GPS Tracker - ' . $visit->client->name) @section('content')
Back to Visit

GPS Tracker

Real-time tracking for {{ $visit->client->name }}

Connecting...
GPS: Off

Live Tracking Map

Real-time position tracking

Visit Information

Client: {{ $visit->client->name }}
Employee: {{ $visit->employee->name }}
Status: @php $statusColors = [ 'scheduled' => 'bg-yellow-100 text-yellow-800', 'in_progress' => 'bg-blue-100 text-blue-800', 'completed' => 'bg-green-100 text-green-800' ]; @endphp {{ str_replace('_', ' ', ucfirst($visit->status)) }}
Started: {{ $visit->started_at ? $visit->started_at->format('H:i') : 'Not started' }}
@if($visit->status == 'in_progress')
@endif

Live Tracking Stats

Distance to Client
-- m
Speed
-- km/h
Accuracy
-- m
Last Update
--

Tracking Controls

@endsection