ensureCrmSubscription(); $proposals = Proposal::where('business_id', $this->businessId()) ->where('contact_id', $this->contactId()) ->orderByDesc('created_at') ->paginate(20); return view('portal::customer.proposals.index', compact('proposals')); } public function show($id) { $this->ensureCrmSubscription(); $proposal = Proposal::where('business_id', $this->businessId()) ->where('contact_id', $this->contactId()) ->findOrFail($id); return view('portal::customer.proposals.show', compact('proposal')); } }