@extends('layouts.app') @section('title', 'Branch Statistics - Axis Max Life Admin') @section('header', 'Branch Statistics') @section('content')

Total Branches

{{ $stats['total_branches'] }}

Total Images

{{ $stats['total_images'] }}

Active Branches

{{ $stats['branches_with_images'] }}

{{ round(($stats['branches_with_images'] / max($stats['total_branches'], 1)) * 100, 1) }}% of total

Completed (5/5)

{{ $stats['max_uploaded_branches'] }}

branches reached maximum capacity

Upload Completion Rate

{{ round(($stats['total_images'] / ($stats['total_branches'] * 5)) * 100, 1) }}%

Average Images/Branch

{{ $stats['branches_with_images'] > 0 ? round($stats['total_images'] / $stats['branches_with_images'], 1) : 0 }}

per active branch

Empty Branches

{{ $stats['total_branches'] - $stats['branches_with_images'] }}

need attention

Recent Uploads

@forelse($stats['recent_uploads'] as $upload) @empty @endforelse
Branch Image Size Uploaded
{{ substr($upload->branch->branch_code, -4) }}
{{ $upload->branch->branch_code }}
{{ $upload->branch->branch_name ?? 'N/A' }}
{{ Str::limit($upload->original_name, 25) }}
{{ round($upload->file_size / 1024, 2) }} KB
{{ $upload->created_at->format('d M Y') }}
{{ $upload->created_at->diffForHumans() }}

No uploads yet

Images uploaded by branches will appear here

@if($stats['recent_uploads']->count() > 0)
Showing {{ $stats['recent_uploads']->count() }} most recent uploads View all branches
@endif
@endsection