@extends('layouts.app') @section('title', $company->name) @section('content')

Company Information

Company Name

{{ $company->name }}

@if($company->isParentCompany()) Parent Company @elseif($company->isSisterCompany()) Sister Company @endif

Status

@if($company->is_active) Active @else Inactive @endif
@if($company->parentCompany) @endif @if($company->sisterCompanies()->count() > 0)

Sister Companies

@foreach($company->sisterCompanies as $sister) @endforeach
@endif @if($company->description)

Description

{{ $company->description }}

@endif

Industry Type

{{ ucfirst(str_replace('_', ' ', $company->industry_type ?? 'N/A')) }}

Country

{{ $company->country ?? 'N/A' }}

License Information

License Type

{{ ucfirst($company->license_type ?? 'N/A') }}

License Expiry

{{ $company->license_expiry ? $company->license_expiry->format('M d, Y') : 'N/A' }} @if($company->license_expiry && $company->license_expiry->isPast()) Expired @elseif($company->license_expiry && $company->license_expiry->diffInDays(now()) <= 30) Expiring Soon @endif

Max Users

{{ number_format($company->max_users ?? 0) }}

Max Departments

{{ number_format($company->max_departments ?? 0) }}

@if($company->email || $company->phone || $company->address)

Contact Information

@if($company->email)

Email

{{ $company->email }}

@endif @if($company->phone)

Phone

{{ $company->phone }}

@endif @if($company->website) @endif @if($company->address)

Address

{{ $company->address }}

@if($company->city || $company->state || $company->postal_code)

{{ $company->city }}{{ $company->state ? ', ' . $company->state : '' }} {{ $company->postal_code ?? '' }}

@endif
@endif
@endif

Statistics

Total Users

{{ $statistics['total_users'] }}

{{ $statistics['active_users'] }} active

Total Departments

{{ $statistics['total_departments'] }}

{{ $statistics['active_departments'] }} active

License Usage

{{ number_format($statistics['license_usage_percentage'], 1) }}% used

@if($statistics['days_until_expiry'] !== null)

Days Until Expiry

{{ $statistics['days_until_expiry'] }}

@endif

Quick Actions

View Users View Departments View Statistics @if($company->is_active)
@csrf
@else
@csrf
@endif
@endsection