@extends('layouts.app') @section('title', __('clinic.reports')) @section('heading', __('clinic.reports')) @section('subheading') {{ __('clinic.crm_reports_subheading', ['from' => $from->toFormattedDateString(), 'to' => $to->toFormattedDateString()]) }} @endsection @section('content')
{{ __('clinic.crm_leads_in_range') }}
{{ number_format($report['leads_in_range']) }}
{{ __('clinic.crm_new_customers') }}
{{ number_format($report['new_customers']) }}

{{ __('clinic.crm_by_source') }}

@forelse ($report['by_source'] as $row) @empty @endforelse
{{ __('clinic.crm_source') }}{{ __('clinic.crm_count') }}
{{ $row['label'] }} {{ number_format($row['count']) }}
{{ __('clinic.no_records') }}

{{ __('clinic.crm_by_stage') }}

@forelse ($report['by_stage'] as $row) @empty @endforelse
{{ __('clinic.crm_stage') }}{{ __('clinic.crm_count') }}
{{ $row['label'] }} {{ number_format($row['count']) }}
{{ __('clinic.no_records') }}
@endsection