@extends('layouts.admin.default') @section('content')
@if($user->type==\App\Enums\Main\UserTypeEnum::DOCTOR)
{{__("total sessions")}}
{{$user->bookings()->whereMonth('date', now()->month) // Filtering bookings for the current month ->whereYear('date', now()->year)->count()}}
{{__("total salary")}}
{{$user->salary}} {{($user?->country?->code=="971"?"AED":"JOD")}}
{{__("extra time")}} ({{$user->extraTime}})
{{$user->extraFee}} {{($user?->country?->code=="971"?"AED":"JOD")}}
{{__("total paid")}}
{{$user->totalPaid}} {{($user?->country?->code=="971"?"AED":"JOD")}}
{{__("Remaining Payment")}}
{{$user->remainingPayment}} {{($user?->country?->code=="971"?"AED":"JOD")}}
@endif
{{$user->name}}
{{$user->phone}}
{{$user->email}}
  • {{__('bookings')}}
    {{$user->bookings->count()}}
  • {{__('patients')}}
    {{$user->bookings->count('patient_id')}}
  • {{__('income')}}
    ${{$user->bookings->sum('paid_price')}}
{{__("profile")}}
{{__("working hours")}}
@if(auth()->user()->type ==\App\Enums\Main\UserTypeEnum::ADMIN)
{{-- --}} @else @endif
{{__("change password")}}
@endsection