4
Leads
15K rowsTwo filters here are plain functions that rewrite the query, for rules a checkbox or range can't express.
Pick leads not contacted in 90 days, then Over ₹20L.
|
Lead
|
Deal
| Stage | Source | Owner |
Last contact
|
|---|---|---|---|---|---|
|
AR
Aadhya Reddy
Tech Digital Corp
| ₹49,99,854 |
Contacted
|
IC
Ishita Chatterjee
|
29 Nov 2025
350 days ago
|
|
|
AN
Ankit Naidu
Info Digital Pvt
| ₹49,98,537 |
Proposal
|
CH
Chirag Hegde
|
02 Nov 2025
377 days ago
|
|
|
DY
Deepak Yadav
Reliance Global LLP
| ₹49,97,827 |
New
| Call |
AK
Akash Krishnan
|
20 Oct 2025
390 days ago
|
|
KY
Kartik Yadav
Smart Solutions Ltd
| ₹49,97,765 |
Contacted
| Referral |
BK
Bhavna Kapoor
|
17 Nov 2025
362 days ago
|
|
LM
Lakshmi Mukherjee
Larsen Solutions Corp
| ₹49,97,410 |
New
| Cold |
SS
Siddhant Saxena
|
07 Nov 2025
372 days ago
|
|
PR
Prateek Roy
Godrej Services Pvt
| ₹49,97,369 |
New
|
BK
Bhavna Kapoor
|
13 Nov 2025
366 days ago
|
|
|
MM
Madhuri Mishra
Info Systems Corp
| ₹49,97,200 |
Contacted
|
UK
Uma Kulkarni
| Never | |
|
RT
Rohan Thakur
Reliance Technologies Corp
| ₹49,96,788 |
Contacted
| Website |
LI
Lakshmi Iyer
|
26 Nov 2025
353 days ago
|
|
AC
Ankit Chauhan
Larsen Ventures Inc
| ₹49,96,781 |
Qualified
| Partner |
AK
Akash Krishnan
|
05 Dec 2025
344 days ago
|
|
AY
Amit Yadav
HCL Labs Pvt
| ₹49,96,475 |
Contacted
|
SM
Suresh Mukherjee
|
28 Nov 2025
351 days ago
|
|
|
RN
Rahul Nair
Wipro Dynamics Inc
| ₹49,96,443 |
Proposal
|
AM
Akash Mukherjee
| Never | |
|
HM
Heena Mishra
Infosys Digital Inc
| ₹49,96,153 |
Negotiation
| Show |
MT
Mohit Tiwari
|
08 Dec 2025
341 days ago
|
|
AK
Ananya Kulkarni
Birla Networks LLP
| ₹49,96,101 |
Proposal
| Show |
CK
Chetna Kulkarni
|
24 Nov 2025
355 days ago
|
|
NS
Neha Subramaniam
Bharti Services Pvt
| ₹49,95,575 |
Won
| Referral |
DA
Deepika Agarwal
|
01 Nov 2025
378 days ago
|
|
HS
Harini Subramaniam
Bharti Systems Inc
| ₹49,95,103 |
Lost
|
GB
Garima Bhattacharya
|
19 Nov 2025
360 days ago
|
|
|
AS
Arjun Sharma
Reliance Dynamics Inc
| ₹49,94,722 |
Lost
| Partner |
JS
Jaya Sharma
| Never |
|
SC
Sachin Chauhan
Wipro Networks India
| ₹49,94,445 |
Qualified
| Cold |
KR
Kirti Rao
| Never |
|
AK
Aryan Krishnan
Larsen Technologies Corp
| ₹49,94,006 |
Contacted
| Referral |
AJ
Aditya Joshi
|
21 Oct 2025
389 days ago
|
|
AB
Aman Banerjee
Bharti Services LLP
| ₹49,93,915 |
Qualified
| Website |
VR
Vidya Rajput
|
01 Dec 2025
348 days ago
|
|
RY
Ramesh Yadav
Info Technologies Pvt
| ₹49,93,887 |
Negotiation
| Cold |
CH
Chirag Hegde
|
08 Nov 2025
371 days ago
|
|
SG
Sahil Gupta
Tata Systems Ltd
| ₹49,93,791 |
Won
| Campaign |
RM
Ravi Mehta
|
13 Dec 2025
336 days ago
|
|
SM
Sneha Menon
Smart Digital Ltd
| ₹49,93,786 |
New
|
VR
Vidya Rajput
| Never | |
|
CD
Chetna Das
Tech Networks Group
| ₹49,93,744 |
Lost
| Referral |
LI
Lakshmi Iyer
|
29 Oct 2025
381 days ago
|
|
MC
Mitali Chowdhury
Digital Ventures Ltd
| ₹49,93,709 |
Contacted
| Ads |
GS
Ganesh Shetty
|
11 Dec 2025
338 days ago
|
|
NS
Nandini Sinha
Larsen Technologies India
| ₹49,93,190 |
Contacted
|
SM
Suresh Mukherjee
|
13 Nov 2025
366 days ago
|
# In your LiveView
def mount(_params, _session, socket) do
{:ok, assign(socket, :data_provider, {__MODULE__, :leads, []})}
end
def leads do
from l in Demo.Leads.Lead,
join: src in assoc(l, :source),
as: :source,
join: stg in assoc(l, :stage),
as: :stage,
join: rep in assoc(l, :sales_rep),
as: :sales_rep,
select: %{
id: l.id,
name: l.name,
company_name: l.company_name,
deal_value: l.deal_value,
is_hot: l.is_hot,
last_contacted_at: l.last_contacted_at,
source: src.name,
stage: stg.name,
stage_position: stg.position,
rep: rep.name
}
end
def fields do
[
id: %{label: "ID", hidden: true},
name: %{label: "Lead", sortable: true, searchable: true, renderer: &lead/2},
deal_value: %{label: "Deal", sortable: true, renderer: &money/1},
stage: %{label: "Stage", assoc: {:stage, :name}, renderer: &stage/2},
source: %{label: "Source", assoc: {:source, :name}, renderer: &source/1},
rep: %{label: "Owner", searchable: true, assoc: {:sales_rep, :name}, renderer: &owner/1},
last_contacted_at: %{label: "Last contact", sortable: true, renderer: &ago/1},
company_name: %{label: "Company", searchable: true, hidden: true},
is_hot: %{label: "Hot", hidden: true},
stage_position: %{label: "Stage position", hidden: true}
]
end
# A Transformer is a filter that gets the query and returns a new one: any logic you like.
def filters do
[
quiet:
Transformer.new("quiet", %{
render: &quiet_filter/1,
query_transformer: ¬_contacted_in/2
}),
tier:
Transformer.new("tier", %{
render: &tier_filter/1,
query_transformer: &deal_tier/2
}),
stage:
Select.new({:stage, :name}, "stage", %{
label: "Stage",
mode: :tags,
options_source: {Demo.Leads, :search_stages, []}
}),
hot: Boolean.new(:is_hot, "hot", %{label: "Hot leads", condition: dynamic([l], l.is_hot)})
]
end
def table_options do
%{
pagination: %{sizes: [10, 25, 50], default_size: 25},
sorting: %{default_sort: [deal_value: :desc]},
search: %{placeholder: "Search lead, company or owner"},
exports: %{enabled: false},
max_filters: 4,
fixed_header: true
}
end