@extends('layouts.app') @section('title', 'Doctor routes map – Gap Finder Analytics') @push('styles') @endpush @section('content')

Doctor routes map

Select an employee to display their doctors on the map. Path is drawn in the same sequence as in the imported sheet. You can also draw on the map and save custom overlays.

On map: No employees yet. Select one and click “Display on map”.
@if ($employeesWithRoutes->isEmpty())
No employees with doctor data yet. Import a location sheet (e.g. doctor_db.xlsx) from Imports. Required columns: EmployeeName, DoctorName, pLat, pLng; optional: EmployeeReferenceId, DesignationName, BaseTownName, TeamName, DoctorCode, DoctorSpecialty. Path order follows row order per employee.
@endif
Border:

Employees with doctor data (from sheet)

Select an employee above to see their route. Ref ID and ASM/HOS come from the imported sheet (e.g. doctor_db.xlsx).

@forelse ($mrsWithHierarchy as $mr) @empty @endforelse
Employee (MR)Ref IDASMHOSStops
{{ $mr->name }} {{ $mr->employee_reference_id ?? '–' }} {{ $mr->asm_name ?? '–' }} {{ $mr->hos_name ?? '–' }} {{ $mr->doctorRoutes()->count() }}
Import a location sheet (e.g. doctor_db.xlsx) with EmployeeName, DoctorName, pLat, pLng.
@endsection