@extends('layouts.app')
@section('title', 'Configure '.$company->name)
@section('content')
{{ $company->name }}
Configure Bitrix24 + portal APIs, map fields, and copy cron URLs.
View dashboard
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
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
{{-- Bayut --}}
@php $bayut = $integrations->get('bayut'); $bayutCreds = $bayut?->credentials_array ?? []; @endphp
{{-- Dubizzle --}}
@php $dubizzle = $integrations->get('dubizzle'); $dubizzleCreds = $dubizzle?->credentials_array ?? []; @endphp
{{-- Property Finder --}}
@php $pf = $integrations->get('property_finder'); $pfCreds = $pf?->credentials_array ?? []; @endphp
{{-- 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).
@endforeach
@push('scripts')
@endpush
@endsection