@php $invoiceCount = \App\Models\Invoice::whereClientId($value['clientId']) ->whereTenantId(getLogInUser()->tenant_id)->withoutGlobalScope(new \Stancl\Tenancy\Database\TenantScope())->count(); @endphp {{ $invoiceCount }}