@php( $headerOption = \App\Http\Controllers\Controller::getHeaderOptions( $headerOption['title'] ?? 'PDF Mapper', '', [], [], false, $headerOption['header_buttons'] ?? [] )) @extends('admin.layouts.layout', $headerOption) @push('page_css') @endpush @section('content')
@if(session('success'))
{{ session('success') }}
@endif {{-- TOP BAR: Back arrow + Dropdown + Action Buttons --}}
@csrf
@csrf
{{-- TABS (Lead Field Tabs) --}} {{-- MAIN CONTENT: Left Fields + Right PDF --}}
{{-- LEFT: CRM Fields --}}
Instructions: Map the fields of your lead to your electronic signature document by dragging and dropping. Fields that have already been mapped will appear highlighted in green.
Note: One lead field can be reused to populate as many Document fields as needed.
{{-- Core Fields Tab --}}
@foreach($coreLeadFields as $f)
{{ $f['label'] }}
@if($f['is_mapped'])
{{ $f['mapped_to'] }}
@endif
@endforeach
{{-- Dynamic Tabs --}} @foreach($crmTabs as $tab)
@foreach($tab->fields as $f)
{{ $f->label }}
@if($f->is_mapped)
{{ $f->mapped_to }}
@endif
@endforeach
@endforeach
{{-- RIGHT: PDF Preview + Field Overlays --}}
@if(!$pdfUrl)

No PDF file attached. Click "Extract Fields" after uploading a PDF.

@else
@endif
@endsection @push('page_script') @endpush