@extends('branch.layout.master')
@section('title', 'إحصائيات الأحداث')
@section('style')
@endsection
@section('content')
    
        
         {{-- Changed color to blue for total --}}
            {{ $statistics['monthlyEvents'] }}
             حدث {{-- Added "حدث" (event) --}}
        
        
             مجموع الأحداث في هذا الشهر {{-- Descriptive text --}}
        
        
            
                {{-- Assuming a progress bar for total events would show 100% relative to a monthly goal or simply fill --}}
                
             
            100% {{-- Assuming total events is always 100% of itself --}}
        
 
     
    
        
         {{-- Kept orange for pending --}}
            {{ $statistics['pendingEvents'] }}
             حدث
        
        
             من إجمالي {{ $statistics['monthlyEvents'] }} حدث {{-- Descriptive text --}}
        
        
            
                @php
                $pendingPercentage = ($statistics['monthlyEvents'] > 0) ? round(($statistics['pendingEvents'] / $statistics['monthlyEvents']) * 100) : 0;
                @endphp
                
             
            {{ $pendingPercentage }}%
         
     
    
        
         {{-- Changed color to green for conforming --}}
            {{ $statistics['conformingEvents'] }}
             حدث
        
        
             من إجمالي {{ $statistics['monthlyEvents'] }} حدث
        
        
            
                @php
                $conformingPercentage = ($statistics['monthlyEvents'] > 0) ? round(($statistics['conformingEvents'] / $statistics['monthlyEvents']) * 100) : 0;
                @endphp
                
             
            {{ $conformingPercentage }}%
         
     
 
@endsection