@extends('layouts.app') @section('content')

CRM Reports

Shared reports from leads, calls, deals and follow-ups.
Back to Leads
@foreach(['leads'=>'Lead Report','calls'=>'Call Activity','deals'=>'Deal Pipeline','follow_ups'=>'Follow-up Report'] as $key=>$label){{ $label }}@endforeach
LEADS{{ $metrics->leads }}
CONVERTED{{ $metrics->converted }}
CONVERSION RATE{{ number_format($metrics->conversion_rate,1) }}%
OPEN PIPELINE VALUE{{ \App\Models\SystemSetting::formatMoney($metrics->pipeline_value) }}
@if($reportType==='leads')@elseif($reportType==='calls')@elseif($reportType==='deals')@else@endif@forelse($rows as $row)@if($reportType==='leads')@elseif($reportType==='calls')@elseif($reportType==='deals')@else@endif @empty@endforelse
Lead NoProspectSourceStatusAssignedConvertedCreated
DateCall NoAgentOutcomeRelated TypeRelated RecordSubject
Deal NoCustomerStageStatusValueAssignedExpected Close
DueSubjectStatusPriorityUserRelated TypeRelated Record
{{ $row->lead_no }}{{ $row->display_name }}{{ $row->source }}{{ ucfirst($row->status) }}{{ $row->assignedUser?->name }}{{ $row->converted_at?->format('Y-m-d')?:'-' }}{{ $row->created_at?->format('Y-m-d') }}
{{ $row->call_date?->format('Y-m-d H:i') }}{{ $row->call_no }}{{ $row->receiver?->name }}{{ ucwords(str_replace('_',' ',$row->outcome?:$row->status)) }}{{ class_basename($row->callable_type) }}{{ $row->caller_name }}{{ $row->subject }}
{{ $row->deal_no }}{{ $row->customer_name }}{{ ucwords(str_replace('_',' ',$row->stage)) }}{{ ucfirst($row->status) }}{{ \App\Models\SystemSetting::formatMoney($row->expected_value) }}{{ $row->assignedUser?->name }}{{ $row->expected_close_date?->format('Y-m-d')?:'-' }}
{{ $row->due_at?->format('Y-m-d H:i') }}{{ $row->subject }}{{ $row->display_status }}{{ ucfirst($row->priority) }}{{ $row->assignedUser?->name }}{{ class_basename($row->followable_type) }}{{ $row->followable?->display_name??$row->followable?->customer_name??$row->followable?->name??'-' }}
No report records found.
{{ $rows->links('vendor.pagination.jevapos') }}
@endsection