@extends('adminlte::page')
@section('content_wrapper_class', 'bg-white')
@section('content_header')
{{ __('global.Dashboard') }}
{{ __('global.Welcome') }}
@endsection
@section('content')
@lang('global.Usagers')
@php
$total_usagers = get_all_usagers()->count();
$total_uo_particular = get_total_usager_by_category('LIB_CATEGORIE_PARTICULIER');
$total_uo_enterprise = get_total_usager_by_category('LIB_CATEGORIE_ENTREPRISE');
$total_uo_other = get_total_usager_by_category('LIB_CATEGORIE_AUTRE');
$total_uo_other_percentage = $total_uo_particular_percentage = $total_uo_enterprise_percentage = 0;
if($total_usagers) {
$total_uo_other_percentage = number_format($total_uo_other/$total_usagers*100);
$total_uo_particular_percentage = $total_uo_particular/$total_usagers*100;
$total_uo_enterprise_percentage = $total_uo_enterprise/$total_usagers*100;
}
@endphp
@endsection
@can('dashboard')
@section('adminlte_js')
@endsection
@endcan