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

{{ $company->name }}

@if($company->is_active) Active @else Inactive @endif
@if($company->logo_path)
{{ $company->name }} logo
@else
{{ substr($company->name, 0, 1) }}
@endif

{{ $company->name }}

{{ $company->description ?? 'No description provided.' }}

Contact Email
{{ $company->contact_email }}
Contact Phone
{{ $company->contact_phone }}
Address
{{ $company->address }}
Total Sensors
{{ $company->sensors_count ?? 0 }} sensors
Active Sensors
{{ $company->sensors->where('is_active', true)->count() }} active
Registration Date
{{ $company->created_at->format('M j, Y') }}
Last Updated
{{ $company->updated_at->diffForHumans() }}

Sensors

{{ $company->sensors_count ?? 0 }} total
@if($company->sensors->count() > 0)
@else

No sensors

Get started by adding a new sensor to this company.

@endif
@endsection