@extends('dashboard.admin.layouts.master') @section('content')

{{ trans('clinic.reports.title') }}

@if ($branches->isNotEmpty())
@endif
{{ trans('clinic.reports.total_bookings') }}
{{ $totals['total'] }}
{{ trans('clinic.bookings.statuses.pending') }}
{{ $totals['pending'] }}
{{ trans('clinic.bookings.statuses.confirmed') }}
{{ $totals['confirmed'] }}
{{ trans('clinic.bookings.statuses.completed') }}
{{ $totals['completed'] }}
{{ trans('clinic.bookings.statuses.cancelled') }}
{{ $totals['cancelled'] }}
{{ trans('clinic.reports.revenue') }}
{{ number_format($revenue, 2) }}

{{ trans('clinic.reports.doctor_performance') }}

@forelse($doctorRows as $row) @empty @endforelse
{{ trans('clinic.doctors.title') }} {{ trans('clinic.doctors.specialty') }} {{ trans('clinic.reports.bookings_in_range') }} {{ trans('clinic.reviews.rating') }}
{{ $row['doctor']->name }} {{ $row['doctor']->specialty->name }} {{ $row['bookings_count'] }} {{ $row['avg_rating'] !== null ? $row['avg_rating'].' / 5' : trans('clinic.reports.no_ratings') }}
{{ trans('clinic.common.no_records') }}
@endsection