@extends('layouts.app') @section('title', 'Imports – Gap Finder Analytics') @section('content')

Imports

Upload visit (field activity) or location (ground team) sheets.

1. Field activity / visits

@csrf

2. Ground team / location sheet (doctor_db.xlsx format)

Expected columns: EmployeeReferenceId, EmployeeName, DesignationName, BaseTownName, TeamName, DoctorCode, DoctorName, DoctorSpecialty, pLat, pLng. Territory is derived from TeamName when not present.

@csrf

Visit import batches

@forelse ($batches as $batch) @empty @endforelse
File Status Rows Date
{{ $batch->file_name }} {{ $batch->status }} {{ $batch->staging_rows_count ?? 0 }} {{ $batch->created_at->format('M j, Y H:i') }} View
No visit imports yet.
{{ $batches->links() }}
@endsection