public function index() { $vendors = VendorProfile::with('vendorOwner')->paginate(15); return View::make('dashboard.templates.' . Auth::user()->type . '.vendors')->with('vendors', $vendors); }