@extends('layouts.app') @section('content')

@if(auth()->user()->isSuperAdmin()) All Companies @elseif(auth()->user()->isPlatformAdmin()) Managed Companies @else My Company @endif

@if(auth()->user()->isSuperAdmin()) Manage all companies in the system @elseif(auth()->user()->isPlatformAdmin()) Companies you are authorized to manage @else Your company details and management @endif

@if(auth()->user()->isSuperAdmin()) Add Company @endif
@if($companies->count() > 0)
@foreach($companies as $company)
@if($company->logo) {{ $company->name }} @else
@endif
{{ $company->name }}
{{ ucfirst($company->status) }}

{{ $company->email }}

@if($company->phone)

{{ $company->phone }}

@endif @if($company->website)

{{ $company->website }}

@endif
{{ $company->users()->count() }}
Users
{{ $company->websites()->count() }}
Websites
View @if(auth()->user()->canManageCompany($company)) @endif @if(auth()->user()->isSuperAdmin())
@csrf @method('DELETE')
@endif
@endforeach
@if($companies instanceof \Illuminate\Pagination\LengthAwarePaginator && $companies->hasPages())
{{ $companies->links() }}
@endif @else

No companies found

@if(auth()->user()->isPlatformAdmin()) You haven't been assigned to any companies yet. @elseif(auth()->user()->isSuperAdmin()) No companies have been created yet. @else Your company information is not available. @endif

@if(auth()->user()->isSuperAdmin() || auth()->user()->isPlatformAdmin()) Create First Company @endif
@endif
@endsection