@extends('layouts.app') @section('title', 'Import Follow-ups') @section('content') @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($result = session('import_result'))
{{ $result['notes_created'] ?? 0 }} note(s) created · {{ $result['statuses_updated'] ?? 0 }} status(es) updated @if(($result['statuses_unchanged'] ?? 0) > 0) · {{ $result['statuses_unchanged'] }} already matched CRM @endif @if(isset($result['status_column'])) · Status column: {{ $result['status_column'] ?: '(not detected)' }} @endif · {{ $result['rows_processed'] ?? 0 }} lead row(s) matched · {{ $result['unmatched_leads'] ?? 0 }} unmatched Leadgen ID(s) · {{ $result['rows_skipped'] ?? 0 }} row(s) skipped
@if(!empty($result['errors'])) @endif
@endif
Upload CSV
@csrf
Use the same layout as your Google Sheet: id, Status, then four Follow up columns. Download sample (follow-up sheet) to compare headers.
For dates like 18.9 - … (no year in cell)
For 24- … (day only, e.g. September → 9)
Download sample (follow-up sheet)
Instructions
Google Sheet layout

Row 1 must use these headers (same spelling; extra spaces OK):

A · id B · Status C · Follow up D · Follow up E · Follow up F · Follow up
l:2317940409036115 Connected 18.9 - No response, whatsapp msg sent 21- nr, 22 - line busy 24- Proposal shared… (empty OK)
l:4361889630690184 Connected 18.9 - whatsapp msg sent 21- offline meeting fixed — 24- villas thalambur
l:1418272653781936 Not Connected 18.9 - nr, whats empty cells ignored
Steps
  1. In Google Sheets, keep columns id, Status, and four Follow up columns (duplicate header name is fine).
  2. id = Meta Leadgen ID from the sheet (must already exist in CRM as a Meta submission). l: prefix is accepted.
  3. Status = exact name from Masters → Lead statuses (e.g. Connected, Not Connected). Leave blank to keep current CRM status.
  4. Follow up cells = dated notes. Supported: 18.9 - text, 01.10 - text, 24- text, or several in one cell: 21- nr, 22 - line busy.
  5. File → Download → Comma-separated values (.csv), then upload here.
  6. Set default year / month to match when your notes were written (e.g. 2026 and 9 for September).

Re-importing the same note (same text + same date) is skipped. Status updates when the sheet value differs from CRM.

@endsection