@extends('layouts.app') @section('title', 'Dashboard – Gap Finder Analytics') @section('content')
Overview of territories, MRs, doctors, and imports.
| Code / Name | Doctors |
|---|---|
| {{ $a->code ?? $a->name }} | {{ $a->doctors_count }} |
No territories yet. Import a location sheet.
@endif| Name | Assignments |
|---|---|
| {{ $mr->name }} | {{ $mr->area_assignments_count }} |
No MRs yet. Import a location sheet.
@endif| Name | Area |
|---|---|
| {{ $d->name }} | {{ $d->area->name ?? '–' }} |
No doctors yet. Import a location sheet.
@endif| File | Status | Rows | Date | |
|---|---|---|---|---|
| {{ $b->file_name }} | {{ $b->status }} | {{ $b->staging_rows_count ?? 0 }} | {{ $b->created_at->format('M j, Y H:i') }} | View |
No import batches yet. Go to Imports to upload visit or location sheets.
@endifMRs with compliance score below “high” ({{ $periodFrom }} – {{ $periodTo }}). Run php artisan visits:classify to refresh territory classification.
| MR | Score | Band | Visits | Outside | Reasons | |
|---|---|---|---|---|---|---|
| {{ $mr?->name ?? 'MR #'.$mrId }} | {{ $s['score'] }} | {{ $s['band'] }} | {{ $s['total_visits'] }} | {{ $s['outside'] }} | {{ collect($s['reasons'] ?? [])->pluck('code')->join(', ') ?: '–' }} | Details |