@extends('layouts.app') @section('title', 'Company Statistics: ' . $company->name) @section('content')
Back to Company

Statistics: {{ $company->name }}

@php $stats = $company->getDetailedStatistics(); @endphp

License Information

License Type

{{ $stats['license']['type'] }}

Status

{{ $stats['license']['status'] }}

Expiry Date

{{ $stats['license']['expiry_date'] }}

@if($stats['license']['days_until_expiry'] < 30)

{{ abs($stats['license']['days_until_expiry']) }} days {{ $stats['license']['is_expired'] ? 'expired' : 'remaining' }}

@endif

User Statistics

Total Users

{{ $stats['users']['total'] }}

Active Users

{{ $stats['users']['active'] }}

Usage

{{ number_format($stats['users']['usage_percentage'], 1) }}%

{{ $stats['users']['remaining'] }} remaining of {{ $stats['users']['limit'] }}

Inactive Users

{{ $stats['users']['inactive'] }}

Department Statistics

Total Departments

{{ $stats['departments']['total'] }}

Active Departments

{{ $stats['departments']['active'] }}

Usage

{{ number_format($stats['departments']['usage_percentage'], 1) }}%

{{ $stats['departments']['remaining'] }} remaining of {{ $stats['departments']['limit'] }}

Inactive Departments

{{ $stats['departments']['inactive'] }}

@php $hseMetrics = $company->getHSEMetrics(); @endphp

HSE Metrics

HSE Policies

{{ $hseMetrics['policies_count'] }}

Safety Standards

{{ $hseMetrics['standards_count'] }}

Certifications

{{ $hseMetrics['certifications_count'] }}

Compliance Score

{{ $hseMetrics['compliance_score'] }}%

Company Information

Industry Type

{{ $hseMetrics['industry_type'] }}

Employee Count

{{ $hseMetrics['employee_count'] ?? 'N/A' }}

@endsection