@include('admin.header', [ 'title' => 'BAOPCL Dashboard', 'active' => 'dashboard', 'searchPlaceholder' => 'Search leads, exhibitions, products, batches...' ])

BAOPCL Operations

Products | Exhibitions | Buyer Leads

Live view of organic ginger products, available stock, buyer enquiries, exhibition QR scans, certificates, and lab-report readiness.

{{ number_format($stats['leads']) }}
Leads
{{ number_format($stats['scan_events']) }}
Scans
{{ number_format($stats['available_batches']) }}
Batches
{{ number_format($stats['current_certificates']) }}
Certificates
Total Leads
0
{{ number_format($stats['scanner_leads']) }} scanner, {{ number_format($stats['website_leads']) }} website
Active Exhibitions
0
{{ number_format($stats['exhibitions']) }} total exhibitions
Available Stock
0
{{ $stats['stock_unit'] }} across {{ number_format($stats['available_batches']) }} batches
QR Conversion
0%
{{ number_format($stats['unique_sessions']) }} unique scan sessions

Lead & QR Activity

Last 7 days

Lead Source Mix

Stock by Product

Manage batches

Quality Readiness

Products
{{ number_format($stats['products']) }}
Reports
{{ number_format($stats['active_lab_reports']) }}
Blogs
{{ number_format($stats['published_blogs']) }}
@php $qualityTotal = max(1, $stats['current_certificates'] + $stats['active_lab_reports'] + $stats['available_batches']); $qualityPercent = min(100, round((($stats['current_certificates'] + $stats['active_lab_reports']) / $qualityTotal) * 100)); @endphp
Certificates + Reports {{ $qualityPercent }}%
Current Certificates{{ number_format($stats['current_certificates']) }}
Active Lab Reports{{ number_format($stats['active_lab_reports']) }}
Available Batches{{ number_format($stats['available_batches']) }}

QR Sessions

Recent Leads

View all
@forelse ($recentLeads as $lead)
{{ $lead->name }}
{{ $lead->exhibition?->name ?: ucfirst($lead->source).' lead' }} - {{ optional($lead->submitted_at)->format('d M, h:i A') }}
{{ ucfirst($lead->source) }}
@empty
No leads yet
@endforelse

Latest Batches

Batch reports
@forelse ($recentBatches as $batch) @empty @endforelse
Batch Product Remaining Reports Status
{{ $batch->batch_number }} {{ $batch->productLabel() }} {{ number_format((float) $batch->remaining_quantity, 2) }} {{ $batch->quantity_unit }} {{ $batch->activeLabReports->count() }} {{ $batch->status() }}
No batches available.

Top Exhibitions

@forelse ($topExhibitions as $exhibition)
{{ $exhibition->name }}
{{ number_format($exhibition->scan_events_count) }} scans, {{ number_format($exhibition->submissions_count) }} leads
{{ number_format($exhibition->conversionRate(), 1) }}%
@empty
No exhibitions yet
@endforelse
@push('scripts') @endpush @include('admin.footer')