@extends('layouts.sadmin') @section('title', 'Subscription') @section('content')
Manage company groups and tenant subscriptions
| Group ID | Group name | Member companies | Actions |
|---|---|---|---|
{{ $group->group_code }} |
{{ $group->name }} | {{ $group->companies->pluck('name')->implode(', ') ?: '—' }} | |
| No company groups yet. Create one to tag companies. | |||
| # | Company | Group | Code | Contact | Users | Concurrent | Status | Subscription / Trial | Actions |
|---|---|---|---|---|---|---|---|---|---|
| {{ $companies->firstItem() + $i }} |
{{ $company->name }}
@if($company->country)
{{ $company->country }}
@endif
|
@if($company->group)
{{ $company->group->group_code }}{{ $company->group->name }}
@else
—
@endif
|
{{ $company->company_code }} |
@if($company->email)
{{ $company->email }}
@endif
@if($company->phone)
{{ $company->phone }}
@endif
|
{{ $company->users_count }} | {{ $company->subscription?->max_concurrent_users ?? 5 }} | {{ ucfirst($company->status) }} |
@if($company->subscription?->subscription_ends_at)
@php $exp = $company->subscription->subscription_ends_at; @endphp
{{ $exp->format('d M Y') }}
@if($exp->isPast())
Expired
@elseif($exp->diffInDays() <= 30)
{{ $exp->diffInDays() }}d left
@endif
@elseif($company->subscription?->trial_ends_at)
@php $trial = $company->subscription->trial_ends_at; @endphp
Trial: {{ $trial->format('d M Y') }}
@if(!$trial->isPast())
{{ $trial->diffInDays() }}d left
@endif
@else
—
@endif
|
|
|
No companies found Create First Company |
|||||||||