@extends('portal.layouts.app') @section('title', 'Daily Lead Extracts') @section('subtitle', 'Leads handed to BankIslami for CBC calling') @section('content')
@if (auth()->user()->isAdmin() || auth()->user()->isEfuOps())
@csrf

Leave the dates blank to extract every lead that has not been sent before. Each lead can only appear in one extract.

@else

Download the latest extract, load it into the bank system, and call each customer to confirm their application. Then upload the CBC result file.

Go to file uploads
@endif
@forelse ($batches as $batch) @empty @endforelse
Batch Leads Contribution Generated
{{ $batch->batch_no }} {{ $batch->creator?->name }} {{ number_format($batch->total_rows) }} {{ number_format((float) ($batch->summary['gross_contribution'] ?? 0)) }} {{ $batch->created_at->format('d M Y H:i') }} Download CSV
No extracts have been generated yet.
@if ($batches->hasPages())
{{ $batches->links() }}
@endif
@endsection