@extends('layouts.admin') @section('title', $company->name) @section('header', $company->name) @section('subheader', 'Company details') @section('header-actions') Edit @endsection @section('content')

Company Information

@if($company->logo) {{ $company->name }} @else
{{ $company->initials }}
@endif

{{ $company->name }}

{{ $company->email }}

Slug
{{ $company->slug }}
Phone
{{ $company->phone ?? 'N/A' }}
Address
{{ $company->address ?? 'N/A' }}
Primary Color
{{ $company->primary_color }}
Secondary Color
{{ $company->secondary_color }}

Users ({{ $company->users->count() }})

Add User
@forelse($company->users as $user) @empty @endforelse
Name Email Role Status
{{ $user->name }} {{ $user->email }} {{ $user->roles->first()?->name ?? 'N/A' }} @if($user->is_active) Active @else Inactive @endif
No users

Surveys ({{ $company->surveys->count() }})

@forelse($company->surveys as $survey) @empty @endforelse
Title Status Created
{{ $survey->title }} {{ ucfirst($survey->status) }} {{ $survey->created_at->format('M j, Y') }}
No surveys

Status

@if($company->is_active) Active @else Inactive @endif

Login URL

{{ url('/login/' . $company->slug) }}

Quick Stats

Total Users {{ $company->users->count() }}
Total Surveys {{ $company->surveys->count() }}
Created {{ $company->created_at->format('M j, Y') }}
@endsection