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

Dashboard

Leads processed in the last 24 hours. Delete a lead to allow re-push on the next cron run.

@if ($company) Configure APIs @else Add company @endif
@if ($company)
Processed (24h){{ $stats['total'] }}
Pushed to Bitrix{{ $stats['pushed'] }}
Failed{{ $stats['failed'] }}

By portal

@forelse ($stats['by_portal'] as $portal => $count) {{ str_replace('_', ' ', $portal) }}: {{ $count }} @empty No leads processed in the last 24 hours. @endforelse

Recent leads

@forelse ($leads as $lead) @empty @endforelse
Portal External ID Bitrix ID Status Processed
{{ str_replace('_', ' ', $lead->portal) }} {{ $lead->external_lead_id }} {{ $lead->bitrix_lead_id ?: '—' }} {{ $lead->status }} @if ($lead->error_message)
{{ \Illuminate\Support\Str::limit($lead->error_message, 120) }}
@endif
{{ optional($lead->processed_at)->format('Y-m-d H:i') }}
@csrf @method('DELETE')
No leads yet for this company in the last 24 hours.
@endif @endsection