@extends('admin.main') @section('content') @if($user->role == "1")
Total Leads
{{($leads_data->total_leads)?$leads_data->total_leads:0}}
Total Appointments
{{($appointments->total_counts)?$appointments->total_counts:0}}
Leads Into Appointments
{{($appointments->leads_into_appointment)?$appointments->leads_into_appointment:0}}
Recommended Procedure Done Surgeries
{{($rec_procedure)?$rec_procedure:0}} VS 0
Leads by Source
Lead Stages
@if(count($stage_list) > 0) @foreach($stage_list as $stage) @if($stage['name'] != 'SURGICAL ESTIMATE') @endif @endforeach @endif
@php $sName = strtolower($stage['name']); @endphp {{ ucfirst($sName) }}

{{$stage['count']}}

Total Dropped Leads

{{$totalDroppedCount}}

Dropped Leads
@if(count($regionsWithCount) > 0) @foreach($regionsWithCount as $region) @endforeach @endif
@php $rName = strtolower($region['name']); @endphp {{ ucfirst($rName) }}

{{$region['count']}}

Daily Patient Statistics

New Patient Consultations Today
{{$new_patient_appointment}}
Follow-up Patients Today
0
@elseif($user->role == "2")
Lead Stages
@if(count($stage_list) > 0) @foreach($stage_list as $stage) @endforeach @endif
@php $sName = strtolower($stage['name']); @endphp {{ ucfirst($sName) }}

{{$stage['count']}}

Dropped Leads
@if(count($regionsWithCount) > 0) @foreach($regionsWithCount as $region) @endforeach @endif
@php $rName = strtolower($region['name']); @endphp {{ ucfirst($rName) }}

{{$region['count']}}

@elseif($user->role == "5") @elseif($user->role == "8")
Procedure Advised

{{$procedureAdviceCount}}

Package Counselling

{{ $packageCounsellingCount }}

Surgery

{{ $surgeryCount }}

Follow-up

{{ $followUpCount }}

@elseif($user->role == "9") @elseif($user->role == "10") @else
@if($user && $user->role == 3)
Upcoming Reminder Notifications
    @foreach($remainders as $remin)
  • {{$remin->subject}} {{ $remin->reminder_at }}
    New
  • @endforeach
Upcoming Appointments
    @if($appointments1->isNotEmpty()) @foreach($appointments1 as $k => $booking) @if((strtotime($booking->appointment_date) > strtotime(date("d-m-Y"))) || (strtotime($booking->appointment_date) == strtotime(date("d-m-Y")) && strtotime($booking->start_time) >= strtotime(date("H:i:s"))))
  • DateTime: {{ $booking->appointment_date }} {{ $booking->start_time }} to {{ $booking->end_time }}
    New
  • @endif @endforeach @else
  • No appointments for today
  • @endif
@include('admin.appointment-modal') @else

Doctors

{{$total_doctor}}+

Patients

{{$total_patient}}+

Staff

{{$total_staff}}+

@endif
@endif @endsection