@extends('layouts.app') @section('title', 'Configure '.$company->name) @section('content')

{{ $company->name }}

Configure Bitrix24 + portal APIs, map fields, and copy cron URLs.

View dashboard
@csrf @method('PUT')

Cron job links (run every 5 minutes)

These pull leads from the last 24 hours and skip already-pushed leads.

@foreach (['bayut' => 'Bayut', 'dubizzle' => 'Dubizzle', 'property_finder' => 'Property Finder'] as $portal => $label)
{{ $label }}
{{ $company->cronUrl($portal) }}
@endforeach
@csrf

Webhook URLs (Bayut / Dubizzle Push API)

Register these with Bayut/Dubizzle support. Signature header is verified when secret key is saved.

Bayut
{{ $company->webhookUrl('bayut') }}
Dubizzle
{{ $company->webhookUrl('dubizzle') }}
{{-- Bitrix --}} @php $bitrix = $integrations->get('bitrix'); $bitrixCreds = $bitrix?->credentials_array ?? []; @endphp

Bitrix24 API

@csrf @method('PUT')
{{-- Bayut --}} @php $bayut = $integrations->get('bayut'); $bayutCreds = $bayut?->credentials_array ?? []; @endphp

Bayut API

@csrf @method('PUT')
{{-- Dubizzle --}} @php $dubizzle = $integrations->get('dubizzle'); $dubizzleCreds = $dubizzle?->credentials_array ?? []; @endphp

Dubizzle API

@csrf @method('PUT')
{{-- Property Finder --}} @php $pf = $integrations->get('property_finder'); $pfCreds = $pf?->credentials_array ?? []; @endphp

Property Finder API

@csrf @method('PUT')
{{-- Field mappings --}} @foreach (['bayut' => 'Bayut', 'dubizzle' => 'Dubizzle', 'property_finder' => 'Property Finder'] as $portal => $label) @php $portalMappings = ($mappings[$portal] ?? collect())->values(); if ($portalMappings->isEmpty()) { $portalMappings = collect([['source_field' => '', 'bitrix_field' => '', 'static_value' => '']]); } @endphp

Field mapping — {{ $label }} → Bitrix24

Choose which portal field maps to which Bitrix lead field. Use static value for fixed text (e.g. source name).

@csrf @method('PUT')
@foreach ($portalMappings as $index => $mapping)
@endforeach
@endforeach
@csrf @method('DELETE')
@push('scripts') @endpush @endsection