ensureCrmSubscription(); $transactions = Transaction::where('business_id', $this->businessId()) ->where('contact_id', $this->contactId()) ->whereIn('type', ['purchase', 'purchase_order']) ->whereNotNull('document') ->orderByDesc('transaction_date') ->paginate(20); return view('portal::supplier.documents.index', compact('transactions')); } }