@extends('layouts.app') @section('title', 'IndiaMART Settings') @section('content')

IndiaMART CRM Push API settings

@component('components.widget', ['class' => 'box-primary', 'title' => 'Webhook Configuration']) {!! Form::open(['url' => action([\Modules\IndiaMart\Http\Controllers\SettingsController::class, 'update']), 'method' => 'post']) !!}

Paste this URL into IndiaMART Lead Manager → Import/Export Leads → Push API → Other. IndiaMART requires a publicly accessible HTTPS URL; localhost cannot receive production leads.

{!! Form::label('lead_created_by', 'Lead created by') !!} {!! Form::select('lead_created_by', $users, $setting->lead_created_by, ['class' => 'form-control select2', 'placeholder' => 'Automatic']) !!}
{!! Form::label('assigned_to', 'Assign new leads to') !!} {!! Form::select('assigned_to', $users, $setting->assigned_to, ['class' => 'form-control select2', 'placeholder' => 'Same as creator']) !!}
{!! Form::label('source_id', 'Lead source') !!} {!! Form::select('source_id', $sources, $setting->source_id, ['class' => 'form-control select2', 'placeholder' => 'Create/use IndiaMART source']) !!}
{!! Form::label('life_stage_id', 'Initial life stage') !!} {!! Form::select('life_stage_id', $lifeStages, $setting->life_stage_id, ['class' => 'form-control select2', 'placeholder' => 'None']) !!}
{!! Form::close() !!} @endcomponent @component('components.widget', ['class' => 'box-info', 'title' => 'Recent IndiaMART Leads'])
@forelse($recentReceipts as $receipt) @empty @endforelse
Received Unique Query ID Type CRM Lead ID Details
{{ $receipt->received_at }} {{ $receipt->unique_query_id }} {{ $receipt->query_type }} {{ $receipt->contact_id }} @php($detail = $recentDetails->get($receipt->unique_query_id)) @if($detail) View imported data @else Legacy record @endif
No IndiaMART leads received yet.
@endcomponent
@endsection @section('javascript') @endsection