@extends('crm.layouts.master') @section('title','CRM') @section('page-css') @endsection @php $welcomeName = explode(' ', trim(Auth::user()->name ?? 'there'))[0]; $isManager = in_array(Auth::user()->access_level, ['Admin', 'Office Manager']); $depositSeries = json_decode($deposit_amount, true) ?: []; $depositCountSeries = json_decode($deposit_count, true) ?: []; $statusLabels = json_decode($lead_status, true) ?: []; $statusCounts = json_decode($status_count, true) ?: []; $qualifiedCount = 0; foreach ($statusLabels as $i => $label) { if (in_array($label, ['Deposit', 'In progress', 'Meeting'], true)) { $qualifiedCount += (int) ($statusCounts[$i] ?? 0); } } $qualifiedPct = $leads > 0 ? min(100, (int) round(($qualifiedCount / max(1, $leads)) * 100)) : 0; $dealsClosed = array_sum($depositCountSeries); $revenueMonth = $tradingStats['deposits_this_month'] ?? 0; @endphp @section('main-content')
Good Day,
Active Portal Clients
Total Users
{{ Auth::user()->access_level == 'Agent' ? 'Leads Allow' : 'Total Leads' }}
Offices
Desks
Leads Generated
Qualified Leads
{{ $qualifiedPct }}% of pipeline
Deals Closed
Last 30 days
Revenue Generated
This month
No lead status data yet.
@endifNo funnel data yet.
@endif| ID# | List Name | Priority | Office | Create Date | Total Leads | New | Call again | No answer | Not interested | Wrong Details | Deposit | In progress | Meeting | No money | Language barrier |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $list->id }} | {{ $list->list_name }} | {{ $list->priority }} | {{ $list->office_names }} | {{ date('d-m-Y', strtotime($list->create_date)) }} | {{ $list->total }} | {{ $list->new_count }} | {{ $list->call_again_count }} | {{ $list->no_answer_count }} | {{ $list->not_interested_count }} | {{ $list->wrong_details_count }} | {{ $list->deposit_count }} | {{ $list->in_progress_count }} | {{ $list->meeting_count }} | {{ $list->no_money_count }} | {{ $list->language_barrier_count }} |