@php $companyId = auth()->user()->login_company_id; $userId = auth()->id(); $allProductsCount = \App\Models\Product::where('is_approved', 1) ->where('company_id', $companyId) ->count(); $draftCount = \App\Models\TempProduct::where('user_id', $userId) ->where('company_id', $companyId) ->count(); @endphp