@extends('layouts.app') @section('title', 'My Dashboard') @section('page-title', 'My Dashboard') @section('content')
Hey, {{ auth()->user()->name }} 👋

Here's a summary of your lead activity.

@foreach(['today'=>'Today','week'=>'This Week','month'=>'This Month','year'=>'This Year'] as $k=>$lbl) {{ $lbl }} @endforeach New Lead
{{-- Stats --}}
{{ $totalLeads }}
My Leads
{{ $soldLeads }}
Deals Closed
{{ $activeLeads }}
In Pipeline
{{ $totalLeads > 0 ? round(($soldLeads/$totalLeads)*100,1) : 0 }}%
Conversion
{{-- Trend --}}
My Lead Activity
{{-- Pipeline --}}
My Pipeline
@foreach($pipeline as $p) @php $opt = $statuses->firstWhere('value', $p->status); @endphp
{{ $opt?->label ?? $p->status }} {{ $p->total }}
@endforeach
{{-- Recent Leads --}}
Recent Leads View All
@forelse($recentLeads as $lead) @empty @endforelse
ClientServicesStatusDate
{{ $lead->client_name }}
{{ $lead->lead_number }}
@foreach($lead->services->take(2) as $svc) {{ Str::limit($svc->label, 18) }} @endforeach {{ $lead->status_label }} {{ $lead->created_at->format('M d') }}
No leads yet.
{{-- My Activity --}}
My Activity All
@forelse($myActivity as $log)
{{ $log->description }}
{{ $log->created_at->diffForHumans() }}
@empty

No activity yet.

@endforelse
@endsection @push('scripts') @endpush