@if(auth()->user()->isAdmin() OR auth()->user()->isComptable())
@else
@endif
accessible
Nouveaux Patients
{{ $patients }}
assignment
Consultations
{{ $consultations }}
vaccines
Hospitalisations
{{ $interventions }}
account_balance
Recette
{{ $recipe }}
/ {{ $dashboard->totalDue() }} {{ $currency_symbol }}
/ {{ $dashboard->totalDue() }} {{ $currency_symbol }}
accessible
Nouveaux Patients
{{ $patients }}
assignment
Consultations
{{ $consultations }}
vaccines
Hospitalisations
{{ $interventions }}
Statistique Générale
@if(auth()->user()->isAdmin())
@php
$dashboard = new \App\Models\Dashboard([
'dateStart' => date('Y-m-d 00:00'),
'dateEnd' => date('Y-m-d H:i'),
]);
@endphp
Recette du Jour
{{ $dashboard->recipe() }} / {{ $dashboard->totalDue() }} {{ $currency_symbol }}
@php
$dashboard = new \App\Models\Dashboard([
'dateStart' => date("Y-m-d", strtotime('monday this week')),
'dateEnd' => date('Y-m-d H:i'),
]);
@endphp
Recette de la Semaine
{{ $dashboard->recipe() }} / {{ $dashboard->totalDue() }} {{ $currency_symbol }}
@php
$dashboard = new \App\Models\Dashboard([
'dateStart' => date('Y-m-01 00:00'),
'dateEnd' => date('Y-m-d H:i'),
]);
@endphp
Recette du Mois
{{ $dashboard->recipe() }} / {{ $dashboard->totalDue() }} {{ $currency_symbol }}
@php
$dashboard = new \App\Models\Dashboard([
'dateStart' => date('Y-01-01 00:00'),
'dateEnd' => date('Y-m-d H:i'),
]);
@endphp
Recette de l'Année