@extends('layouts.app') @section('title', 'Companies') @section('content')

Companies

Add Company
Clear
@forelse($companies as $company) @empty @endforelse
Company Relationship License Type Industry Users Departments Status Actions
{{ $company->name }}
@if($company->isParentCompany()) Parent @elseif($company->isSisterCompany()) Sister @endif
{{ $company->email }}
@if($company->parentCompany) @elseif($company->sisterCompanies()->count() > 0)
{{ $company->sisterCompanies()->count() }} {{ $company->sisterCompanies()->count() === 1 ? 'sister' : 'sisters' }}
@else @endif
{{ ucfirst($company->license_type) }}
{{ ucfirst($company->industry_type) }}
{{ $company->users->count() }}
{{ $company->departments->count() }}
@if($company->is_active) Active @else Inactive @endif
No companies found.
@if($companies->hasPages())
{{ $companies->links() }}
@endif
@endsection