@php
$identity = \App\Helper\ClinicIdentityHelper::getActiveIdentity();
@endphp
{{ __('dashboard.welcome') }}, {{ Auth::user()->name }}
{{ \Carbon\Carbon::now()->isoFormat('dddd, D [de] MMMM [de] YYYY') }}
@if($identity)
{{ $identity->name }}
@if($identity->specialty)
{{ $identity->specialty }}
@endif
@endif
@if(isset($paymentTotals) && count($paymentTotals) > 0)
@endif
{{__('dashboard.patientRegistered')}}
{{ $patientsMinorThat18 + $patientsMajorThat18 }}
{{ $patientsMinorThat18 }} menores / {{ $patientsMajorThat18 }} adultos
@if(in_array(\App\Models\Settings::APPOINTMENT_ONLY_MODE, $accessMode) || in_array(\App\Models\Settings::FULL_ACCESS_MODE, $accessMode))
{{__('dashboard.appointmentsToday')}}
{{ $appointmentsToday }}
@if($appointmentsToday > 0)
{{__('dashboard.active')}}
@endif
Para hoy {{ \Carbon\Carbon::now()->format('d/m/Y') }}
{{__('dashboard.appointmentsViews')}}
{{ $appointmentsViews }}
@if($appointmentsViews > 0)
{{__('dashboard.completed')}}
@endif
Consultas completadas
Próxima Cita
@if($appointmentsToday > 0)
@php
$nextAppointment = \App\Models\Appointments::where("active", "1")
->whereDate('date', \Carbon\Carbon::today())
->where('date', '>=', \Carbon\Carbon::now())
->orderBy('date', 'asc')
->first();
if (!$nextAppointment) {
$nextAppointment = \App\Models\Appointments::where("active", "1")
->whereDate('date', \Carbon\Carbon::today())
->orderBy('date', 'asc')
->first();
}
$hora = $nextAppointment ? (new DateTime($nextAppointment->date))->format('H:i') : '-';
@endphp
{{ $hora }}
{{ __('dashboard.today') }}
@else
-
Sin citas programadas
@endif
@endif