@extends("admin.template", ["pageTitle"=>$pageTitle]) @section('content') {{-- --}}
Dashboard
@if (Session::has('success'))
{{ Session::get('success') }}
@endif @if (isset($error))
{{ $error }}
@endif

Overview

@php $totalPets = max($registeredPets['totaRegisteredPets'] ?? 1, 1); $dogCount = $registeredPets['DogCount'] ?? 0; $catCount = $registeredPets['CatCount'] ?? 0; $birdCount = $registeredPets['BirdCount'] ?? 0; @endphp

Registered Pet

{{ $totalPets }}

Show details

Registered Pets
Total: {{ $totalPets }}
Dogs {{ $dogCount }} {{ number_format(($totalPets > 0 ? ($dogCount / $totalPets) * 100 : 0), 1) }}%
Cats {{ $catCount }} {{ number_format(($totalPets > 0 ? ($catCount / $totalPets) * 100 : 0), 1) }}%
Birds {{ $birdCount }} {{ number_format(($totalPets > 0 ? ($birdCount / $totalPets) * 100 : 0), 1) }}%
@php $totalCustomers = max($customerTotal ?? 1, 1); $activeCustomers = $customerActive ?? 0; @endphp

Registered Customer

{{ $totalCustomers }}

Show details

Registered Customer
Total: {{ $totalCustomers }}
Active Customer {{ $activeCustomers }} {{ number_format(($totalCustomers > 0 ? ($activeCustomers / $totalCustomers) * 100 : 0), 1) }}%
@php $totalDoctors = max($doctorTotal ?? 1, 1); $activeDoctors = $doctorActive ?? 0; $totalAppointments = max($appointmentTotal ?? 1, 1); $pendingAppointments = $appointmentPending ?? 0; $completedAppointments = $appointmentCompleted ?? 0; @endphp

Clinic Consultations

{{ $totalAppointments }}

Show details

Clinic Consultations
Total: {{ $totalAppointments }}
Doctors Registered {{ $activeDoctors }} {{ number_format(($totalDoctors > 0 ? ($activeDoctors / $totalDoctors) * 100 : 0), 1) }}%
Consultation Pending {{ $pendingAppointments }} {{ number_format(($totalAppointments > 0 ? ($pendingAppointments / $totalAppointments) * 100 : 0), 1) }}%
Consultation Completed {{ $completedAppointments }} {{ number_format(($totalAppointments > 0 ? ($completedAppointments / $totalAppointments) * 100 : 0), 1) }}%
@php $totalShipments = max($shipmentTotalRequest ?? 1, 1); $inquiryPending = $shipmentInquiryPending ?? 0; $inquiryResponded = $shipmentInquiryResponded ?? 0; $shipmentsConfirmed = $shipmentConfirmed ?? 0; $shipmentsDelivered = $shipmentDelivered ?? 0; @endphp
Shipment

Shipment

{{ $totalShipments }}

Show details

Shipment
Shipment Request
Total: {{ $totalShipments }}
Inquiry Pending {{ $inquiryPending }} {{ number_format(($totalShipments > 0 ? ($inquiryPending / $totalShipments) * 100 : 0), 1) }}%
Inquiry Responded {{ $inquiryResponded }} {{ number_format(($totalShipments > 0 ? ($inquiryResponded / $totalShipments) * 100 : 0), 1) }}%
Shipment Confirmed {{ $shipmentsConfirmed }} {{ number_format(($totalShipments > 0 ? ($shipmentsConfirmed / $totalShipments) * 100 : 0), 1) }}%
Shipment Delivered {{ $shipmentsDelivered }} {{ number_format(($totalShipments > 0 ? ($shipmentsDelivered / $totalShipments) * 100 : 0), 1) }}%
@php $totalVendors = max($vendorTotal ?? 1, 1); $totalProducts = $vendorProduct ?? 0; $pendingOrders = $ordersPending ?? 0; $deliveredOrders = $ordersDelivered ?? 0; $totalOrders = max(($pendingOrders + $deliveredOrders), 1); @endphp
Ecommerce

Ecommerce

{{ $totalVendors }}

Show details

Vendors
{{ $totalVendors }}
Vendor Products {{ $totalProducts }} {{ number_format(($totalVendors > 0 ? ($totalProducts / $totalVendors) : 0), 1) }} per vendor
Orders Pending {{ $pendingOrders }} {{ number_format(($totalOrders > 0 ? ($pendingOrders / $totalOrders) * 100 : 0), 1) }}%
Orders Delivered {{ $deliveredOrders }} {{ number_format(($totalOrders > 0 ? ($deliveredOrders / $totalOrders) * 100 : 0), 1) }}%
@if(isset($petCateWiseAppointments) && isset($petCateWiseShipment))
@endif
@if(isset($topDoctor) && isset($topDoctor->doctor))

Top Performing Doctors

Doctor Banner
Doctor Profile
{{ $topDoctor->doctor->name ?? 'N/A' }}

Experience: {{ $topDoctor->doctor->experience ?? 'N/A' }}

Patients

{{ $topDoctor->patientCount ?? 0 }}

{{ ($topDoctor->doctor->education ?? 'N/A') . ' - ' . ($topDoctor->doctor->expertise ?? 'N/A') }}

Rating

{{ number_format($doctor->rating_avg_rating ?? 0, 1) }}

@else

Top Performing Doctors

No doctor data available

@endif

Top Performing Vendor

Vendor Banner
Vendor Profile
@if(isset($topVendor) && isset($topVendor->Vendor))
{{ $topVendor->Vendor->vendor_name ?? 'N/A' }}

{{ $topVendor->Vendor->business_name ?? 'N/A' }}


Items Sold

{{ $bestSellingProduct->total_sales ?? 0 }}

@else

No vendor data available

@endif
@endsection @section('footer-script') {{-- --}} @endsection