@push('styles') @endpush
@if (!checkCompanyPackageIsValid(user()->company_id))
@lang('superadmin.updatePlanNote')
@endif
@lang('superadmin.menu.planDetails')
@lang('superadmin.packages.currentPlan')

{{ $company->package->name }} @lang('superadmin.'.$company->package_type)

@if (!is_null($company->licence_expire_on))
@lang('superadmin.packages.licenseExpiresOn') {{ \Carbon\Carbon::parse($company->licence_expire_on)->timezone(global_setting()->timezone)->format(global_setting()->date_format) }} ({{ \Carbon\Carbon::parse($company->licence_expire_on)->diffForHumans() }}) @else --
@endif
@php $storage = __('superadmin.notUsed'); $storageUsed = 0; if ($company->file_storage_count && $company->file_storage_sum_size) { if ($company->package->storage_unit == 'mb') { $storage = \App\Models\SuperAdmin\Package::bytesToMB($company->file_storage_sum_size) . ' ' . __('superadmin.mb'); $storageUsed = App\Models\SuperAdmin\Package::bytesToGB($company->file_storage_sum_size); } else { $storage = round($company->file_storage_sum_size / (1000 * 1024 * 1024), 3) . ' ' . __('superadmin.mb'); $storageUsed = round($company->file_storage_sum_size / (1000 * 1024 * 1024), 3); } } $maxStorage = __('superadmin.unlimited'); if ($company->package->max_storage_size != -1) { $maxStorage = $company->package->max_storage_size . ' ' . strtoupper($company->package->storage_unit); $storageUsePercent = 0; if ($storageUsed > 0 && $company->package->max_storage_size > 0) { $storageUsePercent = floor((($storageUsed/$company->package->max_storage_size) * 100)); } } @endphp
  • @lang('app.menu.employees') {{ $company->employees_count . ' / ' . $company->package->max_employees }}
  • @lang('superadmin.storage') @if ($company->package->max_storage_size != -1)
    {{ $storageUsePercent }}%
    @endif {{ $storage . ' / ' . $maxStorage }}